Re: Rooting FreeBSD , Privilege Escalation using Jails (P??????t

看板FB_security作者時間14年前 (2011/05/09 19:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/29 (看更多)
2011/5/9 Dag-Erling Sm=F8rgrav <des@des.no>: > Jason Hellenthal <jhell@DataIX.net> writes: >> Chris Rees <utisoft@gmail.com> writes: >> > I've updated the docs patches (links at [1]), though unfortunately it >> > means it's a little less elegant; I'm reluctant to suggest >> > >> > # chmod 0700 $D/.. >> Haha I would strongly suggest against that ;) Not knowing where people a= re >> keeping the jails would impose quite a bit of harm if they did have them >> in places like that or /var/jailname. > > What do you mean, "not knowing where people are keeping the jails"? > Only root can start a jail, so there is no risk of anyone starting a > hidden jail somewhere. =A0Besides, jls(8) lists the root path of each > jail. >From a docs point of view, if I were to type: # setenv D /usr/local/myjail and then: # chmod 0700 $D/.. then I'd end up chmod'ing 700 /usr/local This is the point I'm making, I can't recommend in the docs that one chmods $D/.. because we (the docs writers) don't know what the user (the reader) is going to set $D to. 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): #1Dnz2ttT (FB_security)
討論串 (同標題文章)
完整討論串 (本文為第 6 之 29 篇):
文章代碼(AID): #1Dnz2ttT (FB_security)