ls -Z SElinux上下文 查询输出参数解释

ls -Z
-rw-------. root root system_u:object_r:admin_home_t:s0 anaconda-ks.cfg 是一个文件的属性和安全上下文信息。它们的含义如下:
- `-rw-------.` 表示文件的权限。`-` 表示这是一个普通文件,`rw-` 表示文件所有者(root)有读写权限,`---` 表示文件所属组(root)没有任何权限,`---` 表示其他用户没有任何权限。
- `root root` 表示文件的所有者和所属组都是 root 用户。
- `system_u:object_r:admin_home_t:s0` 表示文件的 SELinux 安全上下文。`system_u` 表示文件的用户身份是系统用户,`object_r` 表示文件的角色是对象角色,`admin_home_t` 表示文件的类型是管理员主目录类型,`s0` 表示文件的敏感度级别是最低的。
- `anaconda-ks.cfg` 表示文件的名称。这是一个用于自动安装 Oracle Linux 的 Kickstart 配置文件。

更多关于 SELinux 安全上下文的信息,

(1) 3.7.5.2 Displaying SELinux Context Information - Oracle. https://docs.oracle.com/en/operating-systems/oracle-linux/6/security/ol_disp_context_selinux.html.
(2) 25.2.5.2 Displaying SELinux Context Information - Oracle. https://docs.oracle.com/en/operating-systems/oracle-linux/6/admin/ol_disp_context_selinux.html.
(3) Administering SELinux Security Context - Oracle Help Center. https://docs.oracle.com/en/operating-systems/oracle-linux/selinux/selinux-AdministeringSELinuxSecurityContext.html.
(4) undefined. https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf.

posted @ 2024-02-22 11:17  hackintosh  阅读(43)  评论(0编辑  收藏  举报