- برای مشاهدهی Context های پروسههای در حال اجرای سیستم به صورت زیر عمل کنید.
|
1 2 3 4 5 |
# ps aux<span style="color: #ff0000;"><strong>Z</strong></span> | grep init <span style="color: #ff0000;"><strong>system_u:system_r:init_t</strong></span> root 1 0.0 0.0 10364 680 ? Ss 22:23 0:01 init [5] user_u:system_r:unconfined_t user 3207 0.0 0.0 53916 768 ? Ss 22:25 0:00 /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c "/usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients" user_u:system_r:unconfined_t user 3230 0.0 0.0 15192 532 ? S 22:25 0:00 /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients root:system_r:unconfined_t:SystemLow-SystemHigh root 3780 0.0 0.0 61216 732 pts/3 R+ 22:41 0:00 grep init |
- مثالی دیگر
|
1 2 |
# ps -eZ | grep passwd root:system_r:unconfined_t:SystemLow-SystemHigh 3873 pts/1 00:00:00 passwd |
- تست شده بر روی CentOS 5.8