aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2004-07-23 01:53:28 +0000
committerRobert Watson <rwatson@FreeBSD.org>2004-07-23 01:53:28 +0000
commit56c38cd9678533d5ac4be68f1881b434be673ec7 (patch)
tree19123edf5dcbc6ba985fa9d5a4d8ca598daf2194 /sys
parent163fac2c5881790916cc36e39ec9688c1c811053 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/security/mac_bsdextended/mac_bsdextended.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/security/mac_bsdextended/mac_bsdextended.c b/sys/security/mac_bsdextended/mac_bsdextended.c
index 1816a98a0f536..ab467f891011c 100644
--- a/sys/security/mac_bsdextended/mac_bsdextended.c
+++ b/sys/security/mac_bsdextended/mac_bsdextended.c
@@ -275,6 +275,9 @@ mac_bsdextended_check(struct ucred *cred, uid_t object_uid, gid_t object_gid,
{
int error, i;
+ if (suser_cred(cred, 0) == 0)
+ return (0);
+
for (i = 0; i < rule_slots; i++) {
if (rules[i] == NULL)
continue;