Re: access(2) using effective uid instead of real one?

看板DFBSD_kernel作者時間16年前 (2009/08/11 06:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/9 (看更多)
As far as I can see it should be trivial to change it touse the real uid in vop_helper_access. Just change the references to cr_uid and cr_gid to cr_ruid and cr_rgid. If this is how it should be or shouldn't... I don't know. 2009/8/10 Nicolas Thery <nthery@gmail.com>: > Hello, > > According to man and posix, access(2) uses the real user UID instead > of the effective one. =A0However it looks like the functions doing the > checking (ufs_access, vop_helper_access) use the effective uid =A0and I > can't find anywhere where the effective uid passed to these functions > would be changed for the real one (as fbsd does). > > I also wrote a small program that confirms this. > > Assuming I'm not missing something, Is it intentional or a bug? > > Cheers, > Nicolas >
文章代碼(AID): #1AW9_cHU (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #1AW9_cHU (DFBSD_kernel)