Browse Source

set suid bit for Xorg/sudo

Waldemar Brodkorb 10 years ago
parent
commit
bd31b4d65c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/adkinstall/src/adkinstall

+ 2 - 0
package/adkinstall/src/adkinstall

@@ -211,6 +211,8 @@ function grub_install {
 function fix_perm {
 	print fixing permissions
 	chmod 1777 ${1}/tmp
+	[[ -f ${1}/usr/bin/sudo ]] && chmod 4755 ${1}/usr/bin/sudo
+	[[ -f ${1}/usr/bin/Xorg ]] && chmod 4755 ${1}/usr/bin/Xorg
 }
 
 case $target {