a sysctl for process binary osreldate
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? I added osrel output to procstat -b option: kopusha:~% procstat -b 2975 PID COMMOSREL PATH 2975 emacs 101 /usr/local/bin/emacs-23.3 Would this be ok or someone see a better way? -- Mikolaj Golub ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
RE: FreeBSD 9.0 x64 de interface under Hyper-V
Hi, installed 9.0 x64 yesterday and de0 comes up fine when booting. The only thing that does not work is promiscuous mode, but that's a restriction of Hyper-V. harti From: owner-freebsd-hack...@freebsd.org [owner-freebsd-hack...@freebsd.org] on behalf of Ansar Mohammed [ans...@gmail.com] Sent: Friday, March 16, 2012 8:55 PM To: freebsd-hackers@freebsd.org Subject: FreeBSD 9.0 x64 de interface under Hyper-V Hello All, I have two freebsd VMs running in Hyper-V 9.0 x86 and 9.0 x64. On x64 the de0 interface apparenlty does not come up when the system is booted. If I bring the interface down and back upagain (ifconfig de0 down, ifconfig de0 up) it works. On x86 de0 works fine. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org" ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: a sysctl for process binary osreldate
On Sat, Mar 17, 2012 at 09:30:05PM +0200, Mikolaj Golub 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? > > I added osrel output to procstat -b option: > > kopusha:~% procstat -b 2975 > PID COMMOSREL PATH > 2975 emacs 101 /usr/local/bin/emacs-23.3 > > Would this be ok or someone see a better way? > Would this be a planned MFC to stable/N as well specifcially 8 ? -- ;s =; ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: a sysctl for process binary osreldate
On 17 Mar 2012, at 19:30, Mikolaj Golub wrote: > 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? > > I added osrel output to procstat -b option: > > kopusha:~% procstat -b 2975 > PID COMMOSREL PATH > 2975 emacs 101 /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? Robert___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: a sysctl for process binary osreldate
On Sat, Mar 17, 2012 at 08:51:25PM +, Robert N. M. Watson wrote: > > On 17 Mar 2012, at 19:30, Mikolaj Golub wrote: > > > 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? > > > > I added osrel output to procstat -b option: > > > > kopusha:~% procstat -b 2975 > > PID COMMOSREL PATH > > 2975 emacs 101 /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? > This is a documentation bug, I failed to update the field description when added procfs support. pgpeAFxKFMfWE.pgp Description: PGP signature
Re: a sysctl for process binary osreldate
On Sat, 17 Mar 2012 16:37:02 -0400 Jason Hellenthal wrote: JH> Would this be a planned MFC to stable/N as well specifcially 8 ? I plan to MFC to stable/9 if there is no objections. -- Mikolaj Golub ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: a sysctl for process binary osreldate
On Sat, Mar 17, 2012 at 11:07:24PM +0200, Mikolaj Golub wrote: > > On Sat, 17 Mar 2012 16:37:02 -0400 Jason Hellenthal wrote: > > JH> Would this be a planned MFC to stable/N as well specifcially 8 ? > > I plan to MFC to stable/9 if there is no objections. I do not see why the merge to stable/8 cannot be done from the technical POV. If Mikolaj has no time or desire to merge to 8, I can help him. pgpnFp2NSf6SI.pgp Description: PGP signature
Re: a sysctl for process binary osreldate
On Sat, Mar 17, 2012 at 09:30:05PM +0200, Mikolaj Golub wrote: > I added osrel output to procstat -b option: > kopusha:~% procstat -b 2975 > PID COMMOSREL PATH > 2975 emacs 101 /usr/local/bin/emacs-23.3 > Would this be ok or someone see a better way? Hmm, this means that procstat is not supposed to be used from scripts as it is apparently OK to change its output format like this? In some ways, querying via ps would be better for scripts since it allows things like ps -p PID -o KEYWORD= which do not need additional parsing except that many of the newer things in procstat do not have ps keywords. -- Jilles Tjoelker ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: a sysctl for process binary osreldate
On Sat, 17 Mar 2012 23:26:53 +0200 Konstantin Belousov wrote: KB> On Sat, Mar 17, 2012 at 11:07:24PM +0200, Mikolaj Golub wrote: >> >> On Sat, 17 Mar 2012 16:37:02 -0400 Jason Hellenthal wrote: >> >> JH> Would this be a planned MFC to stable/N as well specifcially 8 ? >> >> I plan to MFC to stable/9 if there is no objections. KB> I do not see why the merge to stable/8 cannot be done from the technical KB> POV. If Mikolaj has no time or desire to merge to 8, I can help him. If people consider this to be useful, no problem for me to merge to 8. -- Mikolaj Golub ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: a sysctl for process binary osreldate
On Sat, Mar 17, 2012 at 11:38:22PM +0200, Mikolaj Golub wrote: > > On Sat, 17 Mar 2012 23:26:53 +0200 Konstantin Belousov wrote: > > KB> On Sat, Mar 17, 2012 at 11:07:24PM +0200, Mikolaj Golub wrote: > >> > >> On Sat, 17 Mar 2012 16:37:02 -0400 Jason Hellenthal wrote: > >> > >> JH> Would this be a planned MFC to stable/N as well specifcially 8 ? > >> > >> I plan to MFC to stable/9 if there is no objections. > > KB> I do not see why the merge to stable/8 cannot be done from the technical > KB> POV. If Mikolaj has no time or desire to merge to 8, I can help him. > > If people consider this to be useful, no problem for me to merge to 8. > I for one would. It would be nice to see this information on running procs to verify there is not some old running binary that was left behind in an upgrade. -- ;s =; ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"