From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darrel Goeddel Subject: audit by role testing Date: Tue, 04 Apr 2006 12:33:57 -0500 Message-ID: <4432AE05.2080601@trustedcs.com> References: <200604031722.44377.sgrubb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200604031722.44377.sgrubb@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Steve Grubb Cc: Linux Audit Discussion List-Id: linux-audit@redhat.com Here: http://dgoeddel.home.insightbb.com/audit/ are some patches that will enable users to test the selinux context audit filters. They are largely based on some previous work by Amy and Dustin (some things are named differently, and some more stuff is filled out). These patches are not meant for inclusion into the audit package - they are probably not ready for that ;) They were merely a way to test the new functionality provided in the lspp kernel. I can rework them if there are suggestions that could make them acceptable for the real audit package. I also stuck a source rpm there that has the two patches in there. You can just grab that, build it, and force upgrade ('-Uhv --force' is what I do) the audit package that you have installed. The first patch (audit-1.1.5-audit_rule_data-support.patch) basically mirrors all calls that use an audit_rule struct with a similar call that uses an audit_rule_data struct. There are also a few bits that define things for nice compilation with the current headers. This patch should be completely backwards compatible since it only introduces new things (which are unused). The second patch (audit-1.1.5-audit_rule_data-use.patch) converts auditctl and autrace to use the audit_rule_data struct instead of the audit_rule struct. This patch will not work on kernels that do not support AUDIT_ADD_RULE, AUDIT_DEL_RULE, and AUDIT_LIST_RULES (the lspp kernel is OK, but the regular FC5 kernel is not). Using this auditctl (and the lspp kernel), you should be able to use the new field values of se_user, se_role, se_type, se_sen, and se_clr. Note that the se_sen and se_clr values will need to be in the "untranslated" form (e.g. s5:c0). -- Darrel