From: Michael Neumann Date: Sun, 12 Jul 2009 14:55:15 +0000 (+0200) Subject: priv: Remove some uses of PRIV_ROOT/PRISON_ROOT X-Git-Tag: v2.3.2~13^2~26 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/741fa32c7fafe94668da198aec7b3ce0a42ee930 priv: Remove some uses of PRIV_ROOT/PRISON_ROOT --- diff --git a/sys/emulation/linux/linux_misc.c b/sys/emulation/linux/linux_misc.c index 8d6927bf03..12f2e39f11 100644 --- a/sys/emulation/linux/linux_misc.c +++ b/sys/emulation/linux/linux_misc.c @@ -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) diff --git a/sys/emulation/linux/linux_uid16.c b/sys/emulation/linux/linux_uid16.c index f476cf658e..2d495ea50f 100644 --- a/sys/emulation/linux/linux_uid16.c +++ b/sys/emulation/linux/linux_uid16.c @@ -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)