0

I'm going though the STIG process on a RHEL 7.7 machine and ran across this finding: https://www.stigviewer.com/stig/red_hat_enterprise_linux_7/2018-11-28/finding/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

I am thinking of just deleting the device file but just don't know enough to be safe.

Michael Hobbs
  • 245
  • 3
  • 8
  • in case of a vm, snapshot it and then run a copy of it and try? – djdomi May 21 '20 at 06:06
  • Not a VM. That was my plan though sort of. If no one has a clear answer then I will delete it as the last step. I'm building a script to config these machines as I go so it won't be a major loss if I kill the machine near the end. – Michael Hobbs May 21 '20 at 13:01

1 Answers1

1

Go ahead and delete it. It's a dev filesystem, not a real file. Linux will either allow you to delete it or it won't, in any case it will reappear after the next reboot.

Gerald Schneider
  • 19,757
  • 8
  • 52
  • 79