From: Vladimir Simonov <Vladimir.Simonov@acronis.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov
Subject: Re: initrc_t has no execmod in targeted policy
Date: Tue, 07 Feb 2006 10:53:55 +0300 [thread overview]
Message-ID: <43E85213.9020605@acronis.com> (raw)
In-Reply-To: <1139257129.31135.158.camel@moss-spartans.epoch.ncsc.mil>
Hi,
Ok. Thank you a lot.
I'll investigate deeper which code triggers
relocation.
Best regards
Vladimir Simonov
Stephen Smalley wrote:
> On Mon, 2006-02-06 at 22:35 +0300, Vladimir Simonov wrote:
>
>>Really dlopen-ed shared libs are quite typical -
>>created with --shared, -fpic, etc. They (and daemon itself)
>>do not use direct mmap/mprotect syscalls (just libc calls).
>>Daemon is called from simple bash init script located in
>>/etc/init.d. And I don't put bash script/demon/libs
>>into initrc_t domain directly. I suspect they are in initrc_t
>>by selinux magic.
>
>
> dlopen doesn't normally require text relocations - that reflects a
> defect in how the DSO was built usually. See the URLs I referenced for
> more info.
>
> Programs stay in the caller's domain unless a domain transition is
> defined. So your daemon stays in initrc_t unless you put it into its
> own domain.
>
>
>>So some question remains:
>>Does selinux (on FC4) permit dlopen call from initrc_t domain?
>>If not, then why?
>
>
> See above. The question is what DSO has text relocations, and why.
>
>
>>I'm afraid even if I put all above staff into separate domain
>>(but start daemon from init scripts) the daemon will be moved
>>to initrc_t domain by selinux. Am I correct?
>
>
> No, if you define a domain for the daemon and label its executable with
> the corresponding entrypoint type, then executing it (directly or via
> the init script) will transition into the daemon's domain when the
> executable is run.
>
--
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.
prev parent reply other threads:[~2006-02-07 7:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-06 7:33 initrc_t has no execmod in targeted policy Vladimir Simonov
2006-02-06 14:11 ` Stephen Smalley
2006-02-06 19:35 ` Vladimir Simonov
2006-02-06 20:18 ` Stephen Smalley
2006-02-07 7:53 ` Vladimir Simonov [this message]
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=43E85213.9020605@acronis.com \
--to=vladimir.simonov@acronis.com \
--cc=sds@tycho.nsa.gov \
--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.