git: 9caeb82eab28 - main - Revert "linux: Provide dummy seccomp(2)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Jan 2022 14:47:25 UTC
The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=9caeb82eab2805782b9c3d9205007c1b0795e808 commit 9caeb82eab2805782b9c3d9205007c1b0795e808 Author: Edward Tomasz Napierala <trasz@FreeBSD.org> AuthorDate: 2022-01-20 22:25:15 +0000 Commit: Edward Tomasz Napierala <trasz@FreeBSD.org> CommitDate: 2022-01-20 22:25:15 +0000 Revert "linux: Provide dummy seccomp(2)" This reverts commit 56981629f91fcdd358ccb41081ff6dcc2edac12f. Wrong patch; fails to build on i386. --- sys/compat/linux/linux_misc.c | 16 ---------------- sys/compat/linux/linux_misc.h | 3 --- 2 files changed, 19 deletions(-) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 3287c64ab515..a8857eda680d 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -2880,19 +2880,3 @@ linux_poll(struct thread *td, struct linux_poll_args *args) tsp, NULL, 0)); } #endif /* __i386__ || __amd64__ */ - -int -linux_seccomp(struct thread *td, struct linux_seccomp_args *args) -{ - - switch (args->op) { - case LINUX_SECCOMP_GET_ACTION_AVAIL: - return (EOPNOTSUPP); - default: - /* - * Ignore unknown operations, just like Linux kernel built - * without CONFIG_SECCOMP. - */ - return (EINVAL); - } -} diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index 9a7cf89466a2..3bfc9843cda2 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -153,9 +153,6 @@ extern int stclohz; /* Linux syslog flags */ #define LINUX_SYSLOG_ACTION_READ_ALL 3 -/* Linux seccomp flags */ -#define LINUX_SECCOMP_GET_ACTION_AVAIL 2 - #if defined(__aarch64__) || (defined(__amd64__) && !defined(COMPAT_LINUX32)) int linux_ptrace_status(struct thread *td, int pid, int status); #endif