Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148637971
D26899.id78589.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26899.id78589.diff
View Options
Index: sys/compat/linux/linux_misc.h
===================================================================
--- sys/compat/linux/linux_misc.h
+++ 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. */
Index: sys/compat/linux/linux_misc.c
===================================================================
--- sys/compat/linux/linux_misc.c
+++ sys/compat/linux/linux_misc.c
@@ -2001,7 +2001,15 @@
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;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 20, 7:19 AM (16 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30006533
Default Alt Text
D26899.id78589.diff (1 KB)
Attached To
Mode
D26899: Improve prctl(2) debug
Attached
Detach File
Event Timeline
Log In to Comment