我在一台RHEL7.7机器上遍历STIG过程,并运行了以下发现:https://www.stigviewer.com/stig/red_帽子_企业_linux_7/2018-11-28/调查结果/V-72039
[root@localhost scripts]# find /dev -context *:device_t:* \( -type c -o -type b \) -printf "%p %Z\n"
/dev/wmi/dell-smbios system_u:object_r:device_t:s0
[root@localhost scripts]# find /dev -context *:unlabeled_t:* \( -type c -o -type b \) -printf "%p %Z\n"
[root@localhost scripts]# rpm -qf /dev/wmi/dell-smbios
file /dev/wmi/dell-smbios is not owned by any package
[root@localhost scripts]# ls -al /dev/wmi/dell-smbios
cr--r--r--. 1 root root 10, 57 May 19 11:29 /dev/wmi/dell-smbios我正在考虑只是删除设备文件,但只是不知道足够的安全。
发布于 2020-11-17 14:29:05
继续删除它。这是一个dev文件系统,不是真正的文件。Linux要么允许您删除它,要么它不会,在任何情况下,它将在下次重新启动后重新出现。
https://serverfault.com/questions/1017982
复制相似问题