Skip to contentSkip to conversation

Define a relabelto permission in the SELinux packet class (fwd)

RFC New James Morris 1 participant 1 message May 7, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 6/8 Define a relabelto permission in the SELinux packet class (fwd)

---------- Forwarded message ----------
Date: Sun, 7 May 2006 11:38:08 -0400 (EDT)
From: James Morris <[email protected]>
To: [email protected]
Cc: [email protected], [email protected],
Stephen Smalley <[email protected]>, Daniel J Walsh <[email protected]>
Subject: [RFC][SECMARK 06/08] Define a relabelto permission in the SELinux
packet class

This patch defines a new permission ('relabelto') in the new SELinux packet object class, to be used when setting SECMARK rules for labeling packets.

---

 security/selinux/include/av_perm_to_string.h |    1 +
 security/selinux/include/av_permissions.h    |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
security/selinux/include/av_permissions.h +1 -1
diff -purN -X dontdiff linux-2.6.17-rc3-git7.p/security/selinux/include/av_permissions.h linux-2.6.17-rc3-git7.w/security/selinux/include/av_permissions.h
@@ -935,4 +935,4 @@
 
 #define PACKET__SEND                              0x00000001UL
 #define PACKET__RECV                              0x00000002UL
-
+#define PACKET__RELABELTO                         0x00000004UL
security/selinux/include/av_perm_to_string.h +1 -0
diff -purN -X dontdiff linux-2.6.17-rc3-git7.p/security/selinux/include/av_perm_to_string.h linux-2.6.17-rc3-git7.w/security/selinux/include/av_perm_to_string.h
@@ -241,3 +241,4 @@
    S_(SECCLASS_ASSOCIATION, ASSOCIATION__SETCONTEXT, "setcontext")
    S_(SECCLASS_PACKET, PACKET__SEND, "send")
    S_(SECCLASS_PACKET, PACKET__RECV, "recv")
+   S_(SECCLASS_PACKET, PACKET__RELABELTO, "relabelto")