SELinux Contexts for Processes

  • برای مشاهده‌ی Context های پروسه‌های در حال اجرای سیستم به صورت زیر عمل کنید.
# ps auxZ | grep init
system_u:system_r:init_t 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
  • مثالی دیگر
# ps -eZ | grep passwd
root:system_r:unconfined_t:SystemLow-SystemHigh 3873 pts/1 00:00:00 passwd
  • تست شده بر روی CentOS 5.8

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *