Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2018 08:02:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 229266] some system utilities take JID only, not jail name
Message-ID:  <bug-229266-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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@FreeBSD.org
          Reporter: 000.fbsd@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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229266-227>