From: František Dvořák Date: Sun, 4 Nov 2012 16:19:35 +0000 (+0000) Subject: Yet another hack - enable sudo needed for changing SELinux role. X-Git-Tag: glite-jobid-api-c_R_2_2_4_1~8 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=a92b931da049b1485912106e0bcd68b9949da514;p=jra1mw.git Yet another hack - enable sudo needed for changing SELinux role. --- diff --git a/org.glite.testsuites.ctb/gridsite/tests/gridsite-common-testbeds.sh b/org.glite.testsuites.ctb/gridsite/tests/gridsite-common-testbeds.sh index e7ce071..7ae70dd 100755 --- a/org.glite.testsuites.ctb/gridsite/tests/gridsite-common-testbeds.sh +++ b/org.glite.testsuites.ctb/gridsite/tests/gridsite-common-testbeds.sh @@ -109,6 +109,8 @@ if selinuxenabled >/dev/null 2>&1; then # SL6 doesn't like much starting apache inside rc scripts # change identity 'system_u:system_r:initrc_t:s0' echo "SELinux enabled, don't panic!" + # fix the sudo first + sed -i 's/^\(Defaults.*requiretty\)/#\1/' /etc/sudoers echo Starting sudo -r system_r -t unconfined_t \$SYS_APACHE -f \$HTTPD_CONF sudo -r system_r -t unconfined_t \$SYS_APACHE -f \$HTTPD_CONF else