diff --git a/man2/prctl.2 b/man2/prctl.2 index 4be4f10e1..cebb83bbc 100644 --- a/man2/prctl.2 +++ b/man2/prctl.2 @@ -1012,6 +1012,38 @@ On error, \-1 is returned, and is set appropriately. .SH ERRORS .TP +.B EACCES +.I option +is +.BR PR_SET_MM , +and +.I arg3 +is +.BR PR_SET_MM_EXE_FILE , +the file is not executable. +.TP +.B EBADF +.I option +is +.BR PR_SET_MM , +.I arg3 +is +.BR PR_SET_MM_EXE_FILE , +and the file descriptor passed in +.I arg4 +is not valid. +.TP +.B EBUSY +.I option +is +.BR PR_SET_MM , +.I arg3 +is +.BR PR_SET_MM_EXE_FILE , +and this the second attempt to change the +.I /proc/pid/exe +symbolic link, which is prohibited. +.TP .B EFAULT .I arg2 is an invalid address. @@ -1197,6 +1229,15 @@ or .IR arg5 is nonzero. .TP +.B ENXIO +.I option +was +.BR PR_MPX_ENABLE_MANAGEMENT +or +.BR PR_MPX_DISABLE_MANAGEMENT +and the kernel or the CPU does not support MPX management. +Check that the kernel and processor have MPX support. +.TP .B EPERM .I option is @@ -1234,47 +1275,6 @@ is and the caller does not have the .B CAP_SYS_RESOURCE capability. -.TP -.B EACCES -.I option -is -.BR PR_SET_MM , -and -.I arg3 -is -.BR PR_SET_MM_EXE_FILE , -the file is not executable. -.TP -.B EBUSY -.I option -is -.BR PR_SET_MM , -.I arg3 -is -.BR PR_SET_MM_EXE_FILE , -and this the second attempt to change the -.I /proc/pid/exe -symbolic link, which is prohibited. -.TP -.B EBADF -.I option -is -.BR PR_SET_MM , -.I arg3 -is -.BR PR_SET_MM_EXE_FILE , -and the file descriptor passed in -.I arg4 -is not valid. -.TP -.B ENXIO -.I option -was -.BR PR_MPX_ENABLE_MANAGEMENT -or -.BR PR_MPX_DISABLE_MANAGEMENT -and the kernel or the CPU does not support MPX management. -Check that the kernel and processor have MPX support. .SH VERSIONS The .BR prctl ()