[Git][NTPsec/ntpsec][master] Add prlimit64 to seccomp list

Hal Murray gitlab at mg.gitlab.com
Wed Jul 12 19:09:22 UTC 2017


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
122f396b by Hal Murray at 2017-07-12T12:04:15-07:00
Add prlimit64 to seccomp list

- - - - -


1 changed file:

- ntpd/ntp_sandbox.c


Changes:

=====================================
ntpd/ntp_sandbox.c
=====================================
--- a/ntpd/ntp_sandbox.c
+++ b/ntpd/ntp_sandbox.c
@@ -275,7 +275,6 @@ getgroup:
 
         signal_no_reset1(SIGSYS, catchTrap);
 
-
 	if (NULL == ctx) {
 		msyslog(LOG_ERR, "sandbox: seccomp_init() failed: %m");
 		exit (1);
@@ -306,6 +305,9 @@ int scmp_sc[] = {
 	SCMP_SYS(getrlimit),	/* sysconf */
 	SCMP_SYS(setrlimit),
 #endif
+#ifdef __NR_prlimit64
+	SCMP_SYS(prlimit64),	/* 64 bit Fedora 26 with early_droproot*/
+#endif
 	SCMP_SYS(getrusage),
 	SCMP_SYS(getsockname),
 	SCMP_SYS(getsockopt),



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/122f396b111bfd69a82dc5567a6548ff48304c48

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/122f396b111bfd69a82dc5567a6548ff48304c48
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170712/87325e2b/attachment.html>


More information about the vc mailing list