Skip to contentSkip to conversation

Add kernel_service class and access vector definition

PATCH New Stephen Smalley 3 participants 3 messages Jan 5, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add kernel_service class and access vector definition

The kernel_service class and permissions are now defined in the mainline kernel, and thus need to be reserved in the policy (thankfully there is no conflicting definition already there). With this patch applied, a make in policy/flask yields identical headers to the latest mainline kernel headers.

policy/flask/security_classes +3 -0
Index: refpolicy/policy/flask/security_classes
===================================================================
@@ -116,4 +116,7 @@
 class x_synthetic_event		# userspace
 class x_application_data	# userspace
 
+# kernel services that need to override task security, e.g. cachefiles
+class kernel_service 
+
 # FLASK
policy/flask/access_vectors +6 -0
Index: refpolicy/policy/flask/access_vectors
===================================================================
@@ -782,3 +782,9 @@
 	paste_after_confirm
 	copy
 }
+
+class kernel_service
+{
+	use_as_override
+	create_files_as	
+}
Signature · 2 lines
Stephen Smalley
National Security Agency
#1 lore raw

PATCH 1/1 Add kernel_service class and access vector definition

Quoted 5 lines · Stephen Smalley

The kernel_service class and permissions are now defined in the mainline kernel, and thus need to be reserved in the policy (thankfully there is no conflicting definition already there). With this patch applied, a make in policy/flask yields identical headers to the latest mainline kernel headers.

certainly an ACK from me.

-Eric

#2 lore raw

PATCH 1/1 Add kernel_service class and access vector definition

In reply to Stephen Smalley
Quoted 5 lines · Stephen Smalley

The kernel_service class and permissions are now defined in the mainline kernel, and thus need to be reserved in the policy (thankfully there is no conflicting definition already there). With this patch applied, a make in policy/flask yields identical headers to the latest mainline kernel headers.

Merged.

Quoted 27 lines

Index: refpolicy/policy/flask/security_classes
===================================================================

policy/flask/security_classes +3 -0
@@ -116,4 +116,7 @@
 class x_synthetic_event		# userspace
 class x_application_data	# userspace
 
+# kernel services that need to override task security, e.g. cachefiles
+class kernel_service 
+
 # FLASK

Index: refpolicy/policy/flask/access_vectors
===================================================================

policy/flask/access_vectors +6 -0
@@ -782,3 +782,9 @@
 	paste_after_confirm
 	copy
 }
+
+class kernel_service
+{
+	use_as_override
+	create_files_as	
+}
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150