Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115856403
D38976.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D38976.diff
View Options
diff --git a/lib/libc/sys/cap_enter.2 b/lib/libc/sys/cap_enter.2
--- a/lib/libc/sys/cap_enter.2
+++ b/lib/libc/sys/cap_enter.2
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 5, 2020
+.Dd March 9, 2023
.Dt CAP_ENTER 2
.Os
.Sh NAME
@@ -113,9 +113,8 @@
will fail if:
.Bl -tag -width Er
.It Bq Er ENOSYS
-The kernel is compiled without:
-.Pp
-.Cd "options CAPABILITY_MODE"
+The running kernel was compiled without
+.Cd "options CAPABILITY_MODE" .
.El
.Pp
The
diff --git a/lib/libc/sys/cap_fcntls_limit.2 b/lib/libc/sys/cap_fcntls_limit.2
--- a/lib/libc/sys/cap_fcntls_limit.2
+++ b/lib/libc/sys/cap_fcntls_limit.2
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 5, 2020
+.Dd March 9, 2023
.Dt CAP_FCNTLS_LIMIT 2
.Os
.Sh NAME
@@ -110,6 +110,9 @@
The
.Fa fcntlrightsp
argument points at an invalid address.
+.It Bq Er ENOSYS
+The running kernel was compiled without
+.Cd "options CAPABILITY_MODE" .
.El
.Sh SEE ALSO
.Xr cap_ioctls_limit 2 ,
diff --git a/lib/libc/sys/cap_ioctls_limit.2 b/lib/libc/sys/cap_ioctls_limit.2
--- a/lib/libc/sys/cap_ioctls_limit.2
+++ b/lib/libc/sys/cap_ioctls_limit.2
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 5, 2020
+.Dd March 9, 2023
.Dt CAP_IOCTLS_LIMIT 2
.Os
.Sh NAME
@@ -109,8 +109,11 @@
.Va -1
is returned and the global variable errno is set to indicate the error.
.Sh ERRORS
+The
.Fn cap_ioctls_limit
-succeeds unless:
+and
+.Fn cap_ioctls_get
+system calls will fail if:
.Bl -tag -width Er
.It Bq Er EBADF
The
@@ -120,6 +123,15 @@
The
.Fa cmds
argument points at an invalid address.
+.It Bq Er ENOSYS
+The running kernel was compiled without
+.Cd "options CAPABILITY_MODE" .
+.El
+.Pp
+The
+.Fn cap_ioctls_limit
+system call may also return the following errors:
+.Bl -tag -width Er
.It Bq Er EINVAL
The
.Fa ncmds
@@ -131,19 +143,6 @@
.Xr ioctl 2
commands.
.El
-.Pp
-.Fn cap_ioctls_get
-succeeds unless:
-.Bl -tag -width Er
-.It Bq Er EBADF
-The
-.Fa fd
-argument is not a valid descriptor.
-.It Bq Er EFAULT
-The
-.Fa cmds
-argument points at invalid address.
-.El
.Sh SEE ALSO
.Xr cap_fcntls_limit 2 ,
.Xr cap_rights_limit 2 ,
diff --git a/lib/libc/sys/cap_rights_limit.2 b/lib/libc/sys/cap_rights_limit.2
--- a/lib/libc/sys/cap_rights_limit.2
+++ b/lib/libc/sys/cap_rights_limit.2
@@ -32,7 +32,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 5, 2020
+.Dd March 9, 2023
.Dt CAP_RIGHTS_LIMIT 2
.Os
.Sh NAME
@@ -120,6 +120,9 @@
.It Bq Er EINVAL
An invalid right has been requested in
.Fa rights .
+.It Bq Er ENOSYS
+The running kernel was compiled without
+.Cd "options CAPABILITY_MODE" .
.It Bq Er ENOTCAPABLE
The
.Fa rights
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 3:10 PM (2 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17860234
Default Alt Text
D38976.diff (2 KB)
Attached To
Mode
D38976: cap_*(2): Document ENOSYS behavior.
Attached
Detach File
Event Timeline
Log In to Comment