From 57df3be530421708f6f91d1750144bf258196f6e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 13 Dec 2010 19:13:32 +0100 Subject: setuid bit change for Xorg/sudo at install time --- scripts/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 0c545d7c2..1937b556b 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -165,7 +165,7 @@ case $ostype { part=${basedev}s1 match=\'${basedev}\''?(s+([0-9]))' function mount_ext2fs { - fuse-ext2 "$1" "$2" -o force + fuse-ext2 "$1" "$2" -o rw+ sleep 3 } ;; @@ -336,7 +336,7 @@ tune2fs -c 0 -i 0 "$part" (( quiet )) || print Extracting installation archive... mount_ext2fs "$part" "$T" -gzip -dc "$src" | (cd "$T"; tar -xpf -) +gzip -dc "$src" | (cd "$T"; tar -xvpf -) cd "$T" rnddev=/dev/urandom [[ -c /dev/arandom ]] && rnddev=/dev/arandom @@ -345,6 +345,8 @@ dd if=$rnddev bs=16 count=1 >>etc/.rnd 2>/dev/null chown 0:0 tmp chmod 1777 tmp chmod 4755 bin/busybox +[[ -f usr/bin/Xorg ]] && chmod 4755 usr/bin/Xorg +[[ -f usr/bin/sudo ]] && chmod 4755 usr/bin/sudo (( quiet )) || print Configuring GRUB2 bootloader... mkdir -p boot/grub ( -- cgit v1.2.3