Skip to contentSkip to conversation

actually label /dev/net

PATCH New Colin Walters 1 participant 1 message Jul 25, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 actually label /dev/net

Hi,

Attached is a very tiny patch against the FC2 policy to label /dev/net. This is needed for the OpenVPN policy, in the next message.

* finding or making patch-18
* finding or making patch-19
* computing changeset
A {arch}/policy/policy--main/policy--main--0/[email protected]/patch-log/patch-19 M file_contexts/types.fc
* changeset report
* added files

    {arch}/policy/policy--main/policy--main--0/[email protected]/patch-log/patch-19

* modified files

file_contexts/types.fc +1 -0
@@ -139,6 +139,7 @@
 /u?dev/nb[^/]+		-b	system_u:object_r:fixed_disk_device_t
 /u?dev/ataraid/.*		-b	system_u:object_r:fixed_disk_device_t
 /u?dev/loop.*		-b	system_u:object_r:fixed_disk_device_t
+/u?dev/net/.*		-c	system_u:object_r:tun_tap_device_t
 /u?dev/ram.*		-b	system_u:object_r:fixed_disk_device_t
 /u?dev/rawctl		-c	system_u:object_r:fixed_disk_device_t
 /u?dev/raw/raw[0-9]+	-c	system_u:object_r:fixed_disk_device_t