Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions ash-linux/el9/STIGbyID/cat2/ALMA-09-030380.sls
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,15 @@ Disable UDF Filesystem Support - create-file ({{ udfFile }}):
- mode: '0600'
- watch_in:
- service: 'Re-read kernel module-config files (UDF)'
- selinux:
serange: 's0'
serole: 'object_r'
setype: 'modules_conf_t'
seuser: 'system_u'
- user: 'root'

# Bypasses the broken file.managed SELinux parameter on RHEL 9/10 and ensures
# that label matches the rule from `matchpathcon`
Apply SELinux context to {{ udfFile }} ({{ stig_id }}):
selinux.fcontext_policy_applied:
- name: '{{ udfFile }}'
- require:
- file: 'Disable UDF Filesystem Support - create-file ({{ udfFile }})'
{%- endfor %}
Re-read kernel module-config files (UDF):
service.running:
Expand Down
13 changes: 8 additions & 5 deletions ash-linux/el9/STIGbyID/cat2/ALMA-09-030490.sls
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,15 @@ Disable Video/Camera Support - create-file ({{ uvcvideoFile }}):
- mode: '0600'
- watch_in:
- service: 'Re-read kernel module-config files (UVC Video)'
- selinux:
serange: 's0'
serole: 'object_r'
setype: 'modules_conf_t'
seuser: 'system_u'
- user: 'root'

# Bypasses the broken file.managed SELinux parameter on RHEL 9/10 and ensures
# that label matches the rule from `matchpathcon`
Apply SELinux context to {{ uvcvideoFile }} ({{ stig_id }}):
selinux.fcontext_policy_applied:
- name: '{{ uvcvideoFile }}'
- require:
- file: 'Disable Video/Camera Support - create-file ({{ uvcvideoFile }})'
{%- endfor %}
Re-read kernel module-config files (UVC Video):
service.running:
Expand Down
15 changes: 9 additions & 6 deletions ash-linux/el9/STIGbyID/cat2/ALMA-09-052490.sls
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ Ensure the plugin-file is installed with proper permissions ({{ stig_id }}):
- group: 'root'
- mode: '0600'
- replace: False
- selinux:
serange: 's0'
serole: 'object_r'
setype: 'auditd_etc_t'
seuser: 'system_u'
- unless:
- 'test -e {{ cfgFile }}'
- user: 'root'
Expand All @@ -92,8 +87,16 @@ Ensure STIG-setting is present ({{ stig_id }}):
active = yes
- pattern: '^(|\s\s*)(active\s*=)(\s*).*$'
- repl: '\1\2\3yes'
- watch:
- require:
- file: 'Ensure the plugin-file is installed with proper permissions ({{ stig_id }})'

# Bypasses the broken file.managed SELinux parameter on RHEL 9/10 and ensures
# that label matches the rule from `matchpathcon`
Apply SELinux context to {{ cfgFile }} ({{ stig_id }}):
selinux.fcontext_policy_applied:
- name: '{{ cfgFile }}'
- require:
- file: 'Ensure STIG-setting is present ({{ stig_id }})'
{%- else %}
Skip Reason ({{ stig_id }}):
test.show_notification:
Expand Down
Loading