aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/remove-boot-splash
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-01-27 10:06:46 +0000
committerColin Guthrie <colin@mageia.org>2013-01-27 10:06:46 +0000
commitba4e5c0004aa2c7ed1ab69d497f54e1b770581db (patch)
tree6801e5d019d03094eed46968def4309b57fc8ad6 /scripts/remove-boot-splash
parent2fc9ca296692b3c8b5e83e0a25b930841db94381 (diff)
downloadbootsplash-ba4e5c0004aa2c7ed1ab69d497f54e1b770581db.tar
bootsplash-ba4e5c0004aa2c7ed1ab69d497f54e1b770581db.tar.gz
bootsplash-ba4e5c0004aa2c7ed1ab69d497f54e1b770581db.tar.bz2
bootsplash-ba4e5c0004aa2c7ed1ab69d497f54e1b770581db.tar.xz
bootsplash-ba4e5c0004aa2c7ed1ab69d497f54e1b770581db.zip
Fix permissions on written initrd's
This fixes a potential leakage of sensitive information in the initrd to non-root local users.
Diffstat (limited to 'scripts/remove-boot-splash')
-rwxr-xr-xscripts/remove-boot-splash1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/remove-boot-splash b/scripts/remove-boot-splash
index 058b60b..39db143 100755
--- a/scripts/remove-boot-splash
+++ b/scripts/remove-boot-splash
@@ -67,6 +67,7 @@ rm -rf \
$tmp_dir/plymouth/etc/splashy \
$tmp_dir/plymouth/usr/share/splashy
+umask 077
find . | \
cpio -R 0:0 -H newc -o --quiet | \
$COMPRESS > $tmp_dir/initrd || clean_and_fail