diff options
| author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-10-23 12:00:30 +0000 |
|---|---|---|
| committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-10-23 12:00:30 +0000 |
| commit | 1c7481377c7aca0261382636819e8a8ab886c247 (patch) | |
| tree | 703dadf8fd6565b794b6df56f4d9bdf15f53ff7d /sys/compat/linux | |
| parent | 7135ca98d23b23ea817dadcdfb4425e878a2bc03 (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/linux_misc.c | 8 | ||||
| -rw-r--r-- | sys/compat/linux/linux_misc.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 936d2ab531ef..adff122a96de 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -2001,7 +2001,15 @@ linux_prctl(struct thread *td, struct linux_prctl_args *args) error = copyout(comm, (void *)(register_t)args->arg2, strlen(comm) + 1); break; + case LINUX_PR_GET_SECCOMP: + case LINUX_PR_SET_SECCOMP: + /* + * Same as returned by Linux without CONFIG_SECCOMP enabled. + */ + error = EINVAL; + break; default: + linux_msg(td, "unsupported prctl option %d", args->option); error = EINVAL; break; } diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index 2e804f109043..8181ad275cff 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -54,6 +54,8 @@ #define LINUX_PR_SET_KEEPCAPS 8 /* Set drop capabilities on setuid */ #define LINUX_PR_SET_NAME 15 /* Set process name. */ #define LINUX_PR_GET_NAME 16 /* Get process name. */ +#define LINUX_PR_GET_SECCOMP 21 +#define LINUX_PR_SET_SECCOMP 22 #define LINUX_MAX_COMM_LEN 16 /* Maximum length of the process name. */ |
