Skip to content

Commit

Permalink
ramlog: harden the zram mounting
Browse files Browse the repository at this point in the history
this is to improve the score of /var/log for FILE-6374 in Lynis audit
  • Loading branch information
Smankusors authored and ColorfulRhino committed Apr 17, 2024
1 parent 5e008a8 commit 4df3bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bsp/common/usr/lib/armbian/armbian-ramlog
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ case "$1" in
case $LOG_TYPE in
zram)
echo -e "Mounting $rd as $RAM_LOG \c" | $LOG_OUTPUT
mount -o discard $rd $RAM_LOG 2>&1 | $LOG_OUTPUT
mount -o discard,nosuid,noexec,nodev $rd $RAM_LOG 2>&1 | $LOG_OUTPUT
;;
tmpfs)
echo -e "Setting up $RAM_LOG as tmpfs \c" | $LOG_OUTPUT
Expand Down

0 comments on commit 4df3bdd

Please sign in to comment.