diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2016-12-05 16:34:56 -0800 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2016-12-05 16:35:29 -0800 |
commit | bb12143c16378a705ce8592ac5f304901f8665de (patch) | |
tree | 78e18fc63fd47f966bfbe5f377973e947adef1cb /net-misc/lldpd/files | |
parent | app-misc/inputlircd: update HOMEPAGE (diff) | |
download | gentoo-bb12143c16378a705ce8592ac5f304901f8665de.tar.gz gentoo-bb12143c16378a705ce8592ac5f304901f8665de.tar.bz2 gentoo-bb12143c16378a705ce8592ac5f304901f8665de.zip |
net-misc/lldpd: Revision bump, add sendmmsg and recvfrom to seccomp filter
Package-Manager: portage-2.3.2
Diffstat (limited to 'net-misc/lldpd/files')
-rw-r--r-- | net-misc/lldpd/files/lldpd-0.9.5-seccomp-add-socket-ops.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net-misc/lldpd/files/lldpd-0.9.5-seccomp-add-socket-ops.patch b/net-misc/lldpd/files/lldpd-0.9.5-seccomp-add-socket-ops.patch new file mode 100644 index 000000000000..987ef9a515c5 --- /dev/null +++ b/net-misc/lldpd/files/lldpd-0.9.5-seccomp-add-socket-ops.patch @@ -0,0 +1,13 @@ +diff --git a/src/daemon/priv-seccomp.c b/src/daemon/priv-seccomp.c +index 97f4233..36184cd 100644 +--- a/src/daemon/priv-seccomp.c ++++ b/src/daemon/priv-seccomp.c +@@ -167,6 +167,8 @@ priv_seccomp_init(int remote, int child) + (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(recvmsg), 0)) < 0 || + (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(readv), 0)) < 0 || + (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(mprotect), 0)) < 0 || ++ (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(sendmmsg), 0)) < 0 || ++ (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(recvfrom), 0)) < 0 || + /* The following are for resolving addresses */ + (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(mmap), 0)) < 0 || + (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(munmap), 0)) < 0 || |