I would think more like:
struct sockperms s;
s.proto = IPPROTO_UDP;
s.port = 53;
s.owner = getpwnam("named")->pw_uid;
ioctl(rawsocket, SIOCSETPERMS, &s);
--
brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net
system administrator [WAY too many hats] allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering KF8NH
We are Linux. Resistance is an indication that you missed the point.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/