Set umask to 0x077 instead of the default. This prevents non-root user
from reading crashinfo output, which could contain some sensitive information. Reviewed by: jhb MFC after: 1 week
This commit is contained in:
parent
f9007b2aae
commit
f93bd9fff4
@ -147,6 +147,8 @@ fi
|
||||
|
||||
echo "Writing crash summary to $FILE."
|
||||
|
||||
umask 077
|
||||
|
||||
# Simulate uname
|
||||
ostype=$(echo -e printf '"%s", ostype' | gdb -x /dev/stdin -batch $KERNEL)
|
||||
osrelease=$(echo -e printf '"%s", osrelease' | gdb -x /dev/stdin -batch $KERNEL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user