`
crabdave
  • 浏览: 1295180 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Docker 挂载权限 chcon: can't apply partial context to unlabeled file

 
阅读更多

Docker 挂载权限 chcon: can't apply partial context to unlabeled file

 

参考:http://www.linuxidc.com/Linux/2012-09/70199.htm

 

# chcon -t samba_share_t /software 

chcon: can't apply partial context to unlabeled file /software

 

修改/etc/selinu/config 文件:

 

[root@master ~]# cat /etc/selinux/config 

# This file controls the state of SELinux on the system. 

# SELINUX= can take one of these three values: 

#       enforcing - SELinux security policy is enforced. 

#       permissive - SELinux prints warnings instead of enforcing. 

#       disabled - SELinux is fully disabled. 

SELINUX=enforcing 

# SELINUXTYPE= type of policy in use. Possible values are: 

#       targeted - Only targeted network daemons are protected. 

#       strict - Full SELinux protection. 

SELINUXTYPE=targeted

 

然后reboot重启机器后,就好了。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics