All of lore.kernel.org
 help / color / mirror / Atom feed
* file_contexts patch
@ 2004-07-16 20:15 Thomas Bleher
  2004-07-16 22:02 ` Russell Coker
  2004-07-17 10:15 ` Luke Kenneth Casson Leighton
  0 siblings, 2 replies; 20+ messages in thread
From: Thomas Bleher @ 2004-07-16 20:15 UTC (permalink / raw)
  To: SELinux ML


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

The attached patch adds some file_contexts and most importantly labels
libs under /opt correctly.

Please apply.

Thomas

-- 
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages
GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA  D09E C562 2BAE B2F4 ABE7

[-- Attachment #1.2: file_contexts.patch --]
[-- Type: text/plain, Size: 3322 bytes --]

diff -urN orig/file_contexts/program/hotplug.fc mod/file_contexts/program/hotplug.fc
--- orig/file_contexts/program/hotplug.fc	2004-06-19 10:31:43.000000000 +0200
+++ mod/file_contexts/program/hotplug.fc	2004-07-16 22:10:08.000000000 +0200
@@ -5,4 +5,5 @@
 /etc/hotplug/.*agent	--	system_u:object_r:sbin_t
 /etc/hotplug/.*rc	-- 	system_u:object_r:sbin_t
 /etc/hotplug/hotplug.functions --	system_u:object_r:sbin_t
+/var/run/usb(/.*)?		system_u:object_r:hotplug_var_run_t
 
diff -urN orig/file_contexts/program/screensaver.fc mod/file_contexts/program/screensaver.fc
--- orig/file_contexts/program/screensaver.fc	2004-05-24 00:55:04.000000000 +0200
+++ mod/file_contexts/program/screensaver.fc	2004-07-16 22:10:08.000000000 +0200
@@ -1,5 +1,7 @@
 # screensaver
 /usr/X11R6/bin/xscreensaver		--	system_u:object_r:screensaver_exec_t
-/usr/X11R6/bin/xscreensaver-demo		--	system_u:object_r:screensaver_exec_t
+/usr/X11R6/bin/xscreensaver-demo	--      system_u:object_r:screensaver_exec_t
+/opt/kde3/bin/kdesktop_lock		--	system_u:object_r:screensaver_exec_t
+/usr/bin/kdesktop_lock			--	system_u:object_r:screensaver_exec_t
 /usr/X11R6/lib(64)?/xscreensaver(.*)?	system_u:object_r:bin_t
 HOME_DIR/\.xscreensaver	system_u:object_r:ROLE_screensaver_rw_t
diff -urN orig/file_contexts/program/xdm.fc mod/file_contexts/program/xdm.fc
--- orig/file_contexts/program/xdm.fc	2004-06-19 10:31:44.000000000 +0200
+++ mod/file_contexts/program/xdm.fc	2004-07-16 22:12:17.000000000 +0200
@@ -17,7 +17,7 @@
 /etc/kde/kdm/Xsession	--	system_u:object_r:xsession_exec_t
 /var/run/xdmctl(/.*)?		system_u:object_r:xdm_var_run_t
 /var/run/console.*		system_u:object_r:xdm_var_run_t
-/var/lib/[kw]dm(/.*)?		system_u:object_r:xdm_var_lib_t
+/var/lib/[xkw]dm(/.*)?		system_u:object_r:xdm_var_lib_t
 /usr/lib/qt-3.3/etc/settings/qtrc(/.*)? system_u:object_r:xdm_var_lib_t
 
 #
diff -urN orig/file_contexts/types.fc mod/file_contexts/types.fc
--- orig/file_contexts/types.fc	2004-07-12 23:41:14.000000000 +0200
+++ mod/file_contexts/types.fc	2004-07-16 22:10:08.000000000 +0200
@@ -177,6 +177,7 @@
 /u?dev/input/event.*	-c	system_u:object_r:event_device_t
 /u?dev/input/mice	-c	system_u:object_r:mouse_device_t
 /u?dev/input/js.*	-c	system_u:object_r:mouse_device_t
+/u?dev/js.*		-c	system_u:object_r:mouse_device_t
 /u?dev/ptmx		-c	system_u:object_r:ptmx_t
 /u?dev/sequencer	-c	system_u:object_r:misc_device_t
 /u?dev/fb[0-9]*		-c	system_u:object_r:framebuf_device_t
@@ -207,6 +208,7 @@
 /u?dev/ht[0-1]		-b	system_u:object_r:tape_device_t
 /u?dev/n?osst[0-3].*	-c	system_u:object_r:tape_device_t
 /u?dev/n?pt[0-9]+	-c	system_u:object_r:tape_device_t
+/u?dev/usbscanner	-c	system_u:object_r:scanner_device_t
 /u?dev/usb/scanner.*	-c	system_u:object_r:scanner_device_t
 /u?dev/usb/dc2xx.*	-c	system_u:object_r:scanner_device_t
 /u?dev/usb/mdc800.*	-c	system_u:object_r:scanner_device_t
@@ -220,7 +222,10 @@
 /opt(/.*)?			system_u:object_r:usr_t
 /opt/[^/]*/bin(/.*)?		system_u:object_r:bin_t
 /opt/[^/]*/lib(/.*)?		system_u:object_r:lib_t
+/opt/[^/]*/lib/lib[^/]*\.so(\.[^/]*)*	--	system_u:object_r:shlib_t
+/opt/[^/]*/lib/.*/lib[^/]*\.so(\.[^/]*)*	--	system_u:object_r:shlib_t
 /opt/[^/]*/man(/.*)?		system_u:object_r:man_t
+/opt/[^/]*/libexec(/.*)?	system_u:object_r:bin_t
 
 #
 # /etc

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2004-07-30 13:34 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-16 20:15 file_contexts patch Thomas Bleher
2004-07-16 22:02 ` Russell Coker
2004-07-16 22:42   ` Thomas Bleher
2004-07-17  1:59     ` Russell Coker
2004-07-17 19:53       ` Thomas Bleher
2004-07-18  2:58         ` Russell Coker
2004-07-18 15:03           ` Thomas Bleher
2004-07-18 23:59             ` Russell Coker
2004-07-24 19:08               ` Thomas Bleher
2004-07-26 20:25         ` Stephen Smalley
2004-07-26 22:06           ` Thomas Bleher
2004-07-28  6:48             ` Russell Coker
2004-07-28 19:25             ` Stephen Smalley
2004-07-27  0:36           ` Valdis.Kletnieks
2004-07-27 13:38           ` Stephen Smalley
2004-07-27 17:17             ` Valdis.Kletnieks
2004-07-28  2:53             ` Russell Coker
2004-07-30 13:33               ` Stephen Smalley
2004-07-17 10:15 ` Luke Kenneth Casson Leighton
2004-07-17 13:52   ` Thomas Bleher

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.