ggrandou / abootimg

Tool to read/write/update android boot images
GNU General Public License v2.0
121 stars 43 forks source link

always unpack initrd to relative paths #5

Open AndreySV opened 4 years ago

AndreySV commented 4 years ago

If cpio archive contains absolute filenames, files are unpacked relative to host root '/', not 'ramdisk' directory. If abootimg-unpack-initrd is run as root, that could break host system and make it unbootable by overwriting important system files.