Red Hat Bugzilla – Bug 483923
"setsebool -P samba_enable_home_dirs=1" fails
Last modified: 2009-11-18 06:22:43 EST
Created attachment 330839 [details]
setroubleshoot alert for above
Description of problem:
Issued "setsebool -P samba_enable_home_dirs=1" dozens of times, still getting still getting selinux_alerts as attached
Maybe wrong package - adjust as necessary
Version-Release number of selected component (if applicable):
$ rpm -q --whatprovides setsebool
no package provides setsebool
$ rpm -q setools
package setools is not installed
Seems consistent fail
Steps to Reproduce:
1. Share home directories via samba
2. Get attached setroubleshoot selinux_alerts
3. "Issue setsebool -P samba_enable_home_dirs=1" command
Attached selinux_alert care of setroubleshoot
This is not setools, this is a policy issue.
You have a labeling problem in your homedir, caused by not having this boolean set and running in permissive mode.
restorecon -R -v /home
Should fix the problem.
OK, but I can't see selecting "permissive mode" and then having the above problem is not a bug? Selecting "permissive mode" is a normal/usual function available via system-config-selinux.py and the least it should do for this not to be a bug is throw up a warning that the above command needs to be executed (if not executing the command itself).
Further, it caused this bug https://bugzilla.redhat.com/show_bug.cgi?id=483917, which is perhaps not a bug if this is a bug... (Or, perhaps it's a bug if this isn't.)
So, I've reopened.
The reason you were able to create the file in the homedir is because you were in permissive mode. SELinux policy does not know the difference, the kernel reports the error to you and the system creates the file. But now that I think about it, this is a bug in policy.
policy should still do the transitions outside of the booleans, so the file context is maintained.
Miroslav can you look through the policy and check out anywhere these is a file transition rule within a boolean. Then move it outside.
Effects at least
Samba, nfs, ftp
Fixed in selinux-policy-3.5.13-45.fc10
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '10'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 10's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 10 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here: