Received: from jazzhorn.ncsc.mil (mummy.ncsc.mil [144.51.88.129]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with SMTP id l3UFUOkX002578 for ; Mon, 30 Apr 2007 11:30:24 -0400 Received: from exchange.columbia.tresys.com (jazzhorn.ncsc.mil [144.51.5.9]) by jazzhorn.ncsc.mil (8.12.10/8.12.10) with SMTP id l3UFUNid005828 for ; Mon, 30 Apr 2007 15:30:23 GMT Subject: Re: Patch to cleanup audit handling in policy. From: "Christopher J. PeBenito" To: Daniel J Walsh Cc: Steve G , SE Linux In-Reply-To: <4636036C.8060208@redhat.com> References: <254813.17034.qm@web51501.mail.re2.yahoo.com> <1177942650.3570.78.camel@sgc> <4635FC63.3000003@redhat.com> <1177943981.3570.90.camel@sgc> <4636036C.8060208@redhat.com> Content-Type: text/plain Date: Mon, 30 Apr 2007 15:29:50 +0000 Message-Id: <1177946990.3570.103.camel@sgc> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Mon, 2007-04-30 at 10:55 -0400, Daniel J Walsh wrote: > Christopher J. PeBenito wrote: > > On Mon, 2007-04-30 at 10:25 -0400, Daniel J Walsh wrote: > > > >> Christopher J. PeBenito wrote: > >> > >>> On Fri, 2007-04-27 at 16:38 -0700, Steve G wrote: > >>> > >>> > >>>>> I have removed -send_audit_msgs_pattern and replaced it with 4 functions > >>>>> > >>>>> > >>>> I'd like to clarify what they are in case anyone thinks the names need tweeking > >>>> > >>>> logging_send_audit_msg - This is for any Trusted App that needs to send audit > >>>> events > >>>> > >>>> logging_set_loginuid - This would be for entry point daemons or daemons that > >>>> perform actions on behalf of a user (cron/at). Includes the ability to send audit > >>>> events. > >>>> > >>>> logging_set_audit - This should be for the audit daemon only > >>>> > >>>> logging_set_auditctl - This is only for auditctl and autrace. > >>>> > >>>> > >>> I'm not convinced that these are necessary. The assertions in the > >>> policy are mainly to stop people from accidentally shooting themselves > >>> in the foot by allowing potentially dangerous access, for example, > >>> access to /etc/shadow or raw disk access. > >>> > >>> > >>> > >> When I reviewed the policy, almost ever call to allow audit was wrong. > >> > > > > Wrong in what sense? > > > Wrong in the sense of granting more privs then they intended. Login > programs being able to change the audit rules. audit_control versus > audit_write and netlinkmsg_write versus netlinkmsg_relay. Better to put > them into interfaces and force policy writers to use them. This is an argument for more patterns, which would be fine. -- Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.