summaryrefslogtreecommitdiffstats
path: root/sys-utils/lsns.c
diff options
context:
space:
mode:
authorMichał Bartoszkiewicz2016-08-15 12:22:30 +0200
committerKarel Zak2016-08-16 13:36:12 +0200
commit2b8889c44b6752e92bfb982a5eaa2255a129e072 (patch)
tree6b2001ed27a412c51265c971c0fa84b84bf25be6 /sys-utils/lsns.c
parentinclude/closestream: define exit codes (diff)
downloadkernel-qcow2-util-linux-2b8889c44b6752e92bfb982a5eaa2255a129e072.tar.gz
kernel-qcow2-util-linux-2b8889c44b6752e92bfb982a5eaa2255a129e072.tar.xz
kernel-qcow2-util-linux-2b8889c44b6752e92bfb982a5eaa2255a129e072.zip
lsns: support cgroup namespaces
Signed-off-by: Michał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Diffstat (limited to 'sys-utils/lsns.c')
-rw-r--r--sys-utils/lsns.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-utils/lsns.c b/sys-utils/lsns.c
index 75c04f8f8..278598af4 100644
--- a/sys-utils/lsns.c
+++ b/sys-utils/lsns.c
@@ -100,7 +100,8 @@ enum {
LSNS_ID_PID,
LSNS_ID_UTS,
LSNS_ID_IPC,
- LSNS_ID_USER
+ LSNS_ID_USER,
+ LSNS_ID_CGROUP
};
static char *ns_names[] = {
@@ -109,7 +110,8 @@ static char *ns_names[] = {
[LSNS_ID_PID] = "pid",
[LSNS_ID_UTS] = "uts",
[LSNS_ID_IPC] = "ipc",
- [LSNS_ID_USER] = "user"
+ [LSNS_ID_USER] = "user",
+ [LSNS_ID_CGROUP] = "cgroup"
};
struct lsns_namespace {
@@ -599,7 +601,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
fputs(_(" -p, --task <pid> print process namespaces\n"), out);
fputs(_(" -r, --raw use the raw output format\n"), out);
fputs(_(" -u, --notruncate don't truncate text in columns\n"), out);
- fputs(_(" -t, --type <name> namespace type (mnt, net, ipc, user, pid, uts)\n"), out);
+ fputs(_(" -t, --type <name> namespace type (mnt, net, ipc, user, pid, uts, cgroup)\n"), out);
fputs(USAGE_SEPARATOR, out);
fputs(USAGE_HELP, out);