-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHEL-08-020027 failed #87
Comments
Signed-off-by: George Nalen <[email protected]>
updated 020027 prelim file task for issue #87
I noticed this happened on a RHEL8.5 kickstarted with the STIG hardening and applying this role from devel. |
FWIW, on RHEL 8.6 but using Ansible 2.9, this fails unless |
Using yes for Boolean values is a regression. |
Describe the Issue
RHEL-08-020027 failed with no changed to defaults/main.yml
FAILED! => {"changed": true, "cmd": "semanage fcontext -m -t faillog_t -s system_u /var/log/faillock", "delta": "0:00:02.776896", "end": "2022-02-23 09:42:41.815114", "msg": "non-zero return code", "rc": 1, "start": "2022-02-23 09:42:39.038218", "stderr": "ValueError: File context for /var/log/faillock is not defined", "stderr_lines": ["ValueError: File context for /var/log/faillock is not defined"], "stdout": "", "stdout_lines": []}
Expected Behavior
I expect the task to pass without errors
Actual Behavior
tasks fail
Control(s) Affected
RHEL-08-020027
Environment (please complete the following information):
Additional Notes
Anything additional goes here
Possible Solution
The tasks for this STIG seem a bit complicated I have tested the following and it worked
The directory gets created with the correct context and then the fcontext gets added so the change is permanent when running restorecon
The text was updated successfully, but these errors were encountered: