summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-04-24 19:08:53 +0000
committerrwatson <rwatson@FreeBSD.org>2001-04-24 19:08:53 +0000
commit5bf1eebdefdaab3490e4118adc366dc27ac8b357 (patch)
treec92996fc7e6833d4c2bf3818e5958c6df89694ca /sys/compat
parent461acba9c0893f590713444a7c410d7be49953fe (diff)
downloadFreeBSD-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.c2
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)
OpenPOWER on IntegriCloud