BUG10730: fix permissions of ovpnserver.log

This commit is contained in:
Alexander Marx
2015-02-03 07:26:34 +01:00
parent 8451f21315
commit 8516edcc48
3 changed files with 7 additions and 4 deletions

View File

@@ -4,4 +4,3 @@ usr/sbin/syslogd
#usr/share/man/man8/sysklogd.8
var/log/dhcpcd.log
var/log/messages
var/log/ovpnserver.log

View File

@@ -75,8 +75,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
#cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)_xen_empty_buffer_check.patch
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
touch /var/log/{dhcpcd.log,messages,ovpnserver.log}
chmod 664 /var/log/{dhcpcd.log,messages,ovpnserver.log}
chown 0:105 /var/log/{dhcpcd.log,messages,ovpnserver.log}
touch /var/log/{dhcpcd.log,messages}
chmod 664 /var/log/{dhcpcd.log,messages}
chown 0:105 /var/log/{dhcpcd.log,messages}
@rm -rf $(DIR_APP)
@$(POSTBUILD)

View File

@@ -469,6 +469,10 @@ void startDaemon(void) {
executeCommand(command);
snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --config /var/ipfire/ovpn/server.conf");
executeCommand(command);
snprintf(command, STRING_SIZE-1, "/bin/chown root.nobody /var/run/ovpnserver.log");
executeCommand(command);
snprintf(command, STRING_SIZE-1, "/bin/chmod 644 /var/run/ovpnserver.log");
executeCommand(command);
}
}