1 |
commit: bb37c689dfa61fc5300dd7b7d2c38fb5609d5165 |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Sat Jan 31 11:17:24 2015 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 31 11:17:24 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=bb37c689 |
7 |
|
8 |
Enable salt-minion to switch uid/gid to portage |
9 |
|
10 |
The salt-minion daemon needs to switch its userid/groupid to the portage |
11 |
ones before calling the emerge command to start installing software. |
12 |
|
13 |
By allowing setuid/setgid capabilities, the installation succeeds. |
14 |
|
15 |
--- |
16 |
policy/modules/contrib/salt.te | 2 +- |
17 |
1 file changed, 1 insertion(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/policy/modules/contrib/salt.te b/policy/modules/contrib/salt.te |
20 |
index 024a165..970b183 100644 |
21 |
--- a/policy/modules/contrib/salt.te |
22 |
+++ b/policy/modules/contrib/salt.te |
23 |
@@ -198,7 +198,7 @@ tunable_policy(`salt_master_read_nfs',` |
24 |
# salt_minion_t policy |
25 |
# |
26 |
|
27 |
-allow salt_minion_t self:capability { fsetid chown dac_override dac_read_search net_admin sys_admin sys_tty_config }; |
28 |
+allow salt_minion_t self:capability { fsetid chown dac_override dac_read_search net_admin setgid setuid sys_admin sys_tty_config }; |
29 |
allow salt_minion_t self:capability2 block_suspend; |
30 |
allow salt_minion_t self:process { signal signull }; |
31 |
allow salt_minion_t self:tcp_socket create_stream_socket_perms; |