From a92b931da049b1485912106e0bcd68b9949da514 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sun, 4 Nov 2012 16:19:35 +0000 Subject: [PATCH] Yet another hack - enable sudo needed for changing SELinux role. --- org.glite.testsuites.ctb/gridsite/tests/gridsite-common-testbeds.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.8.2.3