Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144542808
D12339.1775325067.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12339.1775325067.diff
View Options
Index: head/lib/libc/sys/rename.2
===================================================================
--- head/lib/libc/sys/rename.2
+++ head/lib/libc/sys/rename.2
@@ -28,7 +28,7 @@
.\" @(#)rename.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd April 10, 2008
+.Dd September 15, 2017
.Dt RENAME 2
.Os
.Sh NAME
@@ -252,6 +252,9 @@
.Fa to
argument
is a directory and is not empty.
+.It Bq Er ECAPMODE
+.Fn rename
+was called and the process is in capability mode.
.El
.Pp
In addition to the errors returned by the
@@ -288,6 +291,26 @@
is neither
.Dv AT_FDCWD
nor a file descriptor associated with a directory.
+.It Bq Er ECAPMODE
+.Dv AT_FDCWD
+is specified and the process is in capability mode.
+.It Bq Er ENOTCAPABLE
+.Fa path
+is an absolute path or contained a ".." component leading to a directory
+outside of the directory hierarchy specified by
+.Fa fromfd
+or
+.Fa tofd .
+.It Bq Er ENOTCAPABLE
+The
+.Fa fromfd
+file descriptor lacks the
+.Dv CAP_RENAMEAT_SOURCE
+right, or the
+.Fa tofd
+file descriptor lacks the
+.Dv CAP_RENAMEAT_TARGET
+right.
.El
.Sh SEE ALSO
.Xr chflags 2 ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 5:51 PM (7 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28260668
Default Alt Text
D12339.1775325067.diff (1 KB)
Attached To
Mode
D12339: rename(2): document capability mode errors
Attached
Detach File
Event Timeline
Log In to Comment