A question about genhomedircon
Hi,
Looking at policycoreutils-2.0.77/scripts/genhomedircon, I see:
--8<---------------cut here---------------start------------->8--- #!/bin/sh/usr/sbin/semodule -Bn
--8<---------------cut here---------------end--------------->8---
Looking at the man page for semodule, it says:
--8<---------------cut here---------------start------------->8---
-B, --build
force a rebuild of policy (also reloads unless -n is used)
-n,--noreload
do not reload policy after commit
--8<---------------cut here---------------end--------------->8---
Given that, it would seem that genhomedircon rebuilds, but does
not reload policy. I would expect genhomedircon to generate SELinux file context configuration entries for user home directories, or something.
What am I missing?
manoj
Signature · 7 lines
Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- 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.
Hi,
Quoted 13 lines · Manoj Srivastava
Looking at policycoreutils-2.0.77/scripts/genhomedircon, I see:
#!/bin/sh/usr/sbin/semodule-Bn
Looking at the man page for semodule, it says:
-B, --build
force a rebuild of policy (also reloads unless -n is used)
-n,--noreload
do not reload policy after commit
Given that, it would seem that genhomedircon rebuilds, but does
not reload policy. I would expect genhomedircon to generate SELinux file context configuration entries for user home directories, or something.
Quoted 1 line
What am I missing?
I also note that there used to be a man page (see
http://linux.die.net/man/8/genhomedircon for the old contents) that also seems to have gone away.
manoj
Signature · 7 lines
Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- 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.
Quoted 16 lines · Manoj Srivastava
Hi,
Looking at policycoreutils-2.0.77/scripts/genhomedircon, I see:
--8<---------------cut here---------------start------------->8--- #!/bin/sh/usr/sbin/semodule-Bn
--8<---------------cut here---------------end--------------->8---Looking at the man page for semodule, it says:
--8<---------------cut here---------------start------------->8---
-B, --build
force a rebuild of policy (also reloads unless -n is used)
-n,--noreload
do not reload policy after commit
--8<---------------cut here---------------end--------------->8---
Quoted 6 lines
Given that, it would seem that genhomedircon rebuilds, but does
not reload policy. I would expect genhomedircon to generate SELinux file context configuration entries for user home directories, or something.What am I missing?
Theres no need to reload the policy, as the policy isn't changing. It does, however, regenerate the file contexts, including the home dir contexts.
Signature · 10 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- 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.
Quoted 3 lines · Christopher J. PeBenito
Theres no need to reload the policy, as the policy isn't changing. It does, however, regenerate the file contexts, including the home dir contexts.
So the behaviour has not changed? In which case, can we bring
back the man page for the command?
manoj
Signature · 7 lines
Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- 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.
Quoted 11 lines · Manoj Srivastava
Quoted 3 lines · Christopher J. PeBenito
Theres no need to reload the policy, as the policy isn't changing. It does, however, regenerate the file contexts, including the home dir contexts.
So the behaviour has not changed? In which case, can we bring
back the man page for the command?manoj
Sounds good to me.
--
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.