Collect and display Mandatory Access Control (SELinux/AppArmor) context info from /proc/PID/attr/current.
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
Collect and display Mandatory Access Control (SELinux/AppArmor) context info from /proc/PID/attr/current.
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Example output:
ksysguardd> ps? Name PID PPID UID GID Status User Time System Time Nice VmSize VmRss VmURss Login TracerPID TTY Command IO Priority Class IO Priority NNP CGroup SELinux Context s d d d d S d d d D D D s d s s d d d s s ksysguardd> ps systemd 1 -1 0 0 sleeping 34 122 0 384076 14472 5044 root -1 /usr/lib/systemd/systemd --switched-root --system --deserialize 32 0 0 0 /init.scope system_u:system_r:init_t:s0 kwin_x11 1638 1618 1000 1000 running 384 252 0 3062496 105812 20668 topi -1 /usr/bin/kwin_x11 0 0 0 /user.slice/user-1000.slice/session-2.scope unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023