From: Chris Wright <chrisw@osdl.org>
To: Andy Lutomirski <luto@myrealbox.com>
Cc: Chris Wright <chrisw@osdl.org>, Andrew Morton <akpm@osdl.org>,
Linus Torvalds <torvalds@osdl.org>,
sds@epoch.ncsc.mil, jmorris@redhat.com,
linux-kernel@vger.kernel.org
Subject: Re: compute_creds fixup in -mm
Date: Wed, 21 Apr 2004 12:07:22 -0700 [thread overview]
Message-ID: <20040421120722.N22989@build.pdx.osdl.net> (raw)
In-Reply-To: <4086AEFC.5010002@myrealbox.com>; from luto@myrealbox.com on Wed, Apr 21, 2004 at 10:27:24AM -0700
* Andy Lutomirski (luto@myrealbox.com) wrote:
> void compute_creds(struct linux_binprm *bprm)
> {
> - security_bprm_apply_creds(bprm);
> + task_lock(current);
> +
> + security_bprm_apply_creds(bprm, must_not_trace_exec(current));
> +
> + task_unlock(current);
unecessary extra lines.
> +static void selinux_bprm_apply_creds(struct linux_binprm *bprm, int unsafe)
> @@ -1782,14 +1780,13 @@
> /* Check for ptracing, and update the task SID if ok.
> Otherwise, leave SID unchanged and kill. */
> task_lock(current);
oops ;-)
> - if (current->ptrace & PT_PTRACED) {
> + if (unsafe & (LSM_UNSAFE_PTRACE | LSM_UNSAFE_PTRACE_CAP)) {
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
next prev parent reply other threads:[~2004-04-21 19:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040421010621.L22989@build.pdx.osdl.net>
2004-04-21 17:27 ` Andy Lutomirski
2004-04-21 18:13 ` Stephen Smalley
2004-04-21 18:28 ` Chris Wright
2004-04-21 18:42 ` Stephen Smalley
2004-04-21 18:54 ` Chris Wright
2004-04-21 19:37 ` Andy Lutomirski
2004-04-21 20:10 ` Stephen Smalley
2004-04-21 19:07 ` Chris Wright [this message]
[not found] <fa.n7n31hd.1k7ce37@ifi.uio.no>
[not found] ` <fa.f9m11dm.206fg4@ifi.uio.no>
2004-04-21 20:36 ` Andy Lutomirski
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=20040421120722.N22989@build.pdx.osdl.net \
--to=chrisw@osdl.org \
--cc=akpm@osdl.org \
--cc=jmorris@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@myrealbox.com \
--cc=sds@epoch.ncsc.mil \
--cc=torvalds@osdl.org \
/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
all inboxes | Powered by JetHome®