Not sure what techniques are used today to derive SELinux policies but if you
can figure things out from C code you could perhaps use Coccinelle and its
scripting capabilities (python, for instance) to generate them. This will of
course depend on how tied down generating rules from C code can be. Another
thing one could consider is: what things could be ammdended to C code to
annotate or help with static analysis to automatically generate SELinux
policy rules.

  Luis

----- Forwarded message from Andrew Ruef <[email protected]> -----

Date: Tue, 20 Oct 2015 13:17:27 -0400
From: Andrew Ruef <[email protected]>
To: [email protected]
Subject: Static analysis to assist policy creation?

Hello SELinux list, 

We’ve been thinking about creating a static (or potentially concolic) analysis 
and testing infrastructure that would assist in the creation of finer grained 
SELinux policies than audit2allow. We think that some work can be done through 
alias analysis and domain specific object (strings, memory regions/files, etc) 
analysis wholly statically, but we’ve developed an extensive symbolic execution 
system for C/binary programs that could also be applied. 

I’ve done some searching and asking around and it doesn’t seem like there are 
any tools that do this. I’m aware of some past projects that made use of static 
analysis tools to help create security policies, like the IBM SWORD4J work. The 
IBM people seemed really happy with those results and they have relayed that it 
really helped their internal efforts for security labeling, so maybe there is 
some hope for tools in this area. 

My question is two-fold

1. Is there a history of using static analysis to create SELinux policies that 
I haven’t found so far?

2. Is there any interest in the community for such an effort today?

Thank you,

Andrew



_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to [email protected].


----- End forwarded message -----

-- 
Luis Rodriguez, SUSE LINUX GmbH
Maxfeldstrasse 5; D-90409 Nuernberg
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to