Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110783594
D26916.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
D26916.diff
View Options
Index: head/sys/compat/linux/linux_misc.h
===================================================================
--- head/sys/compat/linux/linux_misc.h
+++ head/sys/compat/linux/linux_misc.h
@@ -50,12 +50,15 @@
* Second arg is a ptr to return the
* signal.
*/
+#define LINUX_PR_SET_DUMPABLE 4
#define LINUX_PR_GET_KEEPCAPS 7 /* Get drop capabilities on setuid */
#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_PR_SET_NO_NEW_PRIVS 38
+#define LINUX_PR_SET_PTRACER 1499557217
#define LINUX_MAX_COMM_LEN 16 /* Maximum length of the process name. */
Index: head/sys/compat/linux/linux_misc.c
===================================================================
--- head/sys/compat/linux/linux_misc.c
+++ head/sys/compat/linux/linux_misc.c
@@ -1949,6 +1949,10 @@
(void *)(register_t)args->arg2,
sizeof(pdeath_signal)));
break;
+ case LINUX_PR_SET_DUMPABLE:
+ linux_msg(td, "unsupported prctl PR_SET_DUMPABLE");
+ error = EINVAL;
+ break;
case LINUX_PR_GET_KEEPCAPS:
/*
* Indicate that we always clear the effective and
@@ -2006,6 +2010,14 @@
/*
* Same as returned by Linux without CONFIG_SECCOMP enabled.
*/
+ error = EINVAL;
+ break;
+ case LINUX_PR_SET_NO_NEW_PRIVS:
+ linux_msg(td, "unsupported prctl PR_SET_NO_NEW_PRIVS");
+ error = EINVAL;
+ break;
+ case LINUX_PR_SET_PTRACER:
+ linux_msg(td, "unsupported prctl PR_SET_PTRACER");
error = EINVAL;
break;
default:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 24, 2:21 AM (14 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16808666
Default Alt Text
D26916.diff (1 KB)
Attached To
Mode
D26916: Further improve prctl(2) debug
Attached
Detach File
Event Timeline
Log In to Comment