1 |
commit: 3c9fbd8f4568196a2e2685b5c66fddf7a68e5fb7 |
2 |
Author: Nicolas Iooss <nicolas.iooss <AT> m4x <DOT> org> |
3 |
AuthorDate: Sat Oct 18 13:30:20 2014 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 31 15:26:27 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=3c9fbd8f |
7 |
|
8 |
Label /sbin/iw as ifconfig_exec_t |
9 |
|
10 |
iw manpage says "iw - show / manipulate wireless devices and their |
11 |
configuration". Label this command ifconfig_exec_t to allow it to |
12 |
manage wireless communication devices. |
13 |
|
14 |
Debian installs iw in /sbin/iw, Fedora in /usr/sbin/iw and Arch Linux in |
15 |
/usr/bin/iw (with /usr/sbin being a symlink to /usr/bin). |
16 |
|
17 |
--- |
18 |
policy/modules/system/sysnetwork.fc | 2 ++ |
19 |
1 file changed, 2 insertions(+) |
20 |
|
21 |
diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc |
22 |
index fa7a406..fbb935c 100644 |
23 |
--- a/policy/modules/system/sysnetwork.fc |
24 |
+++ b/policy/modules/system/sysnetwork.fc |
25 |
@@ -48,6 +48,7 @@ ifdef(`distro_redhat',` |
26 |
/sbin/ipx_configure -- gen_context(system_u:object_r:ifconfig_exec_t,s0) |
27 |
/sbin/ipx_interface -- gen_context(system_u:object_r:ifconfig_exec_t,s0) |
28 |
/sbin/ipx_internal_net -- gen_context(system_u:object_r:ifconfig_exec_t,s0) |
29 |
+/sbin/iw -- gen_context(system_u:object_r:ifconfig_exec_t,s0) |
30 |
/sbin/iwconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) |
31 |
/sbin/mii-tool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) |
32 |
/sbin/pump -- gen_context(system_u:object_r:dhcpc_exec_t,s0) |
33 |
@@ -56,6 +57,7 @@ ifdef(`distro_redhat',` |
34 |
# |
35 |
# /usr |
36 |
# |
37 |
+/usr/sbin/iw -- gen_context(system_u:object_r:ifconfig_exec_t,s0) |
38 |
/usr/sbin/tc -- gen_context(system_u:object_r:ifconfig_exec_t,s0) |
39 |
|
40 |
# |