James Carlson wrote: > ... > > This means that nwamd must now determine (from a door call) whether > the caller has the right to change network parameters (such as setting > up interfaces, tearing them down, selecting wireless access points, > and so on). >
You can use the following calls to do that -
door_ucred(&cred);
ucred_getprivset(cred, pset);
priv_ismember(pset, PRIV_SYS_NET_CONFIG);
nscd code is a good example.
-Krishna
