-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
While invoking the command kdigger dig mount we get all the mounted file systems. I tried looking for mounts with read and write permissions.
bash-5.1# kdigger dig mount | grep rw
| overlay | / | overlay | rw,relatime,lowerdir=/var/lib/c |
| proc | /proc | proc | rw,nosuid,nodev,noexec,relatime |
| tmpfs | /dev | tmpfs | rw,nosuid,size=65536k,mode=755 |
| devpts | /dev/pts | devpts | rw,nosuid,noexec,relatime,gid=5 |
| mqueue | /dev/mqueue | mqueue | rw,nosuid,nodev,noexec,relatime |
| shm | /dev/shm | tmpfs | rw,nosuid,nodev,noexec,relatime |
| /dev/sda1 | /dev/termination-log | ext4 | rw,relatime,commit=30 |
| /dev/sda1 | /etc/hosts | ext4 | rw,relatime,commit=30 |
| /dev/sda1 | /etc/hostname | ext4 | rw,nosuid,nodev,relatime,commit |
| /dev/sda1 | /etc/resolv.conf | ext4 | rw,nosuid,nodev,relatime,commit |
| shm | /run/containerd/io.containerd.g | tmpfs | rw,nosuid,nodev,noexec,relatime |
| overlay | /run/containerd/io.containerd.r | overlay | rw,relatime,lowerdir=/var/lib/c |
| overlay | /run/containerd/io.containerd.r | overlay | rw,relatime,lowerdir=/var/lib/c |
| shm | /run/containerd/io.containerd.g | tmpfs | rw,nosuid,nodev,noexec,relatime |You can notice that some of the longer paths in the second column are getting squeezed. It will be great to have a flag that will only print the rw mounts.
Another similar flag can be developed for socks as well.
bash-5.1# kdigger dig mount | grep sock
| tmpfs | /run/containerd/containerd.sock | tmpfs | ro,size=804600k,nr_inodes=81920 |cc @mtardy
Metadata
Metadata
Assignees
Labels
No labels