summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2017-09-11 11:21:35 -0700
committerPatrick McLean <chutzpah@gentoo.org>2017-09-11 11:22:09 -0700
commitbd72cd05304156a4a52c43db54eb05fa10e57e1b (patch)
tree1d6f4b97b1df291581b58ea463f9a0898959ef2c /net-misc/lldpd/files
parentmail-client/mutt: revbump to 1.9.0-r1 to fix faulty patchset (diff)
downloadgentoo-bd72cd05304156a4a52c43db54eb05fa10e57e1b.tar.gz
gentoo-bd72cd05304156a4a52c43db54eb05fa10e57e1b.tar.bz2
gentoo-bd72cd05304156a4a52c43db54eb05fa10e57e1b.zip
net-misc/lldpd: Version bump to 0.9.8, add patch to whitelist getpid
Gentoo-Bug: 630584 Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'net-misc/lldpd/files')
-rw-r--r--net-misc/lldpd/files/lldpd-0.9-add-getpid-to-seccomp.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/net-misc/lldpd/files/lldpd-0.9-add-getpid-to-seccomp.patch b/net-misc/lldpd/files/lldpd-0.9-add-getpid-to-seccomp.patch
new file mode 100644
index 000000000000..55ed4b6f8e38
--- /dev/null
+++ b/net-misc/lldpd/files/lldpd-0.9-add-getpid-to-seccomp.patch
@@ -0,0 +1,12 @@
+diff --git a/src/daemon/priv-seccomp.c b/src/daemon/priv-seccomp.c
+index 1905236..7d911bc 100644
+--- a/src/daemon/priv-seccomp.c
++++ b/src/daemon/priv-seccomp.c
+@@ -161,6 +161,7 @@ priv_seccomp_init(int remote, int child)
+ (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(sendmmsg), 0)) < 0 ||
+ (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(wait4), 0)) < 0 ||
+ (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(stat), 0)) < 0 ||
++ (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(getpid), 0)) < 0 ||
+ (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(rt_sigreturn), 0)) < 0 ||
+ (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(close), 0)) < 0 ||
+ (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(sendto), 0)) < 0 ||