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

看板DFBSD_kernel作者時間16年前 (2009/08/11 14:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/9 (看更多)
2009/8/11 Matthew Dillon <dillon@apollo.backplane.com>: > =A0 =A0I would rather not change the creds. =A0It seems simple enough to > =A0 =A0adjust the access helper to use the real ids. It is admittedly easier and more explicit to do it as Alex and you suggest. To implement faccessat, which can check either real of effective ids based on a flag argument, do you prefer: 1/ Pass this "effective vs real" flag to VOP_ACCESS (either in a_mode or as a new arg). 2/ Adding a new VOP_FACCESSAT operation. The more general question is: can we break the VOP API (assuming we change all in-tree clients)? Cheers, Nicolas
文章代碼(AID): #1AWH1aQx (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #1AWH1aQx (DFBSD_kernel)