net-analyzer/pnp4nagios: use group permissions for writable directories.
authorMichael Orlitzky <mjo@gentoo.org>
Sat, 4 Nov 2017 23:30:20 +0000 (19:30 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Sat, 4 Nov 2017 23:37:24 +0000 (19:37 -0400)
The past few revisions have made some directories owned by the "nagios
user" so that the nagios/icinga daemon can write stuff there. Instead
of giving ownership of those directories to the nagios user, it's a
little bit more secure to give group-rwx permissions to the "nagios
group." This new revision does that instead.

Package-Manager: Portage-2.3.8, Repoman-2.3.3

net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r9.ebuild [moved from net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r8.ebuild with 92% similarity]

similarity index 92%
rename from net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r8.ebuild
rename to net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r9.ebuild
index 8d5fdbcf842d52f300b7c09da62db034d7946101..ffa296c134892483af81d2c14f91aa27aa8a1aa0 100644 (file)
@@ -75,16 +75,19 @@ src_install() {
        # perfdata-dir...
        local user_group=nagios
        use icinga && user_group=icinga
-       fowners "${user_group}:${user_group}" /var/lib/pnp/{,perfdata,spool}
+       fowners ":${user_group}" /var/lib/pnp/{,perfdata,spool}
+       fperms g+rwx /var/lib/pnp/{,perfdata,spool}
 
        # and likewise for its logs...
        dodir /var/log/pnp
-       fowners "${user_group}:${user_group}" /var/log/pnp
+       fowners ":${user_group}" /var/log/pnp
+       fperms g+rwx /var/log/pnp
 
        # and its statistics. This one is arguably the responsibility of the
        # build system, since process_perfdata.cfg refers to this location.
        dodir /var/lib/pnp/stats
-       fowners "${user_group}:${user_group}" /var/lib/pnp/stats
+       fowners ":${user_group}" /var/lib/pnp/stats
+       fperms g+rwx /var/lib/pnp/stats
 }
 
 pkg_postinst() {