1 |
commit: 974707d375cc8cb22593224b38c73853e906d157 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 4 23:30:20 2017 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 4 23:37:24 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=974707d3 |
7 |
|
8 |
net-analyzer/pnp4nagios: use group permissions for writable directories. |
9 |
|
10 |
The past few revisions have made some directories owned by the "nagios |
11 |
user" so that the nagios/icinga daemon can write stuff there. Instead |
12 |
of giving ownership of those directories to the nagios user, it's a |
13 |
little bit more secure to give group-rwx permissions to the "nagios |
14 |
group." This new revision does that instead. |
15 |
|
16 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
17 |
|
18 |
.../{pnp4nagios-0.6.26-r8.ebuild => pnp4nagios-0.6.26-r9.ebuild} | 9 ++++++--- |
19 |
1 file changed, 6 insertions(+), 3 deletions(-) |
20 |
|
21 |
diff --git a/net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r8.ebuild b/net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r9.ebuild |
22 |
similarity index 92% |
23 |
rename from net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r8.ebuild |
24 |
rename to net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r9.ebuild |
25 |
index 8d5fdbcf842..ffa296c1348 100644 |
26 |
--- a/net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r8.ebuild |
27 |
+++ b/net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r9.ebuild |
28 |
@@ -75,16 +75,19 @@ src_install() { |
29 |
# perfdata-dir... |
30 |
local user_group=nagios |
31 |
use icinga && user_group=icinga |
32 |
- fowners "${user_group}:${user_group}" /var/lib/pnp/{,perfdata,spool} |
33 |
+ fowners ":${user_group}" /var/lib/pnp/{,perfdata,spool} |
34 |
+ fperms g+rwx /var/lib/pnp/{,perfdata,spool} |
35 |
|
36 |
# and likewise for its logs... |
37 |
dodir /var/log/pnp |
38 |
- fowners "${user_group}:${user_group}" /var/log/pnp |
39 |
+ fowners ":${user_group}" /var/log/pnp |
40 |
+ fperms g+rwx /var/log/pnp |
41 |
|
42 |
# and its statistics. This one is arguably the responsibility of the |
43 |
# build system, since process_perfdata.cfg refers to this location. |
44 |
dodir /var/lib/pnp/stats |
45 |
- fowners "${user_group}:${user_group}" /var/lib/pnp/stats |
46 |
+ fowners ":${user_group}" /var/lib/pnp/stats |
47 |
+ fperms g+rwx /var/lib/pnp/stats |
48 |
} |
49 |
|
50 |
pkg_postinst() { |