diff options
author | Aristeu Rozanski <arozansk@redhat.com> | 2013-04-12 14:40:27 -0400 |
---|---|---|
committer | Aristeu Rozanski <arozansk@redhat.com> | 2013-04-16 15:05:31 -0400 |
commit | de7b3b9222ab4e2f75db88f0f75b555ab306140b (patch) | |
tree | 258e48ea77c7ad9ffa8b5a6ce48b7bd393419a87 /pgrep.1 | |
parent | a01ee3c0b32d4c39aa83066ed61103343469527e (diff) | |
download | procps-ng-de7b3b9222ab4e2f75db88f0f75b555ab306140b.tar.gz |
pgrep: introduce support for namespaces
A PID should be specified with --ns:
$ pgrep --ns 12345
which will only match the processes which belong to to the same 6
namespaces. It is also possible to specify which namespaces to test:
$ pgrep --ns 12345 --nslist mnt,net,ipc
which will match processes that belong to the same mount, network and
IPC namespaces as PID 12345.
Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
Diffstat (limited to 'pgrep.1')
-rw-r--r-- | pgrep.1 | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -146,6 +146,15 @@ than \fB\-L\fR, \fB\-\-logpidfile\fR Fail if pidfile (see -F) not locked. .TP +\fB\-\-ns \fIpid\fP +Match processes that belong to the same namespaces. Required to run as +root to match processes from other users. See \-\-nslist for how to limit +which namespaces to match. +.TP +\fB\-\-nslist \fIname\fP,... +Match only the provided namespaces. Available namespaces: +ipc, mnt, net, pid, user,uts. +.TP \fB\-V\fR, \fB\-\-version\fR Display version information and exit. .TP |