summaryrefslogtreecommitdiff
path: root/usr/src/cmd/dlmgmtd
diff options
context:
space:
mode:
authorCathy Zhou <Cathy.Zhou@Sun.COM>2008-11-14 14:28:43 -0800
committerCathy Zhou <Cathy.Zhou@Sun.COM>2008-11-14 14:28:43 -0800
commit2d4eecfa187a743d7823497136e21cb0568eb77d (patch)
tree7003e27746705e49431f3e3830b6d4e11fb97d05 /usr/src/cmd/dlmgmtd
parent71269a2275bf5a143dad6461eee2710a344e7261 (diff)
downloadillumos-joyent-2d4eecfa187a743d7823497136e21cb0568eb77d.tar.gz
6757536 nwam in maintenance after boot, ifconfig core dump with large stack
Diffstat (limited to 'usr/src/cmd/dlmgmtd')
-rw-r--r--usr/src/cmd/dlmgmtd/dlmgmt_door.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/cmd/dlmgmtd/dlmgmt_door.c b/usr/src/cmd/dlmgmtd/dlmgmt_door.c
index 2374047078..aa32d7cee5 100644
--- a/usr/src/cmd/dlmgmtd/dlmgmt_door.c
+++ b/usr/src/cmd/dlmgmtd/dlmgmt_door.c
@@ -1036,8 +1036,11 @@ dlmgmt_handler(void *cookie, char *argp, size_t argsz, door_desc_t *dp,
}
eset = ucred_getprivset(cred, PRIV_EFFECTIVE);
- if (eset == NULL || !priv_ismember(eset, PRIV_SYS_DL_CONFIG))
+ if ((eset == NULL) ||
+ (!priv_ismember(eset, PRIV_SYS_DL_CONFIG) &&
+ !priv_ismember(eset, PRIV_SYS_NET_CONFIG))) {
err = EACCES;
+ }
ucred_free(cred);
if (err != 0)
goto fail;