kdumpctl: make the kdump.log root-readable-only
Resolves: bz2111857
Upstream: Fedora
Conflict: None
commit 4edcd9a400
Author: Lichen Liu <lichliu@redhat.com>
Date: Wed Aug 24 16:16:14 2022 +0800
kdumpctl: make the kdump.log root-readable-only
Decrease the risk that of leaking information that could potentially
be used to exploit the crash further (think location of keys).
Signed-off-by: Lichen Liu <lichliu@redhat.com>
Acked-by: Coiby Xu <coxu@redhat.com>
Signed-off-by: Lichen Liu <lichliu@redhat.com>
This commit is contained in:
parent
c9bdde4cfb
commit
bd92125753
1
kdumpctl
1
kdumpctl
@ -666,6 +666,7 @@ load_kdump()
|
|||||||
# and release it.
|
# and release it.
|
||||||
exec 12>&2
|
exec 12>&2
|
||||||
exec 2>> $KDUMP_LOG_PATH/kdump.log
|
exec 2>> $KDUMP_LOG_PATH/kdump.log
|
||||||
|
chmod 600 $KDUMP_LOG_PATH/kdump.log
|
||||||
PS4='+ $(date "+%Y-%m-%d %H:%M:%S") ${BASH_SOURCE}@${LINENO}: '
|
PS4='+ $(date "+%Y-%m-%d %H:%M:%S") ${BASH_SOURCE}@${LINENO}: '
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user