From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Antill Subject: Re: auditctl se_sen & se_clr Date: Fri, 19 May 2006 15:19:35 -0400 Message-ID: <1148066375.3469.232.camel@code.and.org> References: <446DDF21.4080808@us.ibm.com> <1148051869.25168.144.camel@moss-spartans.epoch.ncsc.mil> <446DE48C.3010509@us.ibm.com> <1148056260.3469.222.camel@code.and.org> <446E03EE.5090707@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1648650078==" Return-path: Received: from mail.and.org (vpn83-129.boston.redhat.com [172.16.83.129]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id k4JJJdQQ021180 for ; Fri, 19 May 2006 15:19:40 -0400 In-Reply-To: <446E03EE.5090707@us.ibm.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: Michael C Thompson Cc: Linux Audit List-Id: linux-audit@redhat.com --===============1648650078== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-xCAM4Fcq9uzjEUGePDYP" --=-xCAM4Fcq9uzjEUGePDYP Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-05-19 at 12:44 -0500, Michael C Thompson wrote: > James Antill wrote: > > On Fri, 2006-05-19 at 10:30 -0500, Michael C Thompson wrote: > >=20 > >> Thanks, that's what I thought as well. Here is my result of testing th= is: > >> > >> root linux user, id: > >> context=3Droot:staff_r:staff_t:SystemLow-SystemHigh > >> > >> mcthomps linux user, id: > >> context=3Duser_u:user_r:user_t:SystemLow > >> > >> When I have the following audit rule is > >> auditctl -a entry,always -S chmod -F se_clr=3Ds0 > >> the chmod actions taken by mcthomps get logged, but not those done by=20 > >> root (this is as expected). > >=20 > > This means that a "range" of s0 is being interpreted as: > >=20 > > se_sen=3D'' > > se_clr=3D's0' > >=20 > > ...which isn't what I'd expect, but given that... >=20 > I'm sorry, I do not follow what you mean here. The mls range for root is s0-s0:c0.c255, where: se_sen =3D s0 se_clr =3D s0:c0.c255 The mls range for mcthomps is s0, given the above works then: se_clr =3D s0 ...and given the range is s0 and not s0-s0 then se_sen must be blank (and so won't match s0). --=20 James Antill --=-xCAM4Fcq9uzjEUGePDYP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEbhpH11eXTEMrxtQRAtDiAJ9ReZam5+b/VKVmPOIiLujojCN1/QCfUt2M B5eo19vo4dBrITIwgua00xY= =VYUM -----END PGP SIGNATURE----- --=-xCAM4Fcq9uzjEUGePDYP-- --===============1648650078== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1648650078==--