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/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229266 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=20 taking JID as parameter. For example "sockstat" takes -j JID "Show only sockets belonging to the=20 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=20 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=20 jail too. Then again "cpuset" takes only numerical ID of the jail... This should be consistent across all FreeBSD base utilities so all of=20 them can use numerical ID and name. I took a quick look in to sources and almost each util has very different c= ode 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=3Drevision&revision=3D287012 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229266-227>