Re: mac_bsdextended log information

看板FB_security作者時間19年前 (2006/06/02 16:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
On Thu, 2006-06-01 at 14:40 -0700, Jeff wrote: > Hey everyone,=20 >=20 > I'm hoping someone can point me in the right direction. I'm running a 6= ..1 box with mac_bsdextended compiled. I've created my ugidfw rules, and a= ll seems well in the universe. >=20 > I've got rules set up so the web process uid 80 and gid 80 can only rea= d uid 1010 and gid 1010 owned files. When the web server tries to do some= thing else, it throws an error such as: >=20 > <authpriv.emerg> www kernel: mac_bsdextended: 80:80 request 256 on 0:0 = failed. >=20 > So the question is, what file did the www process try to muck with? It = is a root owned file, and it is important that it want to act on it. Secu= rity problem, or benign problem? Who knows without being able to know wha= t the file is. A look at the source code implies that the "request 256" m= eans that the web process tried to read the vnode numbered 256. Is that a= ccurate? > If it is, how do I go about associating vnode numbers to files, so I ha= ve a hope of troubleshooting these errors. >=20 There are many legitimate reasons for a webserver to open root owned files. Looking up users in the password database would be my first guess. Maybe you shoud consider changing your rules to some more fine grained ones? > Searching seems to turn up no tool or easy way to get this vnode -> fil= e information. Help! Try: $ find -inum 256 / >=20 > Jeff >=20 Cheers, m. > _______________________________________________ > 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" --=20 Kenyeres M=E1rton <mkenyeres@konvergencia.hu> _______________________________________________ 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): #14V_tY00 (FB_security)
文章代碼(AID): #14V_tY00 (FB_security)