git: f6de9c63314f - stable/15 - uipc_usrreq: revert addition of EMPTYPATH for bindat(2)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Jun 2026 01:03:46 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=f6de9c63314fcaa33c3723e22dd6f685550069d6
commit f6de9c63314fcaa33c3723e22dd6f685550069d6
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-06-04 17:26:09 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-06-13 00:58:33 +0000
uipc_usrreq: revert addition of EMPTYPATH for bindat(2)
(cherry picked from commit 453968c78d27ed5c90562a1178f34fe8d616bf40)
---
lib/libsys/open.2 | 4 +---
sys/kern/uipc_usrreq.c | 5 ++---
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/lib/libsys/open.2 b/lib/libsys/open.2
index defc593b15ce..7915f7e8ef0a 100644
--- a/lib/libsys/open.2
+++ b/lib/libsys/open.2
@@ -447,11 +447,9 @@ The other functionality of the returned file descriptor is limited to
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
+.Pq see Xr unix 4
.It Xr fcntl 2
but advisory locking is not allowed
.It Xr dup 2
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 96cd22786558..aaa998106bf2 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -616,9 +616,8 @@ uipc_bindat(int fd, struct socket *so, struct sockaddr *nam, struct thread *td)
buf[namelen] = 0;
restart:
- NDINIT_ATRIGHTS(&nd, CREATE, NOFOLLOW | LOCKPARENT | NOCACHE |
- EMPTYPATH, UIO_SYSSPACE, buf, fd, cap_rights_init_one(&rights,
- CAP_BINDAT));
+ NDINIT_ATRIGHTS(&nd, CREATE, NOFOLLOW | LOCKPARENT | NOCACHE,
+ 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)