Re: add closefrom() call

看板FB_hackers作者時間18年前 (2007/07/24 10:54), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/26 (看更多)
On Fri, Jul 06, 2007 at 12:50:17PM +0100, Robert Watson wrote: > Solaris side-steps this issue by simply auditing the individual close() > system calls. My preference would be that we implement this in user space > also, which would likewise generate a series of audit events, one for each > system call. The procfs optimization they use (I wonder -- is it really an > optimization?) won't work for us, however. Do you think that there's a > strong motivation to provide a closefrom(2) system call, rather than a > closefrom(3) library call? This would let us neatly avoid the question > you've posed :-). I can think of at least one possible scenario where it makes a difference: multi-threaded applications with concurrent open/closefrom calls. I would expect the kernel version to ensure that all open files start from the given file descriptor. Joerg _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16fMdb00 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #16fMdb00 (FB_hackers)