All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] MLS unix socket sendto/connectto
@ 2010-11-04 13:19 Christopher J. PeBenito
  2010-11-04 14:46 ` Paul Moore
  0 siblings, 1 reply; 11+ messages in thread
From: Christopher J. PeBenito @ 2010-11-04 13:19 UTC (permalink / raw)
  To: refpolicy

The current MLS constraints for unix socket sendto/connectto are:

# UNIX domain socket ops
mlsconstrain unix_stream_socket connectto
        (( l1 eq l2 ) or
         (( t1 == mlsnetwriteranged ) and ( l1 dom l2 ) and ( l1 domby
h2 )) or
         (( t1 == mlsnetwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2
)) or
         ( t1 == mlsnetwrite ) or
         ( t2 == mlstrustedobject ));

mlsconstrain unix_dgram_socket sendto
        (( l1 eq l2 ) or
         (( t1 == mlsnetwriteranged ) and ( l1 dom l2 ) and ( l1 domby
h2 )) or
         (( t1 == mlsnetwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2
)) or
         ( t1 == mlsnetwrite ) or
         ( t2 == mlstrustedobject ));

These were added earlier this year (except the last t2 exception which
was added more recently).  My concern is with the mlstrustedobject part.
 We need an exception like this to handle domains such as syslog, so
they can receive messages from any level.  But I think we need a
different attribute since domain types are used for the process itself
and also it's /proc/pid files, so by making the domain a trusted object,
the /proc/pid become trusted objects too.  Opinions?

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

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

end of thread, other threads:[~2010-11-10 15:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04 13:19 [refpolicy] MLS unix socket sendto/connectto Christopher J. PeBenito
2010-11-04 14:46 ` Paul Moore
2010-11-05 12:04   ` Christopher J. PeBenito
2010-11-05 12:39     ` Paul Moore
2010-11-05 12:44       ` Christopher J. PeBenito
2010-11-05 12:49         ` Paul Moore
2010-11-05 13:53         ` chanson at TrustedCS.com
2010-11-10  4:45           ` HarryCiao
2010-11-10 15:06             ` Christopher J. PeBenito
2010-11-10 14:49         ` chanson at TrustedCS.com
2010-11-10 14:54           ` Christopher J. PeBenito

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.