Page MenuHomeFreeBSD

D32438.id96657.diff
No OneTemporary

D32438.id96657.diff

Index: lib/libc/sys/extattr_get_file.2
===================================================================
--- lib/libc/sys/extattr_get_file.2
+++ lib/libc/sys/extattr_get_file.2
@@ -149,6 +149,11 @@
functions take a path.
Both arguments describe a file associated with the extended attribute
that should be manipulated.
+The
+.Qq Li _fd
+functions can be used with file descriptors opened with the
+.Dv O_PATH
+flag.
.Pp
The following arguments are common to all the system calls described here:
.Bl -tag -width attrnamespace
Index: sys/kern/vfs_extattr.c
===================================================================
--- sys/kern/vfs_extattr.c
+++ sys/kern/vfs_extattr.c
@@ -242,7 +242,7 @@
return (error);
AUDIT_ARG_TEXT(attrname);
- error = getvnode(td, uap->fd,
+ error = getvnode_path(td, uap->fd,
cap_rights_init_one(&rights, CAP_EXTATTR_SET), &fp);
if (error)
return (error);
@@ -409,7 +409,7 @@
return (error);
AUDIT_ARG_TEXT(attrname);
- error = getvnode(td, uap->fd,
+ error = getvnode_path(td, uap->fd,
cap_rights_init_one(&rights, CAP_EXTATTR_GET), &fp);
if (error)
return (error);
@@ -544,7 +544,7 @@
return (error);
AUDIT_ARG_TEXT(attrname);
- error = getvnode(td, uap->fd,
+ error = getvnode_path(td, uap->fd,
cap_rights_init_one(&rights, CAP_EXTATTR_DELETE), &fp);
if (error)
return (error);
@@ -690,7 +690,7 @@
AUDIT_ARG_FD(uap->fd);
AUDIT_ARG_VALUE(uap->attrnamespace);
- error = getvnode(td, uap->fd,
+ error = getvnode_path(td, uap->fd,
cap_rights_init_one(&rights, CAP_EXTATTR_LIST), &fp);
if (error)
return (error);

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 26, 7:13 AM (1 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30370259
Default Alt Text
D32438.id96657.diff (1 KB)

Event Timeline