git: access(2): fix confusion between real and effective uid/gid

看板DFBSD_commit作者時間16年前 (2009/08/23 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 7ecca789d4f8366a6f54a1c889001f69b7ea3b1e Author: Nicolas Thery <nthery@gmail.com> Date: Sat Aug 22 19:31:24 2009 +0200 access(2): fix confusion between real and effective uid/gid Posix states that access() shall check permissions against real uid and gid but our implementation was using effective uid and gid instead. Change vop_helper_access accordingly. NOTE: This code will change soon when faccessat(2) is implemented but I'd rather not mix the bug fix with a new feature in a single commit. NOTE: nfs_access() may need to be fixed too but I haven't managed yet to figure out whether it should use real or effective uid. Fix-suggested-by: Alex Hornung <ahornung@gmail.com> Approved-by: dillon@ Summary of changes: sys/kern/vfs_helper.c | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7ecca789d4f8366a6f54a1c889001f69b7ea3b1e -- DragonFly BSD source repository
文章代碼(AID): #1AaF1vDf (DFBSD_commit)