[redhat-lspp] run_init dying with SIGHUP when called from pexpect as sysadm

Eduardo Madeira Fleury efleury at br.ibm.com
Fri Nov 10 21:57:32 UTC 2006


People,

I've been dealing with a strange error. If I try to execute run_init from 
within pexpect, being sysadm_r:sysadm_t, it dies with SIGHUP signal. If I try 
the exact same procedure as auditadm_r:auditadm_t it works fine.

To reproduce:

# python

from pexpect import run
eve = {'(?i)Password: ' : '<yourpwd>\n'}
run("/usr/sbin/run_init service", withexitstatus=1, events=eve)

I've added a little hack to pexpect so it will "print child.signalstatus" 
before ending the run method. This way I got the following:
Exit: None
Sign: 1 (which is SIGHUP)
('Authenticating fleury.\r\nPassword: \r\n', None)

It was expected it printed the run_init usage line... It works fine if you try 
with secadm_r:secadm_t.

If nobody manifestates against it I'll open a bug on this.

I've tried with RHEL5 10/27 + KickStart v0.9. You are welcome to try this on 
other configs (the new refresh maybe.. or a system installed w/o KS script).

Thanks,
-- 
Eduardo M. Fleury
IBM Linux Technology Center Brazil
Mobile: +55-19-81224410
email/sametime: fleury at br.ibm.com




More information about the redhat-lspp mailing list