Eduardo Madeira Fleury wrote:
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,
AVC Messages.

--
redhat-lspp mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-lspp

Reply via email to