All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MLS context contains policy/libselinux changes
@ 2006-11-07 21:51 James Antill
  2006-11-08  6:32 ` Joshua Brindle
  2006-11-14 13:38 ` Christopher J. PeBenito
  0 siblings, 2 replies; 6+ messages in thread
From: James Antill @ 2006-11-07 21:51 UTC (permalink / raw)
  To: Christopher J. PeBenito; +Cc: redhat-lspp, SE Linux, Stephen Smalley


[-- Attachment #1.1: Type: text/plain, Size: 307 bytes --]


 Here is the policy changes needed for the context contains security
checking in PAM and cron.

-- 
James Antill - <james.antill@redhat.com>
setsockopt(fd, IPPROTO_TCP, TCP_CONGESTION, ...);
setsockopt(fd, IPPROTO_TCP, TCP_DEFER_ACCEPT, ...);
setsockopt(fd, SOL_SOCKET,  SO_ATTACH_FILTER, ...);


[-- Attachment #1.2: MLS Range checking for cron/PAM --]
[-- Type: text/x-patch, Size: 1095 bytes --]

Index: policy/flask/access_vectors
===================================================================
--- policy/flask/access_vectors	(revision 2078)
+++ policy/flask/access_vectors	(working copy)
@@ -635,4 +635,5 @@
 class context
 {
 	translate
+	contains
 }
Index: policy/modules/system/userdomain.if
===================================================================
--- policy/modules/system/userdomain.if	(revision 2078)
+++ policy/modules/system/userdomain.if	(working copy)
@@ -51,6 +51,8 @@
 	allow $1_t self:msg { send receive };
 	dontaudit $1_t self:socket create;
 
+	allow $1_t self:context contains;
+
 	allow $1_t $1_devpts_t:chr_file { setattr ioctl read getattr lock write append };
 	term_create_pty($1_t,$1_devpts_t)
 
Index: policy/mls
===================================================================
--- policy/mls	(revision 2078)
+++ policy/mls	(working copy)
@@ -597,4 +597,7 @@
 mlsconstrain context translate
 	(( h1 dom h2 ) or ( t1 == mlstranslate ));
 
+mlsconstrain context contains
+	( h1 dom h2 );
+
 ') dnl end enable_mls

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-11-14 13:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-07 21:51 [PATCH] MLS context contains policy/libselinux changes James Antill
2006-11-08  6:32 ` Joshua Brindle
2006-11-08  6:40   ` James Antill
2006-11-08 13:31     ` Joshua Brindle
2006-11-08 14:00       ` Stephen Smalley
2006-11-14 13:38 ` 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.