sync with OpenBSD -current
This commit is contained in:
parent
9bb6d42f92
commit
efa57bf0d2
33 changed files with 279 additions and 223 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: uipc_syscalls.c,v 1.217 2024/02/03 22:50:09 mvs Exp $ */
|
||||
/* $OpenBSD: uipc_syscalls.c,v 1.218 2024/03/01 14:15:01 bluhm Exp $ */
|
||||
/* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -1560,12 +1560,12 @@ sys_ypconnect(struct proc *p, void *v, register_t *retval)
|
|||
|
||||
if (p->p_p->ps_flags & PS_CHROOT)
|
||||
return EACCES;
|
||||
KERNEL_LOCK();
|
||||
name = pool_get(&namei_pool, PR_WAITOK);
|
||||
snprintf(name, MAXPATHLEN, "/var/yp/binding/%s.2", domainname);
|
||||
NDINIT(&nid, 0, NOFOLLOW|LOCKLEAF|KERNELPATH, UIO_SYSSPACE, name, p);
|
||||
nid.ni_pledge = PLEDGE_RPATH;
|
||||
|
||||
KERNEL_LOCK();
|
||||
error = namei(&nid);
|
||||
pool_put(&namei_pool, name);
|
||||
if (error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue