aports/main/nagios/permissions.patch
Sertonix b6268b322f main/nagios: fix ownership of installed files/directories
The ownership of most files/directories was set to the nagios user/group
which meant that they had write access to a lot more files that they
should have.

Upstream disables the ownership change in the makefiles[0] and does them
manually which I have ported to the APKBUILD.

[0]: f6f417eff0/nagios.spec (L156)
2024-11-02 01:51:13 +00:00

16 lines
612 B
Diff

Use standard permissions for binries
--- a/base/Makefile.in
+++ b/base/Makefile.in
@@ -189,8 +189,8 @@ install:
$(INSTALL) -s -m 774 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
install-unstripped:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 774 $(INSTALL_OPTS) nagios $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 774 $(INSTALL_OPTS) nagiostats $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) nagios $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) nagiostats $(DESTDIR)$(BINDIR)
.PHONY: libnagios