Package Details: systemd-libs-selinux 241.67-1

Git Clone URL: https://aur.archlinux.org/systemd-selinux.git (read-only)
Package Base: systemd-selinux
Description: systemd client libraries with SELinux support
Upstream URL: https://www.github.com/systemd/systemd
Keywords: selinux
Licenses: LGPL2.1
Groups: selinux
Conflicts: systemd-libs
Provides: libsystemd, libsystemd-selinux, libsystemd.so, libudev.so, systemd-libs=241.67-1
Replaces: libsystemd-selinux
Submitter: Siosm
Maintainer: IooNag
Last Packager: IooNag
Votes: 14
Popularity: 0.000181
First Submitted: 2013-11-03 20:05
Last Updated: 2019-04-05 18:34

Required by (192)

Sources (20)

Latest Comments

1 2 3 4 Next › Last »

taro-yamada commented on 2019-02-07 14:58

@kvnbai

journalctl --vacuum-size=100M

may fix the problem.

IooNag commented on 2019-01-06 15:44

@kvnbai Does the issue also exist when you build the offical systemd package from source? This does not looks like something specific to modifications related to SELinux.

@yar: the last time I tried to use makechrootpkg, it required root privileged. Which is why I tried to use it with fakeroot+fakechroot and proot (https://github.com/fishilico/home-files/blob/master/bin/makecleanpkg + https://github.com/archlinuxhardened/selinux/blob/master/build_cleanpkg.sh). Unfortunately it does not work with systemd package, cf. https://github.com/archlinuxhardened/selinux/blob/master/build_cleanpkg.sh#L137-L147 For information, this is the major bug preventing me to set up a "user package repository" with SELinux packages which would be compiled by an Continuous Integration system every time a package is built.

yar commented on 2019-01-05 19:51

I highly recommend building with makechrootpkg https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_clean_chroot

kvnbai commented on 2019-01-05 19:43

@IooNag

The build only fails when using 1 CPU (using VM), giving my VM atleast 2 CPUs solves the issue. I'm not sure if this is a large issue, so I'll just leave a comment here:

Is your system up-to-date? Yes tested on the newest stable manjaro-i3 release. I updated the system before following the wiki.

Are you using an x86-64 CPU? Yes

Did you try building systemd-selinux in a freshly installed system? Yes

Does /home/test/.cache/yay/systemd-selinux/src/build/test-journal-flush exist, and if yes, does it show the same error when you run it directly? Yes it exists and it shows the same error when executed, the files that the script wish to create are also created in /tmp

Is SELinux enabled on your system? SELinux is disabled

Prep before isntalling SELinux: Removed mlocate because the AUR helper I use can only remove findutils while installing findutils-selinux

IooNag commented on 2019-01-05 11:09

@kvnbai: the package builds fine on my (up to date) system. Could you please give more details about your issue on https://github.com/archlinuxhardened/selinux/issues , which would allow me to reproduce the failure? Here are some questions which help in a bug report: Is your system up-to-date? Are you using an x86-64 CPU? Did you try building systemd-selinux in a freshly installed system? Does /home/test/.cache/yay/systemd-selinux/src/build/test-journal-flush exist, and if yes, does it show the same error when you run it directly? Is SELinux enabled on your system? If yes, in which mode and policy (cf. the output of "sestatus -v")? Does test-journal-flush trigger AVC denials in audit.log?

kvnbai commented on 2019-01-04 21:31

Cant build the package



...
228/318 test-journal-stream OK 0.02 s
229/318 test-journal-flush FAIL 0.28 s (killed by signal 6 SIGABRT)
230/318 test-journal-init OK 0.12 s ...
Full log written to /home/test/selinux/systemd-selinux/src/build/meson-logs/testlog.txt
==> ERROR: A failure occurred in check().
Aborting...



Logfile:

229/318 test-journal-flush FAIL 0.32 s (killed by signal 6 SIGABRT)
--- command ---
PATH='/home/test/.cache/yay/systemd-selinux/src/build:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl' SYSTEMD_LANGUAGE_FALLBACK_MAP='/home/test/.cache/yay/systemd-selinux/src/systemd-stable/src/locale/language-fallback-map' SYSTEMD_KBD_MODEL_MAP='/home/test/.cache/yay/systemd-selinux/src/systemd-stable/src/locale/kbd-model-map' /home/test/.cache/yay/systemd-selinux/src/build/test-journal-flush
--- stderr ---
Assertion 'r >= 0' failed at ../systemd-stable/src/journal/test-journal-flush.c:43, function main(). Aborting. Aborted (core dumped)

NobodyDBG commented on 2018-08-20 15:21

Thank you. It works now.

IooNag commented on 2018-08-19 13:05

Thanks for the report! This issue was caused by glibc 2.28, which introduced "struct statx" in its headers (this structure is now defined both in /usr/include/linux/stat.h and /usr/include/bits/statx.h). systemd developers fixed this issue in https://github.com/systemd/systemd/commit/75720bff62a84896e9a0654afc7cf9408cf89a38 and I have updated systemd-selinux in order to backport this commit. Does it work better?

NobodyDBG commented on 2018-08-19 12:22

In file included from ../systemd-stable/src/basic/missing.h:18, from ../systemd-stable/src/basic/util.h:28, from ../systemd-stable/src/basic/hashmap.h:11, from ../systemd-stable/src/libsystemd/sd-bus/bus-match.h:9, from ../systemd-stable/src/libsystemd/sd-bus/bus-internal.h:14, from ../systemd-stable/src/libsystemd/sd-bus/bus-convenience.c:5: /usr/include/linux/stat.h:56:8: Fehler: Redefinition von »struct statx_timestamp« struct statx_timestamp { ^~~~~~~~~~~~~~~ In file included from /usr/include/sys/stat.h:446, from ../systemd-stable/src/basic/util.h:19, from ../systemd-stable/src/basic/hashmap.h:11, from ../systemd-stable/src/libsystemd/sd-bus/bus-match.h:9, from ../systemd-stable/src/libsystemd/sd-bus/bus-internal.h:14, from ../systemd-stable/src/libsystemd/sd-bus/bus-convenience.c:5: /usr/include/bits/statx.h:25:8: Anmerkung: ursprünglich hier definiert struct statx_timestamp ^~~~~~~~~~~~~~~ In file included from ../systemd-stable/src/basic/missing.h:18, from ../systemd-stable/src/basic/util.h:28, from ../systemd-stable/src/basic/hashmap.h:11, from ../systemd-stable/src/libsystemd/sd-bus/bus-match.h:9, from ../systemd-stable/src/libsystemd/sd-bus/bus-internal.h:14, from ../systemd-stable/src/libsystemd/sd-bus/bus-convenience.c:5: /usr/include/linux/stat.h:99:8: Fehler: Redefinition von »struct statx« struct statx { ^~~~~ In file included from /usr/include/sys/stat.h:446, from ../systemd-stable/src/basic/util.h:19, from ../systemd-stable/src/basic/hashmap.h:11, from ../systemd-stable/src/libsystemd/sd-bus/bus-match.h:9, from ../systemd-stable/src/libsystemd/sd-bus/bus-internal.h:14, from ../systemd-stable/src/libsystemd/sd-bus/bus-convenience.c:5: /usr/include/bits/statx.h:36:8: Anmerkung: ursprünglich hier definiert struct statx ^~~~~ [23/1574] Generating af-from-name.gperf with a meson_exe.py custom command. ninja: build stopped: subcommand failed. ==> FEHLER: Ein Fehler geschah in build(). Breche ab... ==> FEHLER:Makepkg konnte systemd-selinux nicht erstelle

IooNag commented on 2018-07-15 10:06

For information, there is small issue with systemd's NSSwitch component in the next release (v239) which leads to spurious error messages in semanage (cf. https://marc.info/?l=selinux&m=153116776608062&w=2 , glibc bug https://sourceware.org/bugzilla/show_bug.cgi?id=23410 and systemd bug https://github.com/systemd/systemd/issues/9585). This is why this package has not been updated.