public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: Eric Paris <eparis@redhat.com>
Cc: Linux Audit <linux-audit@redhat.com>, 'LESS' <graphics@cn.fujitsu.com>
Subject: Re: [PATCH] Uids should not be allowed to set to negative
Date: Fri, 8 Aug 2008 09:53:40 -0400	[thread overview]
Message-ID: <200808080953.41301.sgrubb@redhat.com> (raw)
In-Reply-To: <1218201909.5837.226.camel@localhost.localdomain>

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?  auid 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 value 
or we lose a bit in the conversion and it doesn't match. On second thought, 
maybe we can't do negative uids from user space because of that conversion to 
unsigned inside the rule matching engine.

-Steve

  reply	other threads:[~2008-08-08 13:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08 10:09 [PATCH] Uids should not be allowed to set to negative Cai Xianchao
2008-08-08 13:25 ` Eric Paris
2008-08-08 13:53   ` Steve Grubb [this message]
2008-08-08 13:45 ` Steve Grubb
2008-08-12 19:36 ` Steve Grubb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200808080953.41301.sgrubb@redhat.com \
    --to=sgrubb@redhat.com \
    --cc=eparis@redhat.com \
    --cc=graphics@cn.fujitsu.com \
    --cc=linux-audit@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox