我将 SELinux 标签添加svirt_sandbox_file_t到/home
chcon -Rt svirt_sandbox_file_t /home
Run Code Online (Sandbox Code Playgroud)
标签显示使用:
[user@localhost ~]$ ls -Z
unconfined_u:object_r:svirt_sandbox_file_t:s0 Desktop
unconfined_u:object_r:svirt_sandbox_file_t:s0 Documents
...
Run Code Online (Sandbox Code Playgroud)
我怎样才能svirt_sandbox_file_t再次去除标签?
我尝试重新启动,我添加了一个/home/.autorelabel来触发重新标记,但标签不会消失。我正在使用 Fedora 23。