fix bug in detecting file system type

This commit is contained in:
Kashiko Koibumi 2024-06-23 00:47:51 +09:00
parent 0c110b9deb
commit 11ba022267

View File

@ -196,7 +196,7 @@ def checkSensitiveFilePermissions(filename):
['/usr/bin/stat', '-f', '-c', '%T', filename], ['/usr/bin/stat', '-f', '-c', '%T', filename],
stderr=subprocess.STDOUT stderr=subprocess.STDOUT
) # nosec B603 ) # nosec B603
if 'fuseblk' in fstype: if b'fuseblk' in fstype:
logger.info( logger.info(
'Skipping file permissions check for %s.' 'Skipping file permissions check for %s.'
' Filesystem fuseblk detected.', filename) ' Filesystem fuseblk detected.', filename)