[Bug 229266] some system utilities take JID only, not jail name
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jun 24 08:02:10 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229266
Bug ID: 229266
Summary: some system utilities take JID only, not jail name
Product: Base System
Version: 10.4-RELEASE
Hardware: Any
URL: https://lists.freebsd.org/pipermail/freebsd-jail/2018-
June/003588.html
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: 000.fbsd at quip.cz
FreeBSD has many jail aware utilities but they are inconsistent in
taking JID as parameter.
For example "sockstat" takes -j JID "Show only sockets belonging to the
specified jail ID" and it means numeric ID only.
On the other hand "ps" takes -J JID "This may be either the jid or name
of the jail. Use -J 0 to display only host processes."
The same apply for "top", it understands jid as a number or name of the
jail too.
Then again "cpuset" takes only numerical ID of the jail...
This should be consistent across all FreeBSD base utilities so all of
them can use numerical ID and name.
I took a quick look in to sources and almost each util has very different code
to work with JID / jail name.
I am not C developer so I cannot provide any patches. I hope somebody else will
have free time to fix these utilities.
Note I found this commit to fix jid / jail name problem for pgrep/pkill but
again, it is very different code to what I found for procstat or sockstat
https://svnweb.freebsd.org/base?view=revision&revision=287012
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list