priv: Remove some uses of PRIV_ROOT/PRISON_ROOT
authorMichael Neumann <mneumann@ntecs.de>
Sun, 12 Jul 2009 14:55:15 +0000 (16:55 +0200)
committerMichael Neumann <mneumann@ntecs.de>
Sun, 12 Jul 2009 14:55:15 +0000 (16:55 +0200)
sys/emulation/linux/linux_misc.c
sys/emulation/linux/linux_uid16.c

index 8d6927b..12f2e39 100644 (file)
@@ -972,7 +972,7 @@ sys_linux_setgroups(struct linux_setgroups_args *args)
         * Keep cr_groups[0] unchanged to prevent that.
         */
 
-       if ((error = priv_check_cred(oldcred, PRIV_ROOT, PRISON_ROOT)) != 0)
+       if ((error = priv_check_cred(oldcred, PRIV_CRED_SETGROUPS, 0)) != 0)
                return (error);
 
        if (ngrp >= NGROUPS)
index f476cf6..2d495ea 100644 (file)
@@ -122,7 +122,7 @@ sys_linux_setgroups16(struct linux_setgroups16_args *args)
         * Keep cr_groups[0] unchanged to prevent that.
         */
 
-       if ((error = priv_check_cred(oldcred, PRIV_ROOT, PRISON_ROOT)) != 0)
+       if ((error = priv_check_cred(oldcred, PRIV_CRED_SETGROUPS, 0)) != 0)
                return (error);
 
        if (ngrp >= NGROUPS)