Skip to contentSkip to conversation

policy: add new permission setsuid to file class

PATCH New Eric Paris 1 participant 1 message Oct 17, 2008 SELinux security module

lore
Share & tools
lore

Eric Paris

author
#0 lore raw

PATCH 1/1 policy: add new permission setsuid to file class

Add a new permission to the file class and a corresponding policy capability. This is checked any time chmod is called and the suid or sgid bits are set or will be set on that file. This does not enable the permission in policy, only defines it.

---

policy/flask/access_vectors +1 -0
diff -Naupr serefpolicy-3.4.2/policy/flask/access_vectors serefpolicy-3.4.2.new/policy/flask/access_vectors
@@ -135,6 +135,7 @@ inherits file
 	entrypoint
 	execmod
 	open
+	setsuid
 }
 
 class lnk_file
policy/policy_capabilities +7 -0
diff -Naupr serefpolicy-3.4.2/policy/policy_capabilities serefpolicy-3.4.2.new/policy/policy_capabilities
@@ -31,3 +31,10 @@
 # blk_file: open
 #
 #policycap open_perms;
+
+# Enable additional acces controls for setting suid and sguid
+#
+# Checks enabled:
+# file: setsuid
+#
+#policycap setsuid_perms;

--
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.