Skip to content
Snippets Groups Projects
Commit 55afeec8 authored by Topi Miettinen's avatar Topi Miettinen Committed by Ben Hutchings
Browse files

Tighten permissions for /run/initramfs


/run/initramfs contains a log file from fsck of root file system,
which could perhaps contain sensitive information, for example if
/home or /var are also located there and fsck is triggered.

Let's tighten the permissions to 0700.

Signed-off-by: default avatarTopi Miettinen <toiwoton@gmail.com>
parent e7e6b5a8
No related branches found
No related tags found
No related merge requests found
......@@ -208,7 +208,7 @@ else
fi
mount -t tmpfs -o "nodev,noexec,nosuid,size=${RUNSIZE:-10%},mode=0755" tmpfs /run
mkdir -m 0755 /run/initramfs
mkdir -m 0700 /run/initramfs
if [ -n "$log_output" ]; then
exec >$log_output 2>&1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment