diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-04-24 19:08:53 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-04-24 19:08:53 +0000 |
commit | 5bf1eebdefdaab3490e4118adc366dc27ac8b357 (patch) | |
tree | c92996fc7e6833d4c2bf3818e5958c6df89694ca /sys/compat | |
parent | 461acba9c0893f590713444a7c410d7be49953fe (diff) | |
download | FreeBSD-src-5bf1eebdefdaab3490e4118adc366dc27ac8b357.zip FreeBSD-src-5bf1eebdefdaab3490e4118adc366dc27ac8b357.tar.gz |
o Change a suser() call to a suser_xxx(..., PRISON_ROOT) call in the
linuxulator so as to allow privileged processes within a jail() to
invoke the Linux initgroups() system call. This allows the Linux
"su" to work properly (better) when running a complete Linux
environment under jail(). This problem was reported by Attila
Nagy <bra@fsn.hu>.
Reviewed by: marcel
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index fe422a9..127d5b7 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -970,7 +970,7 @@ linux_setgroups(p, uap) * Keep cr_groups[0] unchanged to prevent that. */ - if ((error = suser(p)) != 0) + if ((error = suser_xxx(NULL, p, PRISON_ROOT)) != 0) return (error); if (ngrp >= NGROUPS) |