From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Writting to audit with an application Date: Mon, 19 Mar 2007 17:38:27 -0400 Message-ID: <200703191738.27970.sgrubb@redhat.com> References: <45FC397E.3050307@optonline.net> <200703171824.37027.sgrubb@redhat.com> <45FEEB76.3070908@optonline.net> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <45FEEB76.3070908@optonline.net> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Monday 19 March 2007 15:58, geckiv wrote: > =C2=A0 =C2=A0 I never heard of dbus before. Is there an example how it = keeps it's =C2=A0 > CAP_AUDIT_WRITE and changes uids? Not without looking at its source code. Here's its patch: http://developer.momonga-linux.org/viewvc/trunk/pkgs/dbus/dbus-0.61-selin= ux-avc-audit.patch?r1=3D13947&r2=3D13946&pathrev=3D13947&view=3Dpatch nscd also does the same trick, but its coded in glibc style. > Is this just using setuid() some how?=20 No, there's an intricate dance regarding setuid, prctl, & capabilities that must be followed exactly or bad things can happen. -Steve