All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: [PATCH] Audit of POSIX Message Queue Syscalls
Date: Wed, 17 May 2006 14:27:15 -0400	[thread overview]
Message-ID: <200605171427.15319.sgrubb@redhat.com> (raw)
In-Reply-To: <1147876484.11589.46.camel@localhost.localdomain>

On Wednesday 17 May 2006 10:34, Timothy R. Chavez wrote:
> >  out_fput:
> >       fput(filp);
> >  out:
> > +     audret = audit_mq_getsetattr(mqdes, &mqstat, &omqstat);
> > +     if (ret == 0)
> > +             ret = audret;
>
> At a cursory glance, this looks a little fishy to me...

I think the intent is OK...but the real problem that I see is that it 
generates a record also when calling mq_getattr(). Seems like the function 
could be put here

1095         if (u_mqstat != NULL) {
1096                 if (copy_from_user(&mqstat, u_mqstat, sizeof(struct 
mq_attr)))
1097                         return -EFAULT;
1098                 if (mqstat.mq_flags & (~O_NONBLOCK))
1099                         return -EINVAL;

-->                    audret = audit_mq_getsetattr(mqdes, &mqstat);
			if (audret)
				return audret;           
1100         }

omqstat does not need to be recorded does it? AFAICT, this is the status 
buffer going back to the user.

-Steve

  reply	other threads:[~2006-05-17 18:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-17  1:40 [PATCH] Audit of POSIX Message Queue Syscalls George C. Wilson
2006-05-17 13:34 ` Steve Grubb
2006-05-17 16:39   ` Amy Griffis
2006-05-17 18:11     ` Steve Grubb
2006-05-17 22:38   ` George C. Wilson
2006-05-17 14:34 ` Timothy R. Chavez
2006-05-17 18:27   ` Steve Grubb [this message]
2006-05-24 21:09 ` [PATCH] Audit of POSIX Message Queue Syscalls v.2 George C. Wilson
2006-05-24 21:23   ` Linda Knippers
2006-05-24 21:32   ` Amy Griffis
2006-05-24 21:53   ` Steve Grubb
2006-05-25  1:33     ` George C. Wilson

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=200605171427.15319.sgrubb@redhat.com \
    --to=sgrubb@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.