diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2017-07-23 14:28:23 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2017-07-23 14:28:23 +0000 |
commit | 4d2540015cbb419961b7180f7348aa6bc813a784 (patch) | |
tree | b4de4dc4fc46bb484f65ad5b043e16e29567840b /gnu/share | |
parent | e0912176cbfb3584e1ee9c27f720d8918d22a935 (diff) |
Don't hit pledge(2) restrictions on interface departure
if_exists() can't be used after dropping privileges, since it uses
socket(2) and ioctl(SIOCGIFDATA). We're just trying to know whether an
interface exists, and if_nametoindex(3) is enough for that.
ok deraadt@
Diffstat (limited to 'gnu/share')
0 files changed, 0 insertions, 0 deletions