代码之家  ›  专栏  ›  技术社区  ›  EagleOne

SELinux和cryptsetup:chown失败,无法访问临时密钥库

  •  1
  • EagleOne  · 技术社区  · 5 年前

    若我在许可模式下运行SELinux,则一切运行正常(正确装入分区,可以访问数据,服务正常运行)。

    如果在强制模式(强制=1)下运行SELinux,则无法装载此类分区,错误如下:

    /dev/mapper/temporary-cryptsetup-1808: chown failed: Permission denied
    sh[1777]: Failed to open temporary keystore device.
    sh[1777]: Command failed with code 5: Input/output error
    

    有什么办法解决这个问题吗?

    Audit2allow不返回要添加的任何其他规则

    0 回复  |  直到 5 年前
        1
  •  0
  •   EagleOne    5 年前

    已解决分配给密码设置的问题 lvm_exec_t

    lvm.fc 文件加密设置被定义为 /bin/cryptsetup /usr/sbin/cryptsetup 它到底在哪里。

    推荐文章