1 |
commit: f9897d936fcad0c175a4a54dc9e14561fef9236d |
2 |
Author: Chris PeBenito <pebenito <AT> ieee <DOT> org> |
3 |
AuthorDate: Thu Jan 28 16:30:40 2021 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 01:21:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f9897d93 |
7 |
|
8 |
sysnetwork: Merge dhcpc_manage_samba tunable block with existing samba block. |
9 |
|
10 |
This moves the existing samba_manage_config(dhcpc_t) that is not tunable |
11 |
into the tunable block. |
12 |
|
13 |
Signed-off-by: Chris PeBenito <pebenito <AT> ieee.org> |
14 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
15 |
|
16 |
policy/modules/system/sysnetwork.te | 23 ++++++++++------------- |
17 |
1 file changed, 10 insertions(+), 13 deletions(-) |
18 |
|
19 |
diff --git a/policy/modules/system/sysnetwork.te b/policy/modules/system/sysnetwork.te |
20 |
index a8fe42d6..ee768012 100644 |
21 |
--- a/policy/modules/system/sysnetwork.te |
22 |
+++ b/policy/modules/system/sysnetwork.te |
23 |
@@ -184,18 +184,6 @@ ifdef(`init_systemd',` |
24 |
init_search_units(dhcpc_t) |
25 |
') |
26 |
|
27 |
-optional_policy(` |
28 |
- tunable_policy(`dhcpc_manage_samba',` |
29 |
- samba_manage_var_files(dhcpc_t) |
30 |
- init_exec_script_files(dhcpc_t) |
31 |
- init_get_system_status(dhcpc_t) |
32 |
- samba_stop(dhcpc_t) |
33 |
- samba_start(dhcpc_t) |
34 |
- samba_reload(dhcpc_t) |
35 |
- samba_status(dhcpc_t) |
36 |
- ') |
37 |
-') |
38 |
- |
39 |
optional_policy(` |
40 |
avahi_domtrans(dhcpc_t) |
41 |
') |
42 |
@@ -252,7 +240,16 @@ optional_policy(` |
43 |
') |
44 |
|
45 |
optional_policy(` |
46 |
- samba_manage_config(dhcpc_t) |
47 |
+ tunable_policy(`dhcpc_manage_samba',` |
48 |
+ samba_manage_config(dhcpc_t) |
49 |
+ samba_manage_var_files(dhcpc_t) |
50 |
+ init_exec_script_files(dhcpc_t) |
51 |
+ init_get_system_status(dhcpc_t) |
52 |
+ samba_stop(dhcpc_t) |
53 |
+ samba_start(dhcpc_t) |
54 |
+ samba_reload(dhcpc_t) |
55 |
+ samba_status(dhcpc_t) |
56 |
+ ') |
57 |
') |
58 |
|
59 |
optional_policy(` |