From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: [PATCH] Uids should not be allowed to set to negative Date: Fri, 8 Aug 2008 09:53:40 -0400 Message-ID: <200808080953.41301.sgrubb@redhat.com> References: <489C1B77.5030508@cn.fujitsu.com> <1218201909.5837.226.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1218201909.5837.226.camel@localhost.localdomain> 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: Eric Paris Cc: Linux Audit , 'LESS' List-Id: linux-audit@redhat.com On Friday 08 August 2008 09:25:09 Eric Paris wrote: > > It is also strange that gid can't be set to negative, while uid can. > > Its not the same code that matches uid and auid is it? =C2=A0auid can > reasonably be negative for anything that wasn't done from a login shell= . > just want to make sure you don't lose that ability. That's true. But unfortunately, we have to give the uid as the unsigned v= alue=20 or we lose a bit in the conversion and it doesn't match. On second though= t,=20 maybe we can't do negative uids from user space because of that conversio= n to=20 unsigned inside the rule matching engine. -Steve