Re: sysctl filesystem ?

看板FB_current作者時間13年前 (2012/07/02 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串14/14 (看更多)
On 26 Jun 2012, at 15:42, mdf@FreeBSD.org wrote: > While I understand the problems you allude to, the sysctl(8) binary > can protect itself from them. IMO the biggest problem with sysctls > not being files is that it makes no sense from the core UNIX > philosophy that everything is a file. Sockets and pipes and character > devices and even unseekable things like stdout are files; why aren't > these other objects that allow read, write, and have their own > namespace? I think I agree with what you're saying, subject to one modification: = rather than saying "files", say "file descriptors", which are not quite = the same but are, I think, what you mean. This doesn't mean you end up = with a special file system mounted on /foo -- we don't do that for = sockets or pipes --- but rather, we end up with using a similar = object-oriented interface. And hence, BTW, our recent experimental = addition of process descriptors to the API in support of Capsicum. = However, I wonder how well that applies to sysctls, which unlike = pipes/sockets, don't have an event model, etc... Robert= _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1FyLo3_8 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1FyLo3_8 (FB_current)