From: Scott Cain <cain@cshl.org>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: Stephen Smalley <sds@epoch.ncsc.mil>, selinux@tycho.nsa.gov
Subject: Re: Determining if SELinux is installed
Date: Tue, 15 Feb 2005 13:04:15 -0500 [thread overview]
Message-ID: <1108490656.3297.64.camel@localhost.localdomain> (raw)
In-Reply-To: <42122D9E.40806@redhat.com>
On Tue, 2005-02-15 at 12:13 -0500, Daniel J Walsh wrote:
> >
> Why can't you fully path it? Just checking if the /proc/filesystem
> exists is not sufficient, if the user has disabled
> SELinux via /etc/selinux/config instead of selinux=0, I think.
> selinuxenabled also checks to see if a policy has been
> loaded.
>
> I would do the equivalent of
>
> [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled
>
> in perl.
>
>
> Dan
Hi Dan,
I don't particularly like giving the full path to something for exactly
a reason that Stephen gave: it used to be in /usr/bin, now it's
in /usr/sbin, next, some genius will move it to /usr/libexec (or similar
foolishness). If I can't count on it being in the users path, I don't
want it. Otherwise, I'll always have a potential failure point if
selinuxenabled is moved in some other distro.
Also, at the moment, the installer isn't going to do anything tricky.
If it detects that SELinux is installed (or might be), it will die with
a warning message telling the user what to do. To get past that point,
the user will have to pass in a flag on the command line telling the
installer that all is well.
The "what to do" at this point is: make sure the policies are up to
date, and then disable everything for httpd, or run in permissive mode,
or disable it altogether.
Scott
--
------------------------------------------------------------------------
Scott Cain, Ph. D. cain@cshl.org
GMOD Coordinator (http://www.gmod.org/) 216-392-3087
Cold Spring Harbor Laboratory
--
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:[~2005-02-15 18:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-15 16:18 Determining if SELinux is installed Scott Cain
2005-02-15 16:33 ` Stephen Smalley
2005-02-15 16:48 ` Scott Cain
2005-02-15 16:51 ` Stephen Smalley
2005-02-15 17:13 ` Daniel J Walsh
2005-02-15 17:12 ` Stephen Smalley
2005-02-15 18:04 ` Scott Cain [this message]
2005-02-15 18:24 ` Daniel J Walsh
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=1108490656.3297.64.camel@localhost.localdomain \
--to=cain@cshl.org \
--cc=dwalsh@redhat.com \
--cc=sds@epoch.ncsc.mil \
--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.