aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/sandbox-seccomp-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/sandbox-seccomp-filter.c')
-rw-r--r--crypto/openssh/sandbox-seccomp-filter.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/crypto/openssh/sandbox-seccomp-filter.c b/crypto/openssh/sandbox-seccomp-filter.c
index 23b40b643567..b31062c2b56c 100644
--- a/crypto/openssh/sandbox-seccomp-filter.c
+++ b/crypto/openssh/sandbox-seccomp-filter.c
@@ -430,7 +430,7 @@ static const struct sock_fprog preauth_program = {
};
struct ssh_sandbox {
- pid_t child_pid;
+ int junk;
};
struct ssh_sandbox *
@@ -444,8 +444,6 @@ ssh_sandbox_init(struct monitor *monitor)
*/
debug3("%s: preparing seccomp filter sandbox", __func__);
box = xcalloc(1, sizeof(*box));
- box->child_pid = 0;
-
return box;
}
@@ -527,17 +525,4 @@ ssh_sandbox_child(struct ssh_sandbox *box)
"PR_SET_NO_NEW_PRIVS failed", __func__);
}
-void
-ssh_sandbox_parent_finish(struct ssh_sandbox *box)
-{
- free(box);
- debug3("%s: finished", __func__);
-}
-
-void
-ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid)
-{
- box->child_pid = child_pid;
-}
-
#endif /* SANDBOX_SECCOMP_FILTER */