CVSROOT: /cvs Module name: src Changes by: mes...@cvs.openbsd.org 2018/08/14 00:38:33
Modified files: usr.sbin/apm : apm.c Log message: Drop unnecessary pledge(2) promises on apm(8): After we successfully connect to the unix socket created by apmd(8) all actions occur over fds so we can drop only to pledge("stdio"). The code path in the case that the required action is GETSTATUS, and we couldn't connect to the socket, then after open(2)/ioctl(2) the device /dev/apm directly we can pledge("stdio") as well since from here on down we only need to printf(3) messages. OK deraadt@