dracut.sh: create the initramfs non-world readable also if early cpio is used

Fixes: 5f2c30d9bc
Previously fixed CVE-2012-4453: e1b48995c2

Signed-off-by: Andreas Stieger <astieger@suse.com>
master
Andreas Stieger 2016-11-07 10:37:22 +01:00 committed by Harald Hoyer
parent a5b2d8fe74
commit 0db98910a1
1 changed files with 1 additions and 1 deletions

View File

@ -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