dracut.sh: create the initramfs non-world readable also if early cpio is used
Fixes:master5f2c30d9bcPreviously fixed CVE-2012-4453:e1b48995c2Signed-off-by: Andreas Stieger <astieger@suse.com>
parent
a5b2d8fe74
commit
0db98910a1
|
|
@ -1700,7 +1700,7 @@ if [[ $create_early_cpio = yes ]]; then
|
|||
|
||||
# The microcode blob is _before_ the initramfs blob, not after
|
||||
if ! (
|
||||
cd "$early_cpio_dir/d"
|
||||
umask 077; cd "$early_cpio_dir/d"
|
||||
find . -print0 | sort -z \
|
||||
| cpio ${CPIO_REPRODUCIBLE:+--reproducible} --null $cpio_owner_root -H newc -o --quiet > "${DRACUT_TMPDIR}/initramfs.img"
|
||||
); then
|
||||
|
|
|
|||
Loading…
Reference in New Issue