在selinux中查看用户的安全上下文 id -z root:staff r:staff t 井 newrole -r sysadm_r Authenticating root. Password: id -Z root:sysadm r:sysadm t 嵌入式系统实验室 EMBEDDED SYSTEM LABORATORY SUZHOU INSTITUTE FON ADVANCED STUDY OF USTC
❖在selinux中查看用户的安全上下文
冬在selinux中查看进程的安全上下文 #ps PID TTY TIME CMD 8433pts/1 00:00:003u 8436pts/1 00:00:00bash 8800pts/1 00:00:00ps ps -Z PID CONTEXT COMMAND 8433 bill:sysadm r:sysadm su t s1- 8436 root:sysadm r:sysadm t -bash 8801 root:sysadm r:sysadm t ps-Z :入式系统实验室 EMBEDDED SYSTEM LABORATORY SUZHOU INSTITUTE FON ADVANCED STUDY OF USTC
❖在selinux中查看进程的安全上下文
?在selinux中查看文件的安全上下文 #1s -1 /etc/hosts -rw-r--r--2 rootroot 191 Apr 18 20:09 /etc/hosts #1s --context /etc/hosts -rw-r--r--+root root system u:object r:etc t /etc/hosts 1s --lcontext /etc/hosts -rw-r--r--2 system u:object r:etc t rootroot 191 Apr 18 20:09 /etc/hosts 1s --scontext /etc/hosts system u:object r:etc t /etc/hosts #1s -Z /etc/hosts -rw-r--r--+root root system u:object r:etc t /etc/hosts 嵌入式系统实验室 EMBEDDED SYSTEM LABORATORY SUZHOU INSTITUTE FON ADVANCED STUDY OF USTC
❖在selinux中查看文件的安全上下文
All Security Context components are checked against the policy to see if access is allowed Type is the base component while role and user are used to further restrict type enforcement user role Domain type object type 用户、角色、域类型与客体类型的关系图 Cience and Techil 嵌入式系统实验室 EMBEDDED SYSTEM LABORATORY SUZHOU INSTITUTE FON ADVANCED STUDY OF USTC
❖All Security Context components are checked against the policy to see if access is allowed. ❖Type is the base component while role and user are used to further restrict type enforcement user role Domain type object type 用户、角色、域类型与客体类型的关系图
安全标识符SID 冬与安全上文对应 理解:安全上下文,被保存在某种数据结构中,例如表格,使用SD可以 在这个数据结构中找到对应的安全上下文 系统启动时,这个数据结构将被装载 initial SIDs 1958 rw of science and Technology of chin 嵌入式系统实验室 EMBEDDED SYSTEM LABORATORY SUZHOU INSTITUTE FON ADVANCED STUDY OF USTC
安全标识符SID ❖与安全上文对应 ❖系统启动时,这个数据结构将被装载 ➢initial SIDs 理解:安全上下文,被保存在某种数据结构中,例如表格,使用SID可以 在这个数据结构中找到对应的安全上下文