selinux February 2011 archive
Main Archive Page > Month Archives  > selinux archives
selinux: kdm patch

kdm patch

From: Russell Coker <russell_at_nospam>
Date: Sun Feb 13 2011 - 12:16:34 GMT
To: "SE-Linux" <>

The attached patch makes kdm do all the work of determining the correct SE
Linux context. With this patch there is no need for for a kdm

The reason for this is that currently when kdm creates a ~/.xsession-errors
file it uses the default level - IE the low level of the kdm process itself.
If the user has a low level that's higher than SystemLow then they won't be
able to write to the errors file. My patch makes it call setfscreatecon()
before doing that.

Please tell me what you think, both about the patch itself and the concept.
If we go ahead with this then I'll probably have to write similar patches for
all the other common xdm programs.

-- My Main Blog My Documents Blog

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