Skip to contentSkip to conversation

Busted by constraints.

DISCUSSION Casey Schaufler 2 participants 2 messages May 12, 2005 – May 13, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · --- Stephen Smalley

But nothing prevents you from creating a simple tool linked against
libsepol that takes an avc denial and determines which part of the
policy caused it.

I seriously doubt this would be a "simple" tool. Two months after the event are you absolutely sure you are going to have all the information you need to reconstruct the policy and file system context that was in force at the time of a particular access attempt?

One of the first MLS systems (System V/MLS)
did reconstructive audit. The experience of
that system lead all of the Unix vendors after
to use schemes that created individual records
that include all interesting information.

I disagree with your assessment that it's easier
to do this is user space after the fact than in
the kernel as the action happens.

Casey Schaufler
[email protected]

Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

--
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 6 lines · Casey Schaufler

I seriously doubt this would be a "simple" tool. Two months after the event are you absolutely sure you are going to have all the information you need to reconstruct the policy and file system context that was in force at the time of a particular access attempt?

Everything we need to reproduce the denial is included in the audit message (i.e. the relevant security contexts and object information) except for the policy itself. So all you need is the audit log and the policy that was in effect at the time, and you can reproduce the computation. I'll make a simple patch to libsepol and a trivial utility that does this.

Signature · 8 lines
Stephen Smalley
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.