You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is found with the spec "ls -lZ /var/lib/rsyslog", the output of the spec is
-rw------- 1 root root ? 125 Dec 11 01:04 imjournal.state
The archive is from RHEL8 host, but the selinux context does not display, it shows as "?", so the workflow of the following code block is messy due to the "?":
if parts[1][0].isdigit():
# We have to split the line again to see if this is a RHEL8
# selinux stanza. This assumes that the context section will
# always have at least two pieces separated by ':'.
if ":" in line.split()[4]:
rest = parse_rhel8_selinux(parts[1:])
else:
rest = parse_non_selinux(parts[1:])
else:
rest = parse_selinux(parts[1:])
It enters the parse_non_selinux function since there is no colon in the SELinux context.
The text was updated successfully, but these errors were encountered:
It is found with the spec "ls -lZ /var/lib/rsyslog", the output of the spec is
The archive is from RHEL8 host, but the selinux context does not display, it shows as "?", so the workflow of the following code block is messy due to the "?":
It enters the
parse_non_selinux
function since there is no colon in the SELinux context.The text was updated successfully, but these errors were encountered: