Skip to contentSkip to conversation

kde 3.3's kdm creating /var/run/xdmctl

DISCUSSION Luke Kenneth Casson Leighton 2 participants 4 messages Aug 23, 2004 – Aug 28, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

this is a bit of an issue.

if /var/run/xdmctl gets accidentally deleted, kde sessions will not be able to do a shutdown or restart from the logout menu.

the reason is because xdm_t doesn't have permission to recreate the /var/run/xdmctl directory.

the suggestion of doing touch /var/run/xdmctl/.keep will simply stop kdm from rm'ing /var/run/xdmctl, but if the directory ever happens to _successfully_ be deleted (permissive mode for example) ...

also i find that on creation of this directory, its permission is set to var_run_t not xdm_var_run_t.

i'm not entirely sure what to do.

at the moment as a preliminary measure i've added permissions for xdm_t to create, access and delete sockets in both var_run_t _and_ xdm_var_run_t in order to deal with the mess.

help?

l.

Signature · 13 lines
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
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.
#1 lore raw
Quoted 8 lines · Luke Kenneth Casson Leighton

also i find that on creation of this directory, its permission is set to var_run_t not xdm_var_run_t.

i'm not entirely sure what to do.

at the moment as a preliminary measure i've added permissions for xdm_t to create, access and delete sockets in both var_run_t _and_ xdm_var_run_t in order to deal with the mess.

What creates the directory? If it is kdm itself, then extend the file_type_auto_trans(xdm_t, var_run_t, xdm_var_run_t, fifo_file) rule to also cover dir (replace fifo_file with { dir fifo_file}).

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
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.
#2 lore raw
Quoted 11 lines · Stephen Smalley
Quoted 8 lines · Luke Kenneth Casson Leighton

also i find that on creation of this directory, its permission is set to var_run_t not xdm_var_run_t.

i'm not entirely sure what to do.

at the moment as a preliminary measure i've added permissions for xdm_t to create, access and delete sockets in both var_run_t _and_ xdm_var_run_t in order to deal with the mess.

What creates the directory?

i believe it's kdm.

Quoted 3 lines

If it is kdm itself, then extend the file_type_auto_trans(xdm_t, var_run_t, xdm_var_run_t, fifo_file) rule to also cover dir (replace fifo_file with { dir fifo_file}).

okay, great, i'll try that out.

*whew*, there's a possible solution.

l.

--
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.

#3 lore raw
Quoted 14 lines · Luke Kenneth Casson Leighton
Quoted 11 lines · Stephen Smalley
Quoted 8 lines · Luke Kenneth Casson Leighton

also i find that on creation of this directory, its permission is set to var_run_t not xdm_var_run_t.

i'm not entirely sure what to do.

at the moment as a preliminary measure i've added permissions for xdm_t to create, access and delete sockets in both var_run_t _and_ xdm_var_run_t in order to deal with the mess.

What creates the directory?

Quoted 7 lines

i believe it's kdm.

Quoted 3 lines

If it is kdm itself, then extend the file_type_auto_trans(xdm_t, var_run_t, xdm_var_run_t, fifo_file) rule to also cover dir (replace fifo_file with { dir fifo_file}).

okay, great, i'll try that out.

seems to have worked. unlink permission isn't granted but the directory /var/run/xdmctl is deleted on logout only to be recreated at login anyway.

thanks stephen.

l.

--
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.