From: Tetsuji Maverick Rai <tetsuji.maverick.rai@gmail.com>
To: Valdis.Kletnieks@vt.edu
Cc: russell@coker.com.au, selinux@tycho.nsa.gov
Subject: Re: Is SELinux appropriate for my use?
Date: Sat, 20 May 2006 02:34:51 +0900 [thread overview]
Message-ID: <446E01BB.4090600@gmail.com> (raw)
In-Reply-To: <200605190708.k4J78PwJ013208@turing-police.cc.vt.edu>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Valdis.Kletnieks@vt.edu wrote:
> On Fri, 19 May 2006 05:05:17 +0900, Tetsuji Maverick Rai said:
>
>> What if apache's permission is set so that it isn't allowed to execute
>> most commands? But actually most commands (i.e. even cat, ls) can be
>> dangerous, because it will display files containing mysql password. So
>> does SELinux exist to prevent attackers from executing these "usual"
>> programs with http server's permissions(role)? If so, I can understand
>> a bit....actually I understand this is secure.
>
> Remember - the design of SELinux is that *nothing* is permitted, unless
> there's something in the policy that specifically says it's allowed.
> So Apache can't even run /bin/cat unless there is a rule that says something
> in httpd_t context (apache) is allowed to run bin_t binaries (bin_t includes
> most common binaries). However, /bin/ls *isn't* a bin_t, there's a separate
> ls_exec_t for it, so things like ftpd can be restricted to be able to
> run /bin/ls, but not other things in /bin.
>
Thank you for clarifying that. I understand it's very secure in
invoking other commands from PHP. Then how about this situation? PHP
itself has several functions manipulate files and mysql databases (of
course there are much more, but I use mainly mysql). I guess *if* PHP
is hacked, arbitrary mysql functions (and others) are executed freely,
and my mydql database can be damaged. Is it right?
- -Tetsuji
- --
Tetsuji 'Maverick' Rai
Main http://maverick6664.bravehost.com/
Profile:
http://setiweb.ssl.berkeley.edu/beta/view_profile.php?userid=123
pubkey http://mav.atspace.com/tmr_at_gmail.txt
PGP Key ID: 82335CD9
Key fingerprint = 41CA 94B4 2A89 3FF1 5B11 BC37 D597 E667 8233 5CD9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEbgG61ZfmZ4IzXNkRArJtAJ0QmZpWAAIVEquf6yHJh8YYLYdZ4QCdHWMn
nhej+ZdMkjKDXsj+mxiiIlk=
=niUJ
-----END PGP SIGNATURE-----
--
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-05-19 17:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-16 17:33 Is SELinux appropriate for my use? Tetsuji Maverick Rai
2006-05-17 5:58 ` Russell Coker
2006-05-18 20:05 ` Tetsuji Maverick Rai
2006-05-19 7:08 ` Valdis.Kletnieks
2006-05-19 13:54 ` Russell Coker
2006-05-19 18:03 ` Christopher J. PeBenito
2006-05-19 18:08 ` Christopher J. PeBenito
2006-05-21 3:47 ` Valdis.Kletnieks
2006-05-21 7:59 ` Russell Coker
2006-05-19 17:34 ` Tetsuji Maverick Rai [this message]
2006-05-19 9:58 ` Russell Coker
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=446E01BB.4090600@gmail.com \
--to=tetsuji.maverick.rai@gmail.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=russell@coker.com.au \
--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.