Date: Thu, 22 Mar 2012 22:38:15 +0200 From: Mikolaj Golub <to.my.trociny@gmail.com> To: freebsd-hackers@freebsd.org Cc: Robert Watson <rwatson@freebsd.org>, Kostik Belousov <kib@freebsd.org> Subject: Re: a sysctl for process binary osreldate Message-ID: <CAOnPXZ8eMpmu-Gqp=JoABXU4aCUyPYfxLnqRcc8uvtJ_vr7JYA@mail.gmail.com> In-Reply-To: <8662e3m3eq.fsf@kopusha.home.net> References: <8662e3m3eq.fsf@kopusha.home.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 17, 2012 at 9:30 PM, Mikolaj Golub <trociny@freebsd.org> wrote: > Hi, > > Currently we can check and change binary osreldate of another process via > procfs(5). > > 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 > suggestions. > > http://people.freebsd.org/~trociny/kern_proc_osrel.1.patch > http://people.freebsd.org/~trociny/procstat.osrel.1.patch > > 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? Actually I don't see reasons why this may not be p_cansee, so I updated the patch and going to commit it if there is no objections. -- Mikolaj Golub
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOnPXZ8eMpmu-Gqp=JoABXU4aCUyPYfxLnqRcc8uvtJ_vr7JYA>