#linux #namespaces #process #container #command-line-tool

nsutils

Command-line utilities for making use of Linux namespaces

5 releases

Uses old Rust 2015

0.0.5 May 16, 2017
0.0.4 Apr 28, 2017
0.0.3 Apr 24, 2017
0.0.2 Apr 24, 2017
0.0.1 Apr 20, 2017

#960 in Unix APIs


Used in 2 crates

MIT/Apache

10KB
229 lines

nsutils-rs

Build Status

Command-line utilities written in Rust for making use of Linux namespaces.

highly experimental

Currently supported binaries:

  • lsns
  • nsenter

lsns

lsns is a simple command-line tool for listing all Linux namespaces, just like the lsns included in util-linux package which is available under most Linux distros.

lsns depends on existing rust packages such as unshare, procinfo, etc.

Usage

Run cargo to install lsns.

$ cargo install lsns

Run lsns.

$ ./target/debug/lsns
NSID NSTYPE NPROC PID PPID COMMAND
4026532782 pid 1 2057 2033 /opt/google/chrome/nacl_helper
4026531839 ipc 100 2991 2988 /bin/bash
4026531840 mount 100 2991 2988 /bin/bash
4026532784 pid 2 2033 1817 /opt/google/chrome/chrome --type=zygote
4026532975 user 1 2057 2033 /opt/google/chrome/nacl_helper
4026531837 user 90 2991 2988 /bin/bash
4026532881 net 1 2057 2033 /opt/google/chrome/nacl_helper
4026531838 uts 100 2991 2988 /bin/bash

Dependencies

[dependencies]
lsns = "0.0.1"

License

Licensed under either of

at your option.

Dependencies

~2.5MB
~53K SLoC