Skip to contentSkip to conversation

libselinux MLS range context contains for PAM/cron

PATCH In review James Antill 3 participants 4 messages Nov 7, 2006 – Nov 14, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libselinux MLS range context contains for PAM/cron

Here is the libselinux changes needed to do the security context
contains checks for PAM and cron.

Signature · 1 line
James Antill <[email protected]>
include/selinux/av_permissions.h +1 -0
Index: libselinux/include/selinux/av_permissions.h
===================================================================
@@ -896,3 +896,4 @@
 #define KEY__SETATTR                              0x00000020UL
 #define KEY__CREATE                               0x00000040UL
 #define CONTEXT__TRANSLATE                        0x00000001UL
+#define CONTEXT__CONTAINS                         0x00000002UL
src/av_perm_to_string.h +1 -0
Index: libselinux/src/av_perm_to_string.h
===================================================================
@@ -266,3 +266,4 @@
     S_(SECCLASS_KEY, KEY__SETATTR, "setattr")
     S_(SECCLASS_KEY, KEY__CREATE, "create")
     S_(SECCLASS_CONTEXT, CONTEXT__TRANSLATE, "translate")
+    S_(SECCLASS_CONTEXT, CONTEXT__CONTAINS, "contains")
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · James Antill

Here is the libselinux changes needed to do the security context
contains checks for PAM and cron.

include/selinux/av_permissions.h +1 -0
Index: libselinux/include/selinux/av_permissions.h
===================================================================
@@ -896,3 +896,4 @@
 #define KEY__SETATTR                              0x00000020UL
 #define KEY__CREATE                               0x00000040UL
 #define CONTEXT__TRANSLATE                        0x00000001UL
+#define CONTEXT__CONTAINS                         0x00000002UL
src/av_perm_to_string.h +1 -0
Index: libselinux/src/av_perm_to_string.h
===================================================================
@@ -266,3 +266,4 @@
     S_(SECCLASS_KEY, KEY__SETATTR, "setattr")
     S_(SECCLASS_KEY, KEY__CREATE, "create")
     S_(SECCLASS_CONTEXT, CONTEXT__TRANSLATE, "translate")
+    S_(SECCLASS_CONTEXT, CONTEXT__CONTAINS, "contains")

This patch is obviously fine as long as the corresponding policy patch is accepted.

Signature · 8 lines
Stephen Smalley
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 5 lines · Stephen Smalley
Quoted 2 lines · James Antill

Here is the libselinux changes needed to do the security context
contains checks for PAM and cron.

Index: libselinux/include/selinux/av_permissions.h

[cut]

Quoted 2 lines

+#define CONTEXT__CONTAINS 0x00000002UL
Index: libselinux/src/av_perm_to_string.h

[cut]

Quoted 4 lines

+ S_(SECCLASS_CONTEXT, CONTEXT__CONTAINS, "contains")

This patch is obviously fine as long as the corresponding policy patch is accepted.

The policy patch is fine, I was just waiting for the code to be accepted and committed.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
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
In reply to James Antill
Quoted 2 lines · James Antill

Here is the libselinux changes needed to do the security context
contains checks for PAM and cron.

Thanks, merged.

Signature · 8 lines
Stephen Smalley
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.