Linux chcon : can't apply partial context to unlabeled file

标签 linux centos selinux

当我尝试运行此命令时遇到错误:

chcon -t textrel_shlib_t /usr/lib/vmware-vcli/bin/esxcli/_ssl.so

我得到的错误:

chcon: can't apply partial context to unlabeled file `/usr/lib/vmware-vcli/bin/esxcli/_ssl.so'

知道怎么解决吗?

最佳答案

尝试运行这个:

chcon -h system_u:object_r:httpd_sys_content_t  /usr/lib/vmware-vcli/bin/esxcli/_ssl.so

代替:

chcon -t textrel_shlib_t /usr/lib/vmware-vcli/bin/esxcli/_ssl.so

关于Linux chcon : can't apply partial context to unlabeled file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29683510/

相关文章:

centos - 如何在 CloudLinux RHEL Feddora CentOS 上安装 "stunnel"yum install 不工作

linux - 授予 unix 进程对目录的独占 RW 访问权限

linux - SELinux 日志读取

android - Android 系统服务 : how to setup? 的 SELinux 策略定义

mysql - 超出 MariaDB/MySQL 资源限制

c++ - Windows 中的 strptime?

java - 重新启动 linux 和 windows 的 java 应用程序

无法解决此错误 : mutex in c and the lock problems

open-source - GPL 是否要求 RedHat 免费提供其操作系统,因此 CentOS 存在的原因是什么?

linux - ubuntu上find命令的奇怪问题