Bug: SELinux multiple file context specifications by Plesk - specified where?
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk, 10.4.4 MU24, CentOS 5.8, x86_64
PROBLEM DESCRIPTION
SELinux floods about "Multiple different specifications" for file contexts.
File /etc/selinux/targeted/contexts/files/homedir_template contains conflicting specifications:
STEPS TO REPRODUCE
New clean installation of Plesk. Few testing "subscriptions" (example.com, example.org below) created. The problem start even before subscriptions are created because the template applies to root user's home dir or any other users existing on the user.
Errors appear in /var/log/messages.
ACTUAL RESULT
plesk php-cgi: /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /home/[^/]*/bin(/.*)? (user_u
bject_r:bin_t:s0 and user_u
bject_r:home_bin_t:s0).
plesk php-cgi: /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /var/www/vhosts/example.com/web_users/[^/]*/bin(/.*)? (user_u
bject_r:bin_t:s0 and user_u
bject_r:home_bin_t:s0).
plesk php-cgi: /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /var/www/vhosts/example.org/web_users/[^/]*/bin(/.*)? (user_u
bject_r:bin_t:s0 and user_u
bject_r:home_bin_t:s0).
plesk php-cgi: /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /root/bin(/.*)? (root
bject_r:bin_t:s0 and root
bject_r:home_bin_t:s0).
EXPECTED RESULT
Only single file context set, not multiple conflicting specifications
ANY ADDITIONAL INFORMATION
selinux-policy-2.4.6-327.el5.noarch
selinux-policy-targeted-2.4.6-327.el5.noarch
libsepol-2.0.36-1.el5.art.x86_64 updated from libsepol-1.15.2-3.el5.x86_64 but the errors for both vhost and user home dir bin start before upgrade from stock CentOS 5 libsepol to atomic libsepol.
Correction: The errors start after Plesk was installed, before I thought they started before Plesk installation. To be more precise they start right after a reboot was done after Plesk was installed.
Plesk 10.4.4 was installed while SELinux was turned on. In the past Release Notes instructed to turn SELinux off, but for 10.4 no such warning existed unless I overlooked it - please provide a link to one if it exists.
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk, 10.4.4 MU24, CentOS 5.8, x86_64
PROBLEM DESCRIPTION
SELinux floods about "Multiple different specifications" for file contexts.
File /etc/selinux/targeted/contexts/files/homedir_template contains conflicting specifications:
Workaround: remove one of the specifications, run genhomedirecon which generates file contexts for user home directories based on the aforementioned template file. Unfortunately I did not record which one I tried removing first; but after some time passed and making modifications in Plesk the duplicate entry appeared again. Nothing else was done with the system except Plesk actions and tuning SELinux policies (no packages installed for example). So I assume Plesk inserted the duplicate entry. I will test leaving one of the specifications in place at a time and see if the another one appears, to find out which one is inserted by Plesk (or perhaps by something else).HOME_DIR/bin(/.*)? system_ubject_r:home_bin_t:s0
HOME_DIR/bin(/.*)? system_ubject_r:bin_t:s0
STEPS TO REPRODUCE
New clean installation of Plesk. Few testing "subscriptions" (example.com, example.org below) created. The problem start even before subscriptions are created because the template applies to root user's home dir or any other users existing on the user.
Errors appear in /var/log/messages.
ACTUAL RESULT
plesk php-cgi: /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /home/[^/]*/bin(/.*)? (user_u
plesk php-cgi: /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /var/www/vhosts/example.com/web_users/[^/]*/bin(/.*)? (user_u
plesk php-cgi: /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /var/www/vhosts/example.org/web_users/[^/]*/bin(/.*)? (user_u
plesk php-cgi: /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /root/bin(/.*)? (root
EXPECTED RESULT
Only single file context set, not multiple conflicting specifications
ANY ADDITIONAL INFORMATION
selinux-policy-2.4.6-327.el5.noarch
selinux-policy-targeted-2.4.6-327.el5.noarch
libsepol-2.0.36-1.el5.art.x86_64 updated from libsepol-1.15.2-3.el5.x86_64 but the errors for both vhost and user home dir bin start before upgrade from stock CentOS 5 libsepol to atomic libsepol.
Correction: The errors start after Plesk was installed, before I thought they started before Plesk installation. To be more precise they start right after a reboot was done after Plesk was installed.
Plesk 10.4.4 was installed while SELinux was turned on. In the past Release Notes instructed to turn SELinux off, but for 10.4 no such warning existed unless I overlooked it - please provide a link to one if it exists.
Last edited: