From: Michael Graffam <michael.graffam@gmail.com>
To: russell@coker.com.au
Cc: selinux@tycho.nsa.gov
Subject: Re: New to SELinux -- any suggestions?
Date: Sun, 29 Oct 2006 00:30:12 -0400 [thread overview]
Message-ID: <1162096212.15530.22.camel@endless> (raw)
In-Reply-To: <200610291432.01272.russell@coker.com.au>
On Sun, 2006-10-29 at 13:31 +1000, Russell Coker wrote:
> On Sunday 29 October 2006 12:41, Michael Graffam <michael.graffam@gmail.com>
> wrote:
> > chcon -t uncontained_execmem_exec_t /usr/bin/sbcl
> > (and /usr/local/bin/lisp)
>
> Incidentally why are you running it from /usr/local/bin? Why don't you use an
> RPM package of it? If there is no RPM available have you considered building
> your own and submitting it to Extras?
As I suspected, a quick Google of 'fedora cmucl' indicates that there
is, indeed, an RPM of CMUCL. I myself run it from /usr/local/bin because
I built it from source, along with some modifications for my particular
application. I've carried this tree along with me for some time, and I'm
kind of sentimental about it now :)
> The problem here is your idea of "removing the permission". Chcon does not
> add or remove permissions, it merely changes the labels of files. What the
> label means is determined by the policy.
>
> So if you want to change a file back to it's default context you can
> use "restorecon", in this case "restorecon -F -R -v /usr/local /usr/bin"
> should do what you want.
Thank you for the help. Can one AND/OR the contexts? Based on the above,
it would seem to me that if an executable violated two points of policy
it wouldn't be possible to 'bless' it -- since I'm sure this isn't the
case, I'm wondering how I might apply multiple contexts. Or am I still
out in left field here?
> Another option is to know what the original context was (maybe by examining
> the file with "ls -Z" before changing it in the first place). In this case I
> know that the bin directories have type bin_t, so the following would work:
> chcon -t bin_t /usr/bin/sbcl /usr/local/bin/lisp
Whooo.. new ls fields too! Man, I feel like a kid again! This is
great! :) Having been using GNU/Linux for so long, I almost forgot how
fun it is to learn new stuff about it!
-M
--
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-10-29 4:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-29 1:41 New to SELinux -- any suggestions? Michael Graffam
2006-10-29 3:31 ` Russell Coker
2006-10-29 4:30 ` Michael Graffam [this message]
2006-10-29 5:01 ` Russell Coker
2006-10-29 6:05 ` Michael Graffam
2006-10-29 6:47 ` Russell Coker
2006-10-29 16:08 ` Joshua Brindle
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=1162096212.15530.22.camel@endless \
--to=michael.graffam@gmail.com \
--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.