PERFORCE change 22756 for review
Chris Vance
cvance at freebsd.org
Thu Dec 26 13:47:15 GMT 2002
http://perforce.freebsd.org/chv.cgi?CH=22756
Change 22756 by cvance at cvance_laptop on 2002/12/26 05:47:01
Modify policy to correctly label /dev/bpf entries, and allow dhclient
to read/write to them.
Affected files ...
.. //depot/projects/trustedbsd/mac/contrib/sebsd/policy/domains/program/dhcpc.te#2 edit
.. //depot/projects/trustedbsd/mac/contrib/sebsd/policy/file_contexts/program/dhcpc.fc#3 edit
.. //depot/projects/trustedbsd/mac/contrib/sebsd/policy/genfs_contexts#3 edit
.. //depot/projects/trustedbsd/mac/contrib/sebsd/policy/types/device.te#2 edit
Differences ...
==== //depot/projects/trustedbsd/mac/contrib/sebsd/policy/domains/program/dhcpc.te#2 (text+ko) ====
@@ -59,3 +59,6 @@
file_type_auto_trans(dhcpc_t, dhcp_state_t, dhcpc_state_t)
can_exec(dhcpc_t, { bin_t shell_exec_t })
+
+# Allow dhclient to use /dev/bpf*
+allow dhcpc_t bpf_device_t:chr_file rw_file_perms;
==== //depot/projects/trustedbsd/mac/contrib/sebsd/policy/file_contexts/program/dhcpc.fc#3 (text+ko) ====
@@ -1,8 +1,6 @@
# dhcpcd
/etc/dhcpc.*(/.*)? system_u:object_r:etc_dhcpc_t
/etc/dhclient.conf system_u:object_r:etc_dhcpc_t
-/etc/dhclient-script system_u:object_r:etc_dhcpc_t
-/sbin/dhcpcd system_u:object_r:dhcpc_exec_t
+/stand/dhclient.* system_u:object_r:etc_dhcpc_t
/sbin/dhclient.* system_u:object_r:dhcpc_exec_t
-/var/lib/dhcp system_u:object_r:dhcp_state_t
-/var/lib/dhcp/dhclient.* system_u:object_r:dhcpc_state_t
+/var/db/dhclient.leases system_u:object_r:dhcpc_state_t
==== //depot/projects/trustedbsd/mac/contrib/sebsd/policy/genfs_contexts#3 (text+ko) ====
@@ -58,4 +58,5 @@
genfscon devfs /acpi system_u:object_r:apm_bios_t
genfscon devfs /sound -c system_u:object_r:sound_device_t
genfscon devfs /usb system_u:object_r:usbdevfs_device_t
+genfscon devfs /bpf -c system_u:object_r:bpf_device_t
# FLASK
==== //depot/projects/trustedbsd/mac/contrib/sebsd/policy/types/device.te#2 (text+ko) ====
@@ -104,3 +104,7 @@
# Type for /dev/cpu/mtrr
type mtrr_device_t, file_type;
+
+# Type for /dev/bpf*
+type bpf_device_t, file_type;
+
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list