Bug 156111 - [jail] procstat -b not supported in jail
Summary: [jail] procstat -b not supported in jail
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mark Linimon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 14:50 UTC by subbsd
Modified: 2017-08-02 16:11 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description subbsd 2011-04-01 14:50:11 UTC
procstat -b <PID> 
return:

  PID COMM             PATH                                                 
procstat: sysctl: kern.proc.pathname: <PID>: No such file or directory

for any PID

How-To-Repeat: procstat -b <PID>

where PID = some jail process ID
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-04-01 20:09:33 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-jail

probably jail-specific.
Comment 2 Fabian Keil 2017-03-25 18:47:22 UTC
Looks like this has been fixed.

At least I can't reproduce the issue with a system based on 11-STABLE:

privoxy@privoxy-jail / $sysctl security.jail.jailed
security.jail.jailed: 1
privoxy@privoxy-jail / $procstat -b $(pgrep privoxy)
     PID COMM                 OSREL PATH
72460 privoxy           1100509 /usr/local/sbin/privoxy
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2017-03-26 06:01:25 UTC
To submitter: does this problem still persist?
Comment 4 Kurt Jaeger freebsd_committer freebsd_triage 2017-03-26 19:42:22 UTC
procstat -b <pid> works for me on 11.0p2 inside a jail.