From: Joshua Brindle <method@gentoo.org>
To: russell@coker.com.au
Cc: Klaus Weidner <klaus@atsec.com>,
selinux@tycho.nsa.gov, Stephan Mueller <smueller@atsec.com>
Subject: Re: type transitioning script race condition?
Date: Wed, 30 Aug 2006 23:12:30 -0400 [thread overview]
Message-ID: <44F6539E.7090800@gentoo.org> (raw)
In-Reply-To: <200608310918.03263.russell@coker.com.au>
Russell Coker wrote:
>On Thursday 31 August 2006 08:39, Klaus Weidner <klaus@atsec.com> wrote:
>
>
>>This sounds as if it suffers from the well known race condition that
>>makes setuid shell scripts a bad idea - is there any protection in place
>>to prevent users from exploiting the race condition to run code of their
>>own choice in the new domain?
>>
>>
>
>Correct. As long as the script is run in a domain that has less privileges
>than the calling code this isn't a problem. If running a script causes a
>transition to a more privileged domain then that's a policy bug.
>
>
>
this happens quite a bit, including our own selinux management script
semanage. In addition to the race condition (that is not fixable on
Linux AFAIK) there are other environmental contamination issues,
There are some plans to fix the environmental contamination issues using
a wrapper that cleanses the environment ala atsecure but the race is not
fixable as far as I know.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2006-08-31 3:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-30 22:39 type transitioning script race condition? Klaus Weidner
2006-08-30 23:18 ` Russell Coker
2006-08-31 3:12 ` Joshua Brindle [this message]
2006-08-31 13:23 ` Karl MacMillan
2006-08-31 13:53 ` Joshua Brindle
2006-08-31 15:29 ` Karl MacMillan
2006-08-31 15:41 ` Joshua Brindle
2006-08-31 16:02 ` Klaus Weidner
2006-08-31 16:39 ` Karl MacMillan
2006-08-31 17:19 ` Klaus Weidner
2006-08-31 20:02 ` Karl MacMillan
2006-08-31 15:46 ` Klaus Weidner
2006-08-31 16:13 ` Joshua Brindle
2006-08-31 16:40 ` Klaus Weidner
2006-09-01 11:37 ` Stephen Smalley
2006-09-01 12:48 ` Russell Coker
2006-09-01 13:13 ` Joshua Brindle
2006-08-31 14:43 ` Stephen Smalley
2006-08-31 14:49 ` Joshua Brindle
2006-08-31 15:09 ` Stephen Smalley
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=44F6539E.7090800@gentoo.org \
--to=method@gentoo.org \
--cc=klaus@atsec.com \
--cc=russell@coker.com.au \
--cc=selinux@tycho.nsa.gov \
--cc=smueller@atsec.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.