Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176303148
D57370.id179090.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
D57370.id179090.diff
View Options
diff --git a/lib/libsys/open.2 b/lib/libsys/open.2
--- a/lib/libsys/open.2
+++ b/lib/libsys/open.2
@@ -447,6 +447,11 @@
the following descriptor-level operations:
.Pp
.Bl -tag -width __acl_aclcheck_fd -offset indent -compact
+.It Xr bindat 2
+for unix domain socket
+.Pq see Xr unix 4
+.It Xr connectat 2
+for unix domain socket
.It Xr fcntl 2
but advisory locking is not allowed
.It Xr dup 2
@@ -836,6 +841,7 @@
.Xr write 2 ,
.Xr fopen 3 ,
.Xr capsicum 4 ,
+.Xr unix 4 ,
.Xr named_attribute 7
.Sh STANDARDS
These functions are specified by
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -612,8 +612,9 @@
buf[namelen] = 0;
restart:
- NDINIT_ATRIGHTS(&nd, CREATE, NOFOLLOW | LOCKPARENT | NOCACHE,
- UIO_SYSSPACE, buf, fd, cap_rights_init_one(&rights, CAP_BINDAT));
+ NDINIT_ATRIGHTS(&nd, CREATE, NOFOLLOW | LOCKPARENT | NOCACHE |
+ EMPTYPATH, UIO_SYSSPACE, buf, fd, cap_rights_init_one(&rights,
+ CAP_BINDAT));
/* SHOULD BE ABLE TO ADOPT EXISTING AND wakeup() ALA FIFO's */
error = namei(&nd);
if (error)
@@ -2921,7 +2922,7 @@
sa = malloc(sizeof(struct sockaddr_un), M_SONAME, M_WAITOK);
else
sa = NULL;
- NDINIT_ATRIGHTS(&nd, LOOKUP, FOLLOW | LOCKSHARED | LOCKLEAF,
+ NDINIT_ATRIGHTS(&nd, LOOKUP, FOLLOW | LOCKSHARED | LOCKLEAF | EMPTYPATH,
UIO_SYSSPACE, buf, fd, cap_rights_init_one(&rights, CAP_CONNECTAT));
error = namei(&nd);
if (error)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 18, 7:00 PM (5 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41009644
Default Alt Text
D57370.id179090.diff (1 KB)
Attached To
Mode
D57370: bindat(2)/connectat(2): allow implicit EMPTYPATH for unix domain sockets
Attached
Detach File
Event Timeline
Log In to Comment