Skip to content

Commit

Permalink
Merge pull request mvdbent#5 from davidyoondrums/main
Browse files Browse the repository at this point in the history
Permission changed to 400 to satisfy Jamf Protect Insight
  • Loading branch information
motionbug authored Nov 11, 2021
2 parents 2228636 + d5ec488 commit a5d2bd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Fragments/OrgScores/OrgScore3_4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [[ "${auditResult}" == "1" ]]; then
cp /etc/security/audit_control /etc/security/audit_control_old
oldExpireAfter=$(grep -E "expire-after" /etc/security/audit_control)
sed "s/${oldExpireAfter}/expire-after:60d OR 1G/g" /etc/security/audit_control_old > /etc/security/audit_control
chmod 644 /etc/security/audit_control
chmod 400 /etc/security/audit_control
chown root:wheel /etc/security/audit_control
# re-check
auditRetention="$(grep -c "expire-after:60d OR 1G" /etc/security/audit_control)"
Expand Down
2 changes: 1 addition & 1 deletion Fragments/OrgScores/OrgScore3_5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [[ "${auditResult}" == "1" ]]; then
# Remediation
if [[ "${remediateResult}" == "enabled" ]]; then
chown -R root:wheel /var/audit
chmod -R 440 /var/audit
chmod -R 400 /var/audit
chown root:wheel /etc/security/audit_control
chmod 400 /etc/security/audit_control
# re-check
Expand Down

0 comments on commit a5d2bd8

Please sign in to comment.