设置samba服务的selinux布尔值时报错

[root@localhost ~]# setsebool -P samba_export_all_rw on

libsemanage.semanage_get_lock: Could not get direct transaction lock at /etc/selinux/targeted/modules/semanage.trans.LOCK. (Resource temporarily unavailable).

Could not change policy booleans

报错信息如上,仔细看了下报错,不能直接锁定xxx文件然后我把/etc/selinux/targeted/modules/semanage.trans.LOCK移动到其他地方试了下,我擦,它好了,不知道什么情况,

[root@localhost modules]# ls 

active  semanage.read.LOCK  semanage.trans.LOCK  tmp

[root@localhost modules]# cat semanage.trans.LOCK 

[root@localhost modules]# mv semanage.trans.LOCK ../

[root@localhost modules]# ls 

active  semanage.read.LOCK  tmp

[root@localhost modules]# setsebool -P samba_export_all_rw on

[root@localhost modules]# getsebool -a |grep samba

samba_create_home_dirs --> off

samba_domain_controller --> off

samba_enable_home_dirs --> off

samba_export_all_ro --> off

samba_export_all_rw --> on

samba_portmapper --> off

samba_run_unconfined --> off

samba_share_fusefs --> off

samba_share_nfs --> off

sanlock_use_samba --> off

use_samba_home_dirs --> off

virt_use_samba --> off


你可能感兴趣的:(samba,selinux,布尔值)