Problem with multisame specification warning messages RHEL 5
Hi,
we have installed RHEL 5 and after update we get these warnings:
/etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /usr/local/lost\+found/.*. /etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /usr/local/\.journal. /etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /usr/local/lost\+found.
I tried to remove these with semanage tool this way:
semanage fcontext -d "/usr/local/lost\+found/.*"
/usr/sbin/semanage: File context for /usr/local/lost\+found/.* is defined in policy, cannot be deleted
I got the error above, that i can't delete this policy, because it is defined in policy. How can i fix this problem? If i edit manually user definitions file, will it be generated automatically after restart and i will get the same warnings?
There is already a bug report in centos bugzilla. But i would like to find out how to fix this problem.
Please help me for this.
Thanks in advanced!
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ali Nebi wrote:
| Hi, | | we have installed RHEL 5 and after update we get these warnings: | | /etc/selinux/targeted/contexts/files/file_contexts: Multiple same | specifications for /usr/local/lost\+found/.*. | /etc/selinux/targeted/contexts/files/file_contexts: Multiple same | specifications for /usr/local/\.journal. | /etc/selinux/targeted/contexts/files/file_contexts: Multiple same | specifications for /usr/local/lost\+found. | | I tried to remove these with semanage tool this way: | | semanage fcontext -d "/usr/local/lost\+found/.*" | | /usr/sbin/semanage: File context for /usr/local/lost\+found/.* is | defined in policy, cannot be deleted | | I got the error above, that i can't delete this policy, because it is | defined in policy. How can i fix this problem? If i edit manually user | definitions file, will it be generated automatically after restart and i | will get the same warnings? | | There is already a bug report in centos bugzilla. But i would like to | find out how to fix this problem. | | Please help me for this. | | Thanks in advanced! | | | -- | This message was distributed to subscribers of the selinux mailing list. | If you no longer wish to subscribe, send mail to
[email protected] with
| the words "unsubscribe selinux" without quotes as the message.
This usually means the system thinks you have a user account home directory in /usr/local, If there is a system account in /usr/local make sure its shell is /sbin/nologin or /bin/false and then run semodule -B
To regenerate the home directory file context.
If you have real users with the home directory in /usr/local, you need to move them in order for SELinux to get the file labelling correct. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkg7+3UACgkQrlYvE4MpobO1kwCfR1a+RaI0l5bTqvqwiKx/OHqA AoQAoM0RJN5atVpEseTgnHzxkXRCuZCj
=30dH
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoting Daniel J Walsh <[email protected]>:
Quoted 53 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Ali Nebi wrote:
| Hi, | | we have installed RHEL 5 and after update we get these warnings: | | /etc/selinux/targeted/contexts/files/file_contexts: Multiple same | specifications for /usr/local/lost\+found/.*. | /etc/selinux/targeted/contexts/files/file_contexts: Multiple same | specifications for /usr/local/\.journal. | /etc/selinux/targeted/contexts/files/file_contexts: Multiple same | specifications for /usr/local/lost\+found. | | I tried to remove these with semanage tool this way: | | semanage fcontext -d "/usr/local/lost\+found/.*" | | /usr/sbin/semanage: File context for /usr/local/lost\+found/.* is | defined in policy, cannot be deleted | | I got the error above, that i can't delete this policy, because it is | defined in policy. How can i fix this problem? If i edit manually user | definitions file, will it be generated automatically after restart and i | will get the same warnings? | | There is already a bug report in centos bugzilla. But i would like to | find out how to fix this problem. | | Please help me for this. | | Thanks in advanced! | | | -- | This message was distributed to subscribers of the selinux mailing list. | If you no longer wish to subscribe, send mail to[email protected] with
| the words "unsubscribe selinux" without quotes as the message.This usually means the system thinks you have a user account home directory in
/usr/local, If there is a system account in/usr/localmake sure its shell is/sbin/nologinor/bin/falseand then run semodule -BTo regenerate the home directory file context.
If you have real users with the home directory in
/usr/local, you need to move them in order for SELinux to get the file labelling correct. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
Quoted 4 lines
iEYEARECAAYFAkg7+3UACgkQrlYvE4MpobO1kwCfR1a+RaI0l5bTqvqwiKx/OHqA AoQAoM0RJN5atVpEseTgnHzxkXRCuZCj
=30dH
-----END PGP SIGNATURE-----
Thanks a lot. This solve the problem.
Regards, Ali Nebi!
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.