summaryrefslogtreecommitdiff
path: root/gnu/share
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-07-23 14:28:23 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-07-23 14:28:23 +0000
commit4d2540015cbb419961b7180f7348aa6bc813a784 (patch)
treeb4de4dc4fc46bb484f65ad5b043e16e29567840b /gnu/share
parente0912176cbfb3584e1ee9c27f720d8918d22a935 (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