Hi; Since lastly, my update force to install sys-apps/systemd-tmpfiles-246::gentoo and to uninstall sys-apps/opentmpfiles, i noticed this following behaviour : stmpfiles-setup failed to start with : > run_init /etc/init.d/stmpfiles-setup start Authenticating toto. * Setting up tmpfiles.d entries ... Failed to open '/run/tmpfiles.d/kmod.conf': Permission denied rm_rf(/run/fail2ban): Permission denied rm_rf(/run/sudo/ts): Permission denied Unable to fix SELinux security context of /var/cache/eix (/var/cache/eix): Permission denied [ !! ] * ERROR: stmpfiles-setup failed to start So after auditing, i allowed : > setsebool -P systemd_tmpfiles_manage_all 1 > run_init /etc/init.d/stmpfiles-setup start Authenticating toto. * Setting up tmpfiles.d entries ... rm_rf(/run/fail2ban): Permission denied [ !! ] * ERROR: stmpfiles-setup failed to start Then, i allowed this rules to resolve the problem : #============= run_init_t ============== allow run_init_t security_t:file map; allow run_init_t sysctl_kernel_t:dir search; #============= systemd_tmpfiles_t ============== allow systemd_tmpfiles_t fail2ban_runtime_t:sock_file unlink; allow systemd_tmpfiles_t self:capability sys_resource; Peace. > emerge --info Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/hardened/selinux, gcc-10.3.0, glibc-2.33-r1, 5.13.1-gentoo x86_64) ================================================================= System uname: Linux-5.13.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-5557U_CPU_@_3.10GHz-with-glibc2.33 KiB Mem: 13895080 total, 6720076 free KiB Swap: 8388604 total, 8388604 free Timestamp of repository gentoo: Thu, 08 Jul 2021 00:45:01 +0000 Head commit of repository gentoo: 9f21085d6393371fd90f3f0debb87fdd5df8c5ef sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 ccache version 4.3 [enabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 2.7.18_p10::gentoo, 3.6.13_p5::gentoo, 3.8.10_p2::gentoo, 3.9.5_p2::gentoo dev-lang/rust: 1.52.1::gentoo dev-util/ccache: 4.3::gentoo dev-util/cmake: 3.18.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 10.3.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: local location: /usr/local/portage masters: gentoo priority: 10 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=haswell -O2 -fforce-addr -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=haswell -O2 -fforce-addr -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.0 --keep-going=y --with-bdeps=y --complete-graph" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://local" LANG="fr_FR.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X acl amd64 audit branding bzip2 caps chroot crypt cryptsetup elogind ffmpeg gnutls hardened iconv icu ipv6 jpeg libglvnd libtirpc logrotate lzma mmx modplug multilib ncurses nls nptl opengl openmp pam pax_kernel pcre perl pic pie png python readline seccomp secure_delete selinux snmp split-usr sse sse2 ssl ssp symlink tcpd unicode wavpack webrsync-gpg xattr xml xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="load memory syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="arm x86_64 sparc" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i915 fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b0cd234893d2dbcfb345a8d4ec5d353a3b678e0 commit 6b0cd234893d2dbcfb345a8d4ec5d353a3b678e0 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2021-07-09 01:30:53 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2021-07-09 01:53:08 +0000 profiles/features/selinux: unmask opentmpfiles, mask systemd's systemd-tmpfiles is currently unusable on selinux profiles. Bug: https://bugs.gentoo.org/801217 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> profiles/features/selinux/package.mask | 4 ++++ profiles/features/selinux/package.unmask | 7 +++++++ 2 files changed, 11 insertions(+)
probably needs a policy. will have to defer to selinux team guys for that.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6970cc51c44de313e269e2150f9dbd739338762 commit f6970cc51c44de313e269e2150f9dbd739338762 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-07-09 04:25:20 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-07-09 04:25:20 +0000 profiles/features/selinux: drop obsolete opentmpfiles restriction The problematic version requiring a separate mask is gone at least (unrelated to the security bug). Bug: https://bugs.gentoo.org/801217 Signed-off-by: Sam James <sam@gentoo.org> profiles/features/selinux/package.unmask | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
I've taken a look at the git repo for our policies, and the changes required for systemd-tmpfiles are in the testing versions of the policy definitions. https://github.com/perfinion/hardened-refpolicy/compare/2.20200818-r2...perfinion:2.20210203-r1 All the commits for this were done around Feb 15, 2021. Simply set `sec-policy/* ~amd64` in package.accept_keywords and run: # emerge -av @selinux-rebuild
(In reply to Jonathan Davies from comment #4) > I've taken a look at the git repo for our policies, and the changes required > for systemd-tmpfiles are in the testing versions of the policy definitions. > > https://github.com/perfinion/hardened-refpolicy/compare/2.20200818-r2... > perfinion:2.20210203-r1 > > All the commits for this were done around Feb 15, 2021. > > Simply set `sec-policy/* ~amd64` in package.accept_keywords and run: > > # emerge -av @selinux-rebuild For the remind, i've already had the most sec-policy/* in ~amd64. But, to validate your comment, i unmask the "sys-apps/systemd-tmpfiles" and mask "sys-apps/opentmpfiles". Then i removed my previous rules and emerge -av @selinux-rebuild. > run_init /etc/init.d/stmpfiles-setup restart Authenticating toto. * WARNING: you are stopping a boot service * Setting up tmpfiles.d entries ... It did work. Nice.
Okay, we should really stabilise a newer set of policies.
I have a bit of the same error without selinux : * Setting up tmpfiles.d entries ... Detected unsafe path transition / -> /run during canonicalization of /run. Detected unsafe path transition / -> /run during canonicalization of /run. Detected unsafe path transition / -> /var during canonicalization of /var/cache. Detected unsafe path transition / -> /var during canonicalization of /var/lib. Detected unsafe path transition / -> /run during canonicalization of /run/lock. Detected unsafe path transition / -> /run during canonicalization of /run. Detected unsafe path transition / -> /var during canonicalization of /var/cache. Detected unsafe path transition / -> /var during canonicalization of /var/cache. Detected unsafe path transition / -> /run during canonicalization of /run. Detected unsafe path transition / -> /run during canonicalization of /run. Detected unsafe path transition / -> /run during canonicalization of /run/lock. Detected unsafe path transition / -> /tmp during canonicalization of /tmp. Detected unsafe path transition / -> /run during canonicalization of /run. Detected unsafe path transition / -> /run during canonicalization of /run/sudo. Detected unsafe path transition / -> /run during canonicalization of /run. Detected unsafe path transition / -> /run during canonicalization of /run. [ !! ] * ERROR: stmpfiles-setup failed to start # emerge --info Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.3.0, glibc-2.33-r1, 5.10.49-gentoo-r1 x86_64) ================================================================= System uname: Linux-5.10.49-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-9600K_CPU_@_3.70GHz-with-glibc2.33 KiB Mem: 32819124 total, 29965468 free KiB Swap: 33560756 total, 33560756 free Timestamp of repository gentoo: Fri, 16 Jul 2021 08:45:01 +0000 Head commit of repository gentoo: b9e20a45cb1aaa5dad6aa8e0bfa7ef3417037133 sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 distcc 3.4 x86_64-pc-linux-gnu [enabled] ccache version 4.3 [enabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 2.7.18_p10::gentoo, 3.9.5_p2::gentoo dev-lang/rust: 1.52.1::gentoo dev-util/ccache: 4.3::gentoo dev-util/cmake: 3.18.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 10.3.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://portage.novazur.fr/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 guru location: /var/lib/layman/guru masters: gentoo priority: 50 novazur location: /var/lib/layman/novazur masters: gentoo priority: 50 Installed sets: @dev-android, @kde, @net_gkrellm ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=skylake -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=skylake -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=skylake -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=skylake -O2 -pipe" GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://mirrors.rit.edu/gentoo/" LANG="fr_FR.iso885915@euro" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="fr fr_FR" MAKEOPTS="-j7" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl activities aim alsa amd64 audiofile bash-completion branding bzip2 cairo caps cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr dvdread eds elogind emboss encode evo exif fbcon ffmpeg firefox flac gdbm gif gphoto2 gtk gui iconv icu imagemagick imlib jabber java jpeg kde kipi kwallet lcms ldap libglvnd libnotify libsamplerate libtirpc lm_sensors mad matroska mng mp3 mp4 mpeg mtp multilib ncurses nls nptl nptlonly nsplugin ogg oggvorbis openal opengl openmp pam pango pcre pdf phonon plasma png policykit portaudio qml qt5 readline scanner sdl seccomp sndfile sox speex spell split-usr ssl startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb v4l vorbis widgets wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xpm xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="fr fr_FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="nvidia intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
(In reply to Christophe PEREZ from comment #7) > I have a bit of the same error without selinux : > > * Setting up tmpfiles.d entries ... > Detected unsafe path transition / -> /run during canonicalization of /run. > Detected unsafe path transition / -> /run during canonicalization of /run. > Detected unsafe path transition / -> /var during canonicalization of > /var/cache. > Detected unsafe path transition / -> /var during canonicalization of > /var/lib. > Detected unsafe path transition / -> /run during canonicalization of > /run/lock. > Detected unsafe path transition / -> /run during canonicalization of /run. > Detected unsafe path transition / -> /var during canonicalization of > /var/cache. > Detected unsafe path transition / -> /var during canonicalization of > /var/cache. > Detected unsafe path transition / -> /run during canonicalization of /run. > Detected unsafe path transition / -> /run during canonicalization of /run. > Detected unsafe path transition / -> /run during canonicalization of > /run/lock. > Detected unsafe path transition / -> /tmp during canonicalization of /tmp. > Detected unsafe path transition / -> /run during canonicalization of /run. > Detected unsafe path transition / -> /run during canonicalization of > /run/sudo. > Detected unsafe path transition / -> /run during canonicalization of /run. > Detected unsafe path transition / -> /run during canonicalization of /run. > [ !! ] > * ERROR: stmpfiles-setup failed to start > > > # emerge --info > Portage 3.0.20 (python 3.9.5-final-0, > default/linux/amd64/17.1/desktop/plasma, gcc-10.3.0, glibc-2.33-r1, > 5.10.49-gentoo-r1 x86_64) > ================================================================= > System uname: > Linux-5.10.49-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-9600K_CPU_@_3.70GHz-with- > glibc2.33 > KiB Mem: 32819124 total, 29965468 free > KiB Swap: 33560756 total, 33560756 free > Timestamp of repository gentoo: Fri, 16 Jul 2021 08:45:01 +0000 > Head commit of repository gentoo: b9e20a45cb1aaa5dad6aa8e0bfa7ef3417037133 > sh bash 5.1_p8 > ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 > distcc 3.4 x86_64-pc-linux-gnu [enabled] > ccache version 4.3 [enabled] > app-shells/bash: 5.1_p8::gentoo > dev-java/java-config: 2.3.1::gentoo > dev-lang/perl: 5.32.1::gentoo > dev-lang/python: 2.7.18_p10::gentoo, 3.9.5_p2::gentoo > dev-lang/rust: 1.52.1::gentoo > dev-util/ccache: 4.3::gentoo > dev-util/cmake: 3.18.5::gentoo > dev-util/pkgconfig: 0.29.2::gentoo > sys-apps/baselayout: 2.7::gentoo > sys-apps/openrc: 0.42.1-r1::gentoo > sys-apps/sandbox: 2.24::gentoo > sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo > sys-devel/automake: 1.16.3-r1::gentoo > sys-devel/binutils: 2.35.2::gentoo > sys-devel/gcc: 10.3.0::gentoo > sys-devel/gcc-config: 2.4::gentoo > sys-devel/libtool: 2.4.6-r6::gentoo > sys-devel/make: 4.3::gentoo > sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) > sys-libs/glibc: 2.33-r1::gentoo > Repositories: > > gentoo > location: /usr/portage > sync-type: rsync > sync-uri: rsync://portage.novazur.fr/gentoo-portage > priority: -1000 > sync-rsync-extra-opts: > sync-rsync-verify-max-age: 24 > sync-rsync-verify-metamanifest: yes > sync-rsync-verify-jobs: 1 > > guru > location: /var/lib/layman/guru > masters: gentoo > priority: 50 > > novazur > location: /var/lib/layman/novazur > masters: gentoo > priority: 50 > > Installed sets: @dev-android, @kde, @net_gkrellm > ACCEPT_KEYWORDS="amd64" > ACCEPT_LICENSE="* -@EULA" > CBUILD="x86_64-pc-linux-gnu" > CFLAGS="-march=skylake -O2 -pipe" > CHOST="x86_64-pc-linux-gnu" > CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc > /usr/share/config /usr/share/gnupg/qualified.txt" > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d > /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild > /etc/sandbox.d /etc/terminfo" > CXXFLAGS="-march=skylake -O2 -pipe" > DISTDIR="/usr/portage/distfiles" > EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going" > ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB > PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY > XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" > FCFLAGS="-march=skylake -O2 -pipe" > FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache > config-protect-if-modified distcc distlocks ebuild-locks fixlafiles > ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch > pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox > sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch > userpriv usersandbox usersync xattr" > FFLAGS="-march=skylake -O2 -pipe" > GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ > http://www.gtlib.gatech.edu/pub/gentoo http://mirrors.rit.edu/gentoo/" > LANG="fr_FR.iso885915@euro" > LDFLAGS="-Wl,-O1 -Wl,--as-needed" > LINGUAS="fr fr_FR" > MAKEOPTS="-j7" > PKGDIR="/var/cache/binpkgs" > PORTAGE_CONFIGROOT="/" > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times > --omit-dir-times --compress --force --whole-file --delete --stats > --human-readable --timeout=180 --exclude=/distfiles --exclude=/local > --exclude=/packages --exclude=/.git" > PORTAGE_TMPDIR="/var/tmp" > USE="X a52 aac acl activities aim alsa amd64 audiofile bash-completion > branding bzip2 cairo caps cdda cdr cli crypt cups dbus declarative dri dts > dvd dvdr dvdread eds elogind emboss encode evo exif fbcon ffmpeg firefox > flac gdbm gif gphoto2 gtk gui iconv icu imagemagick imlib jabber java jpeg > kde kipi kwallet lcms ldap libglvnd libnotify libsamplerate libtirpc > lm_sensors mad matroska mng mp3 mp4 mpeg mtp multilib ncurses nls nptl > nptlonly nsplugin ogg oggvorbis openal opengl openmp pam pango pcre pdf > phonon plasma png policykit portaudio qml qt5 readline scanner sdl seccomp > sndfile sox speex spell split-usr ssl startup-notification svg tcpd theora > tiff truetype udev udisks unicode upower usb v4l vorbis widgets wxwidgets > x264 x265 xattr xcb xcomposite xinerama xml xpm xv xvid zlib" ABI_X86="64" > ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core > authz_core socache_shmcb unixd actions alias auth_basic authn_alias > authn_anon authn_dbm authn_default authn_file authz_dbm authz_default > authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid > dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache > filter headers include info log_config logio mem_cache mime mime_magic > negotiation rewrite setenvif speling status unique_id userdir usertrack > vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" > COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" > CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 > sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate > evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip > navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq > superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" > INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="fr fr_FR" > LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb > ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" > LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" > OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" > POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" > PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" SANE_BACKENDS="net" > USERLAND="GNU" VIDEO_CARDS="nvidia intel i965" XTABLES_ADDONS="quota2 psd > pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee > tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" > Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, > PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, > PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS For your situation, ensure that / is owned by root. I had the same issue and it turned out . and .. were owned by stunnel for some reason.
(In reply to Nicholas Santos from comment #8) > For your situation, ensure that / is owned by root. I had the same issue and > it turned out . and .. were owned by stunnel for some reason. OMFG you're right ! $ ls -l -d / drwxr-xr-x 27 sddm sddm 4096 26 juin 16:31 / changed to root: I'll see next boot. Thanks.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1759d363b136e92de399748b2fe643ac9020985b commit 1759d363b136e92de399748b2fe643ac9020985b Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-21 05:30:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-21 05:30:33 +0000 profiles/features/selinux: unmask systemd-tmpfiles Newer policies have been stabled since. Closes: https://bugs.gentoo.org/801217 Signed-off-by: Sam James <sam@gentoo.org> profiles/features/selinux/package.mask | 4 ---- profiles/features/selinux/package.unmask | 5 ----- 2 files changed, 9 deletions(-)