* Problem with multisame specification warning messages RHEL 5
@ 2008-05-26 8:44 Ali Nebi
2008-05-27 12:15 ` Daniel J Walsh
0 siblings, 1 reply; 3+ messages in thread
From: Ali Nebi @ 2008-05-26 8:44 UTC (permalink / raw)
To: selinux
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with multisame specification warning messages RHEL 5
2008-05-26 8:44 Problem with multisame specification warning messages RHEL 5 Ali Nebi
@ 2008-05-27 12:15 ` Daniel J Walsh
2008-05-27 20:47 ` Ali Nebi
0 siblings, 1 reply; 3+ messages in thread
From: Daniel J Walsh @ 2008-05-27 12:15 UTC (permalink / raw)
To: anebi; +Cc: selinux
-----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
majordomo@tycho.nsa.gov 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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with multisame specification warning messages RHEL 5
2008-05-27 12:15 ` Daniel J Walsh
@ 2008-05-27 20:47 ` Ali Nebi
0 siblings, 0 replies; 3+ messages in thread
From: Ali Nebi @ 2008-05-27 20:47 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: selinux
Quoting Daniel J Walsh <dwalsh@redhat.com>:
> -----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
> majordomo@tycho.nsa.gov 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-----
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-27 20:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-26 8:44 Problem with multisame specification warning messages RHEL 5 Ali Nebi
2008-05-27 12:15 ` Daniel J Walsh
2008-05-27 20:47 ` Ali Nebi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.