diff options
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/mac_seeotheruids/mac_seeotheruids.c | 3 |
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 9da454c..d2e856f 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); } |