[packages] openntpd:
- don't check directory permissions, we can't make /var 0700 (#9258) - fix init script after r26148, use service_kill instead of killall -9 (#9258) - bump pkg revision git-svn-id: svn://svn.openwrt.org/openwrt/packages@26717 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
11
net/openntpd/patches/003-no_permission_check.patch
Normal file
11
net/openntpd/patches/003-no_permission_check.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/ntp.c
|
||||
+++ b/ntp.c
|
||||
@@ -111,8 +111,6 @@ ntp_main(int pipe_prnt[2], struct ntpd_c
|
||||
|
||||
if (stat(chrootdir, &stb) == -1)
|
||||
fatal("stat");
|
||||
- if (stb.st_uid != 0 || (stb.st_mode & (S_IWGRP|S_IWOTH)) != 0)
|
||||
- fatal("bad privsep dir permissions");
|
||||
if (chroot(chrootdir) == -1)
|
||||
fatal("chroot");
|
||||
if (chdir("/") == -1)
|
Reference in New Issue
Block a user