Signal problem
Quoted 2 lines
Upon termination, what's queued to the netlink socket but not yet received is going to be lost, right?
I've also tested with nonfatal signals. This bug has been verified by other people, too.
Quoted 2 lines
Perhaps you need to be able to set pid == 0, and still drain the fd when you recieve a TERM?
There's no way to drain the netlink socket in a race-free way. I've created a whole new technique as a consequence. I'm just down to placing the hook.
-Steve
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines · * Steve G ([email protected]) wrote:
Quoted 2 lines
Upon termination, what's queued to the netlink socket but not yet received is going to be lost, right?
I've also tested with nonfatal signals. This bug has been verified by other people, too.
Nonfatal signals are delivered to auditd, but don't generate the audit record? Is it being filtered away?
Quoted 5 lines
Quoted 2 lines
Perhaps you need to be able to set pid == 0, and still drain the fd when you recieve a TERM?
There's no way to drain the netlink socket in a race-free way. I've created a whole new technique as a consequence. I'm just down to placing the hook.
If you first set audit_pid to 0, all future messages will go to syslog. It's only current netlink socket queue that needs to be drained. So there's no livelock issue, just a race against the typical 5 seconds or whatever it is for init scripts between TERM and KILL while you madly drain the queue.
thanks,
-chris
Signature · 6 lines
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.