All of lore.kernel.org
 help / color / mirror / Atom feed
* Strange context on unix_stream_socket
@ 2014-01-25 20:59 Ole Kliemann
  2014-01-26 12:29 ` Ole Kliemann
       [not found] ` <CAPJdAQCZ0W4Bbm5JGa+R4QQkkeddoZFdUn5icJyo07xAB7BvNw@mail.gmail.com>
  0 siblings, 2 replies; 10+ messages in thread
From: Ole Kliemann @ 2014-01-25 20:59 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]

I'm having an odd problem:

I am running my own MCS constrainted policy on Ubuntu 12.04. At 
some point I have a process with context 

    sub_t:s0:c20-s0:c20.c29

From this process I try to access a jack daemon with mplayer. For 
this purpose unix stream sockets are being used. I then get an 
avc denial saying that

    process sub_t:s0:c20-s0:c20.c29

tried to access 

    unix_stream_socket sub_t:s0

which is prohibited by mcs constrain. The socket is on sockfs and 
has no file associated with it.

The problem is that under no circumstances the policy allows the 
creation of anything with 'sub_t:s0'. 

Using an auditallow rule like

    auditallow any_type sub_t:unix_stream_socket { create relabelto relabelfrom };

clearly shows that indeed no socket with a context like that is 
created nor relabel to.  And yet it exists.


I'd highly appreciate any hint on this matter. Including how to 
debug further. How can I display the security context of a socket 
on sockfs? 

Best regards
Ole

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-30 18:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-25 20:59 Strange context on unix_stream_socket Ole Kliemann
2014-01-26 12:29 ` Ole Kliemann
2014-01-26 22:46   ` Ole Kliemann
2014-01-27 16:20     ` Stephen Smalley
2014-01-28 17:12       ` Ole Kliemann
2014-01-28 17:22         ` Stephen Smalley
2014-01-30 15:10           ` Richard Haines
2014-01-30 15:15             ` Stephen Smalley
2014-01-30 18:33             ` Ole Kliemann
     [not found] ` <CAPJdAQCZ0W4Bbm5JGa+R4QQkkeddoZFdUn5icJyo07xAB7BvNw@mail.gmail.com>
2014-01-26 12:33   ` ole

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.