Skip to contentSkip to conversation

dcache_lock deadlock due to auditing

DISCUSSION Steve G 2 participants 2 messages Apr 14, 2005 SELinux security module

lore
Share & tools
lore

Steve G

author
#0 lore raw
Quoted 2 lines

I'm guessing the security context obtained from the SELinux hooks are is represented by a sid. Is this true?

Yes. This patch is already part of the audit subsystem code and on its way upstream.

Quoted 2 lines

If that's the case, can it be readily converted to the string representation for display at audit_log_exit time?

The patch does that.

-Steve Grubb

__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

--
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.

#1 lore raw
Quoted 5 lines · Steve G
Quoted 2 lines

I'm guessing the security context obtained from the SELinux hooks are is represented by a sid. Is this true?

Yes. This patch is already part of the audit subsystem code and on its way upstream.

I didn't see the original posting, but the security_getprocattr (-> selinux_getprocattr) and security_inode_getsecurity (-> selinux_inode_getsecurity) hooks copy security contexts into buffers supplied by the caller. That is what I was referring to. The pathname lookup code would need to be modified to invoke security_inode_getsecurity(), possibly from audit_inode() by passing the inode structure to it, and copy the context into the auxiliary item list on the current audit context for display upon audit_log_exit. And audit_log_exit could be modified to call security_getprocattr to get the current process context and display it. I don't believe anyone has done that yet. There has been a patch to log the exe and comm information for the current task upon audit_log_exit, but that is different.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
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.