since yp_bind() and yp_all() don't use open, fstat, read, socket, and other
authorderaadt <deraadt@openbsd.org>
Sun, 17 Jul 2022 03:10:47 +0000 (03:10 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 17 Jul 2022 03:10:47 +0000 (03:10 +0000)
commitfa136f0389f3685de9d2a20d99ff580a276303aa
tree1839abc147599352e9f6b6ef1e8e274395099c15
parent125e612249e7e7e68f06de8dfd5a1f6a187a27d2
since yp_bind() and yp_all() don't use open, fstat, read, socket, and other
rich system calls to perform YP/LDAP lookups, there is no need to access()
/var/run/ypbind.lock to "hint" to pledge that it should open up those system
calls.
ok jmatthew, miod
lib/libc/gen/getgrent.c
lib/libc/gen/getgrouplist.c
lib/libc/gen/getpwent.c