【问题标题】:Read the extended attributes for a file in SELinux在 SELinux 中读取文件的扩展属性
【发布时间】:2014-04-17 07:07:36
【问题描述】:

我想在 linux 中读取文件的功能。

我想用完整的细节回答这样的问题......

/path/to/file: uid:0 gid:2000 mode:100750 capability:40 selinux:u:object_r:runas_exec:s0
0x40 = 64 decimal

我尝试了ls -lgetfattrxattr,但没有任何效果...

应用 selinux 属性值后,如何读取?

请帮忙

【问题讨论】:

    标签: linux selinux xattr


    【解决方案1】:

    你试过 ls 和 -Z 选项吗?

    在 SE Linux 中,许多常用命令(例如 ls、cp、mv)已被修改为包含选项(例如 -Z)以显示与 SE Linux 相关的信息。

    【讨论】:

      猜你喜欢
      • 2021-03-11
      • 2018-07-08
      • 2016-04-06
      • 1970-01-01
      • 2010-09-18
      • 1970-01-01
      • 1970-01-01
      • 2010-11-14
      相关资源
      最近更新 更多