Re: Rooting FreeBSD , Privilege Escalation us

看板FB_security作者時間14年前 (2011/05/08 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/5 (看更多)
On 7 May 2011 23:31, Jamie Landeg Jones <jamie@bishopston.net> wrote: >> All the same, I've sent a PR [1] with some doc patches to make people >> more aware of this -- fulfilling my promise of 2+ years ago :S >> >> Thanks! >> >> Chris >> >> [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=3D156853 > > Um. Some problems here. > > A jail won't work for not-root users if the jail root directory is chmod = 700 - although > there is obviously a 'chroot' running withing the jail, the jailed user s= till needs > to have read permission from the hosts / -- chmod 700 therefore locks all= non-root > users out. > > I would suggest you add to the docs about the UID clash problem - untrust= ed users on the host > shouldn't have the same UID/GID as jailed users, as they will have access= to their files. > > And of course, the bit mentioned earlier where an untrusted jail user wit= h jail-root access > should NEVER have access to the host!o > > Among other things, my password file in both jails and the host has this = line: > > # 8000 to 9999 =A0- =A0Reserved for use within jails - do not use in main= host! > Thanks! Updated the patches about chmodding (d'oh), and I'll send another later about UIDs. Chris _______________________________________________ freebsd-security@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #1DncCJH5 (FB_security)
文章代碼(AID): #1DncCJH5 (FB_security)