All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom <tom@lemuria.org>
To: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: policy question
Date: Fri, 19 Apr 2002 14:27:25 +0200	[thread overview]
Message-ID: <20020419142724.A18906@lemuria.org> (raw)
In-Reply-To: <20020419091003.585DD285DE@lyta.coker.com.au>; from russell@coker.com.au on Fri, Apr 19, 2002 at 11:10:03AM +0200

On Fri, Apr 19, 2002 at 11:10:03AM +0200, Russell Coker wrote:
> > 1) Apache itself is compromised. In that case, you are where you are
> > right now, namely that the attacker has all the rights that apache has.
> > Nothing gained, but nothing lost, either.
> 
> With the suexec model someone who gains access to the Apache domain will not 
> gain direct access to the user domains, they will only be able to transition 
> to them through suexec and through the cgi-bin script.  Therefore even if the 
> Apache domain is controlled by a hostile user they still will be limited as 
> to what they can do to the user domain.

Ok, that makes sense.


> > There would be no transition between user domains. The transitions
> > allowed would be from apache to a user and from a user to apache.
> 
> Which also allows user -> apache -> other-user...
> 
> > The
> > later would happen on exit. As long as your script is still doing
> > stuff, you are in the user domain.
> 
> What do you mean by "exit"?  File close of script file?  That doesn't 
> necessarily stop code running...

Two possibilities here. One being an active transition by apache
(requesting to enter a new domain) at the end of the PHP execution. The
other being a socket close. The later would mean the process remains in
the domain during keepalive. Apache doesn't tear the socket down while
code is still running, since there may still be output being added.



-- 
http://web.lemuria.org/pubkey.html
pub  1024D/D88D35A6 2001-11-14 Tom Vogt <tom@lemuria.org>
     Key fingerprint = 276B B7BB E4D8 FCCE DB8F  F965 310B 811A D88D 35A6

--
You have received this message because you are subscribed to the selinux 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.

  reply	other threads:[~2002-04-19 12:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-18  9:22 policy question Tom
2002-04-18 10:44 ` Russell Coker
2002-04-18 12:25   ` Tom
2002-04-18 14:51     ` Russell Coker
2002-04-18 15:15       ` Tom
2002-04-18 15:32         ` Stephen Smalley
2002-04-18 16:21           ` Tom
2002-04-18 18:28             ` Russell Coker
2002-04-18 20:40               ` Tom
2002-04-18 21:47                 ` Russell Coker
2002-04-19  6:30                   ` Tom
2002-04-18 16:08         ` Russell Coker
2002-04-18 16:32           ` Tom
2002-04-18 18:47             ` Russell Coker
2002-04-18 20:49               ` Tom
2002-04-18 21:44                 ` Russell Coker
2002-04-19  6:14                   ` Tom
2002-04-19  9:10                     ` Russell Coker
2002-04-19 12:27                       ` Tom [this message]
2002-04-19 15:02             ` Stephen Smalley
2002-04-18 15:22 ` Stephen Smalley
  -- strict thread matches above, loose matches on Subject: below --
2002-05-02 10:11 Policy question Reino Wallin

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=20020419142724.A18906@lemuria.org \
    --to=tom@lemuria.org \
    --cc=selinux@tycho.nsa.gov \
    /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.