From 5ada588ef0351c8dbf9997713c7ab182e97b0133fd98fac242cf7f70271f6116 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 19 Feb 2014 13:22:51 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=67 --- openssh-6.5p1-seccomp_getuid.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openssh-6.5p1-seccomp_getuid.patch b/openssh-6.5p1-seccomp_getuid.patch index 5859269..88bb8bb 100644 --- a/openssh-6.5p1-seccomp_getuid.patch +++ b/openssh-6.5p1-seccomp_getuid.patch @@ -6,7 +6,7 @@ from being killed by the seccomp filter diff --git a/openssh-6.5p1/sandbox-seccomp-filter.c b/openssh-6.5p1/sandbox-seccomp-filter.c --- a/openssh-6.5p1/sandbox-seccomp-filter.c +++ b/openssh-6.5p1/sandbox-seccomp-filter.c -@@ -85,16 +85,17 @@ static const struct sock_filter preauth_ +@@ -85,16 +85,18 @@ static const struct sock_filter preauth_ offsetof(struct seccomp_data, arch)), BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SECCOMP_AUDIT_ARCH, 1, 0), BPF_STMT(BPF_RET+BPF_K, SECCOMP_FILTER_FAIL), @@ -16,6 +16,7 @@ diff --git a/openssh-6.5p1/sandbox-seccomp-filter.c b/openssh-6.5p1/sandbox-secc SC_DENY(open, EACCES), SC_ALLOW(getpid), + SC_ALLOW(getuid), ++ SC_ALLOW(getuid32), SC_ALLOW(gettimeofday), SC_ALLOW(clock_gettime), #ifdef __NR_time /* not defined on EABI ARM */