RE: SELinux Policy in OpenSUSE 11.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Today, up until now, I've been working with the binary policy package in the native OpenSuse 11.2 repository (without installing source).  But I've just now installed the corresponding source package and built it as monolithic=n.  As before, "setsebool -P init_upstart=1" gives an error message:
----------------
Libsemanage.get_home_dirs: nobody homedir /var/lib/nobody or its parent directory conflicts with a file context already specified in the policy.  This usually indicates an incorrectly defined system account.  If it is a system account please make sure its uid is less than 1000 or its log in shell is /sbin/nologin.
----------------

So I did "usermod -s /sbin/nologin nobody" and repeated the setsebool. No error message returned, and "getsebool init_upstart" reports that it was on.  But after reboot it is off again...  And, yes, I did issue "setsebool -P init_upstart=1" before reboot, and confirmed with "getsebool init_upstart" that it worked.

It is still giving the gdm /selinux error that I quoted in my first email on this thread (despite the fact that selinux is in permissive mode, confirmed by sestatus).  The following services in runlevel 5 fail:  earlyxdm, xdm, avahi-daemon.   So boot drops me into runlevel 3.  The sestatus -v and pstree -Z are unchanged from what I sent most recently (since the setsebool -P isn't persistent across a boot.)

-----Original Message-----
From: Stephen Smalley [mailto:sds@xxxxxxxxxxxxx] 
Sent: Wednesday, February 17, 2010 3:35 PM
To: Alan Rouse
Subject: RE: SELinux Policy in OpenSUSE 11.2

On Wed, 2010-02-17 at 15:18 -0500, Alan Rouse wrote:
> Ok, for that I'll have to get the source and build it as a non-monolithic policy, right? 

Oh, I thought you were already building it with MONOLITHIC=n.
If it is monolithic, then just change the init_upstart = false line in policy/booleans.conf to init_upstart = true and do a make load.

--
Stephen Smalley
National Security Agency



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux