Skip to content

Commit

Permalink
Merge pull request #12577 from Mab879/fix_chrony2
Browse files Browse the repository at this point in the history
Update file_permissions_etc_chrony_keys to 640
  • Loading branch information
vojtapolasek authored Nov 6, 2024
2 parents 98d3f2c + fd88cd9 commit 9b736e5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ documentation_complete: true

title: Verify Permissions On /etc/chrony.keys File

description: '{{{ describe_file_permissions(file="/etc/chrony.keys", perms="0644") }}}'
description: '{{{ describe_file_permissions(file="/etc/chrony.keys", perms="0640") }}}'

rationale: |-
Setting correct permissions on the /etc/chrony.keys file is important
Expand All @@ -17,17 +17,17 @@ identifiers:
cce@rhel9: CCE-86384-5
cce@rhel10: CCE-88155-7

ocil_clause: '{{{ ocil_clause_file_permissions(file="/etc/chrony.keys", perms="0644") }}}'
ocil_clause: '{{{ ocil_clause_file_permissions(file="/etc/chrony.keys", perms="0640") }}}'

ocil: |-
{{{ ocil_file_permissions(file="/etc/chrony.keys", perms="0644") }}}
{{{ ocil_file_permissions(file="/etc/chrony.keys", perms="0640") }}}
fixtext: '{{{ fixtext_file_permissions(file="/etc/chrony.keys", mode="0644") }}}'
fixtext: '{{{ fixtext_file_permissions(file="/etc/chrony.keys", mode="0640") }}}'

srg_requirement: '{{{ srg_requirement_file_permission(file="/etc/chrony.keys", mode="0644") }}}'
srg_requirement: '{{{ srg_requirement_file_permission(file="/etc/chrony.keys", mode="0640") }}}'

template:
name: file_permissions
vars:
filepath: /etc/chrony.keys
filemode: '0644'
filemode: '0640'

0 comments on commit 9b736e5

Please sign in to comment.