aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-01-03 12:08:18 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-01-03 12:08:18 +0000
commitb870eea0a63aad62d0d73e159f9f5b79ac31983b (patch)
treea1de6e6335344fb81d3c11b2a898908d591b74d9 /sys
parent7b6cc40479b0b88d4ca9ec1e15d9bda120d17ea3 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/security/mac_seeotheruids/mac_seeotheruids.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/security/mac_seeotheruids/mac_seeotheruids.c b/sys/security/mac_seeotheruids/mac_seeotheruids.c
index 9da454cbc9d62..d2e856f87eb8e 100644
--- a/sys/security/mac_seeotheruids/mac_seeotheruids.c
+++ b/sys/security/mac_seeotheruids/mac_seeotheruids.c
@@ -117,6 +117,9 @@ mac_seeotheruids_check(struct ucred *u1, struct ucred *u2)
if (u1->cr_ruid == u2->cr_ruid)
return (0);
+ if (suser_cred(u1, 0) == 0)
+ return (0);
+
return (ESRCH);
}