msantos/procket — pull request #8 by yamt (2012-07-24 17:19:29+00:00)
Title: use sudo only when necessary

try sudo only when it seems necessary. i.e. when we actually got EACCES.

motivations:

- the use of sudo involves some side effects which might be undesirable.
for example, as sudo is a setuid binary, LD_PRELOAD is unset.
it makes difficult to use this with a rump kernel.
http://netbsd.gw.com/cgi-bin/man-cgi?rumphijack++NetBSD-current

- as priv/procket command can be used to open arbitrary /dev files,
it's better to just allow a user to open eg. /dev/bpf instead of
allowing him sudo procket.