[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys
Module Name: src
Committed By: elad
Date: Thu Dec 24 19:01:12 UTC 2009
src/sys/kern: init_sysctl.c kern_sysctl.c
When reporting open files using sysctl, don't use 'filehead' to fetch files,
as we don't have a process context to authorize on. Instead, traverse the
file descriptor table of each process -- as we already do in one case.
Introduce a "marker" we can use to mark files we've seen in an iteration, as
the same file can be referenced more than once.
Hopefully this availability of filtering by process also makes life easier
for those who are interested in implementing process "containers" etc.
To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 src/sys/kern/init_sysctl.c
cvs rdiff -u -r1.226 -r1.227 src/sys/kern/kern_sysctl.c
cvs rdiff -u -r1.70 -r1.71 src/sys/sys/file.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Main Index |
Thread Index |