a sysctl for process binary osreldate
Robert N. M. Watson
rwatson at FreeBSD.org
Sat Mar 17 20:51:29 UTC 2012
On 17 Mar 2012, at 19:30, Mikolaj Golub wrote:
> Currently we can check and change binary osreldate of another process via
> Kostik suggested to add a new sysctl for the same purpose and also extend
> procstat to show osrel.
> Here are patches I am going to commit if there are no objections or
> I set the same permissions as for procfs(5) osrel -- so only user can read it,
> but may be this is too restrictive and p_cansee on read would be ok?
> I added osrel output to procstat -b option:
> kopusha:~% procstat -b 2975
> PID COMM OSREL PATH
> 2975 emacs 1000001 /usr/local/bin/emacs-23.3
> Would this be ok or someone see a better way?
Support for writing the field seems to violate the synchronisation protocol defined for p_osrel in proc.h. In the new world order, is this simply a documentation bug, or is it also a software bug?
More information about the freebsd-hackers