debian - SELinux dpkg postinst 脚本权限被拒绝
问题描述
selinux 安装在 debian 9 (stretch) 上
当我尝试使用 dpkg(或 apt)安装某些东西(尝试使用不同的软件包)时,它会失败并显示以下错误消息:
dpkg (subprocess): unable to execute installed post-installation script (/var/lib/dpkg/info/cmatrix.postinst): Permission denied
dpkg: error processing package cmatrix (--configure):
subprocess installed post-installation script returned error exit status 2
我是root,即使在许可模式下也会出现问题(禁用selinux时它可以工作)
dpkg 具有标签“dpkg_exec_t”。postinst 文件的权限如下:
-rwxr-xr-x. 1 root root unconfined_u:object_r:dpkg_var_lib_t:s0 192 May 4 16:51 /var/lib/dpkg/info/cmatrix.postinst
我可以直接从终端运行脚本,没有错误。
我试图安装 selinux 的 sid 版本,但那里也发生了错误。
安装的策略是默认策略。
解决方案
推荐阅读
- python - 如何在 pandas DataFrame 中使用 group by pivot_table 替换 NaN 值?
- r - 运行 ggplot() 代码后收到错误
- api - Google Play 控制台 REST API 获取订阅详情
- heroku - 如何完全禁用/删除heroku worker的默认时间触发器?
- python - 用户输入后不知道如何从字典中打印单词
- elasticsearch - 找不到任何实现 Connector 且名称与 io.confluent.connect.elasticsearch 匹配的类。独立运行时
- javascript - 在所有情况下都需要执行状态为 true 的玩家的回合转换
- python - 查找2个轮廓的交点坐标
- python - Python - 从字符串中提取用连字符分隔的数字
- r - GG plot 图例堆叠所有形状/从图例中删除一项