Hi, Since upgrading sec-policy/selinux-phpfpm to 2.20170204-r1, it seems php-fpm is running with the wrong context : ps -efZ | grep php-fpm system_u:system_r:initrc_t nginx 15942 21607 0 18:06 ? 00:00:10 php-fpm: pool www system_u:system_r:initrc_t root 21607 1 0 14:54 ? 00:00:00 php-fpm: master process (/etc/php/fpm-php7.1/php-fpm.conf) system_u:system_r:initrc_t nginx 21608 21607 0 14:54 ? 00:00:23 php-fpm: pool www system_u:system_r:initrc_t nginx 21609 21607 0 14:54 ? 00:00:22 php-fpm: pool www system_u:system_r:initrc_t nginx 21610 21607 0 14:54 ? 00:00:22 php-fpm: pool www system_u:system_r:initrc_t nginx 21611 21607 0 14:54 ? 00:00:20 php-fpm: pool www system_u:system_r:initrc_t nginx 21612 21607 0 14:54 ? 00:00:20 php-fpm: pool www system_u:system_r:initrc_t nginx 21737 21607 0 14:55 ? 00:00:22 php-fpm: pool www system_u:system_r:initrc_t nginx 23089 21607 0 15:04 ? 00:00:19 php-fpm: pool www system_u:system_r:initrc_t nginx 29989 21607 0 20:09 ? 00:00:03 php-fpm: pool www system_u:system_r:initrc_t nginx 29991 21607 0 20:09 ? 00:00:03 php-fpm: pool www system_u:system_r:initrc_t nginx 29992 21607 0 20:09 ? 00:00:03 php-fpm: pool www It ends up with a lot of AVC denials about initrc_t where it was working fine on 2.20161023-r4 full selinux chain (I don't know which selinux package is breaking all). SELinux packages installed : sec-policy/selinux-amavis-2.20170204-r1 sec-policy/selinux-apache-2.20170204-r1 sec-policy/selinux-base-2.20170204-r1 sec-policy/selinux-base-policy-2.20170204-r1 sec-policy/selinux-bind-2.20170204-r1 sec-policy/selinux-brctl-2.20170204-r1 sec-policy/selinux-cgroup-2.20170204-r1 sec-policy/selinux-clamav-2.20170204-r1 sec-policy/selinux-dcc-2.20170204-r1 sec-policy/selinux-dhcp-2.20170204-r1 sec-policy/selinux-dmidecode-2.20170204-r1 sec-policy/selinux-dovecot-2.20170204-r1 sec-policy/selinux-fail2ban-2.20170204-r1 sec-policy/selinux-fetchmail-2.20170204-r1 sec-policy/selinux-ftp-2.20170204-r1 sec-policy/selinux-gpg-2.20170204-r1 sec-policy/selinux-hddtemp-2.20170204-r1 sec-policy/selinux-java-2.20170204-r1 sec-policy/selinux-kerberos-2.20170204-r1 sec-policy/selinux-ldap-2.20170204-r1 sec-policy/selinux-logrotate-2.20170204-r1 sec-policy/selinux-mandb-2.20170204-r1 sec-policy/selinux-mcelog-2.20170204-r1 sec-policy/selinux-mysql-2.20170204-r1 sec-policy/selinux-nginx-2.20170204-r1 sec-policy/selinux-ntp-2.20170204-r1 sec-policy/selinux-openrc-2.20170204-r1 sec-policy/selinux-phpfpm-2.20161023-r4 sec-policy/selinux-postfix-2.20170204-r1 sec-policy/selinux-postgrey-2.20170204-r1 sec-policy/selinux-procmail-2.20170204-r1 sec-policy/selinux-razor-2.20170204-r1 sec-policy/selinux-rpc-2.20170204-r1 sec-policy/selinux-rpcbind-2.20170204-r1 sec-policy/selinux-rtorrent-2.20170204-r1 sec-policy/selinux-samba-2.20170204-r1 sec-policy/selinux-sasl-2.20170204-r1 sec-policy/selinux-screen-2.20170204-r1 sec-policy/selinux-shutdown-2.20170204-r1 sec-policy/selinux-slocate-2.20170204-r1 sec-policy/selinux-smartmon-2.20170204-r1 sec-policy/selinux-snmp-2.20170204-r1 sec-policy/selinux-spamassassin-2.20170204-r1 sec-policy/selinux-subsonic-2.20170204-r1 sec-policy/selinux-tftp-2.20170204-r1 sec-policy/selinux-tmpreaper-2.20170204-r1 sec-policy/selinux-unconfined-2.20170204-r1 sec-policy/selinux-zabbix-2.20170204-r1 sys-libs/libselinux-2.6 emerge --info : Portage 2.3.3 (python 3.5.3-final-0, hardened/linux/amd64/selinux, gcc-5.4.0, glibc-2.23-r3, 4.9.11-hardened x86_64) ================================================================= System uname: Linux-4.9.11-hardened-x86_64-Intel-R-_Atom-TM-_CPU_C2550_@_2.40GHz-with-gentoo-2.3 KiB Mem: 4015340 total, 954560 free KiB Swap: 19607548 total, 19607548 free Timestamp of repository gentoo: Tue, 21 Feb 2017 13:30:01 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 ccache version 3.3.4 [enabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1-r1::gentoo dev-lang/python: 2.7.13::gentoo, 3.5.3::gentoo dev-util/ccache: 3.3.4::gentoo dev-util/cmake: 3.7.2::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.23.2::gentoo sys-apps/sandbox: 2.10-r3::gentoo sys-devel/autoconf: 2.69-r2::gentoo sys-devel/automake: 1.13.4-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo sys-devel/gcc: 5.4.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildsyspkg ccache clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" 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="acl acpi amd64 audit bzip2 caps ccache cli cracklib crypt cxx device-mapper fpm geoip gnutls hardened headless headless-awt iconv imap ipv6 jpeg justify ldap libav logrotate maildir multilib mysql mysqli ncurses nls nptl open_perms openmp pam pax_kernel pcre peer_perms php pie png python readline samba seccomp selinux session smp snmp spamassassin spell ssl ssp syslog tcpd threads truetype ubac unconfined unicode urandom usb xattr xinetd xml xtpax zlib" ABI_X86="32 64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" NGINX_MODULES_HTTP="access auth_basic autoindex browser cache_purge charset dav dav_ext empty_gif fastcgi geo gzip headers_more limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_hash upstream_ip_hash upstream_keepalive upstream_least_conn upstream_zone userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7 3.5" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This is fixed in the git tree, will be in the next release :)
(In reply to Jason Zaman from comment #1) > This is fixed in the git tree, will be in the next release :) OK great, thanks for your input :) Waiting for next release now ^_^
The -r2 release is now stable (sorry, we missed to update the bug for the test-request).