From: Amy Griffis <amy.griffis@hp.com>
To: Alexander Viro <aviro@redhat.com>
Cc: Eric Paris <eparis@parisplace.org>,
linux-audit@redhat.com, James Morris <jmorris@namei.org>
Subject: Re: audit-ptrace patch (untested)
Date: Tue, 13 Mar 2007 15:00:46 -0400 [thread overview]
Message-ID: <20070313190046.GA18105@fc.hp.com> (raw)
In-Reply-To: <20070312122055.GC12417@devserv.devel.redhat.com>
Alexander Viro wrote: [Mon Mar 12 2007, 08:20:55AM EDT]
> diff --git a/kernel/auditsc.c b/kernel/auditsc.c
> index 3599558..f489fed 100644
> --- a/kernel/auditsc.c
> +++ b/kernel/auditsc.c
<snip>
> +void __audit_ptrace(struct task_struct *t)
> +{
> + struct audit_context *context = current->audit_context;
> + unsigned len;
> + u32 sid;
> +
> + context->target_pid = t->pid;
> +
> + selinux_get_task_sid(t, &sid);
> + if (sid)
> + selinux_sid_to_string(sid, &context->obj_ctx, &len);
> +}
Why did you choose to do the sid to string conversion at collection
time, rather than waiting for audit_log_exit? In other code like this
we've been delaying the memory alloc until logging, in case we never
need it.
Amy
next prev parent reply other threads:[~2007-03-13 19:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 14:50 audit-ptrace patch (untested) Alexander Viro
2007-03-06 14:46 ` Stephen Smalley
2007-03-07 3:13 ` Alexander Viro
2007-03-07 12:52 ` Stephen Smalley
2007-03-07 16:22 ` James Morris
2007-03-12 12:20 ` Alexander Viro
2007-03-12 13:07 ` Stephen Smalley
2007-03-12 14:16 ` James Morris
2007-03-12 16:19 ` Alexander Viro
2007-03-13 19:00 ` Amy Griffis [this message]
2007-03-13 19:39 ` Alexander Viro
2007-03-14 15:57 ` Amy Griffis
2007-03-14 3:06 ` 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=20070313190046.GA18105@fc.hp.com \
--to=amy.griffis@hp.com \
--cc=aviro@redhat.com \
--cc=eparis@parisplace.org \
--cc=jmorris@namei.org \
--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