From: Andrew Haley <aph@redhat.com>
To: libffi-discuss@sourceware.org
Subject: Re: libffi & fork
Date: Fri, 04 May 2012 09:00:00 -0000 [thread overview]
Message-ID: <4FA39A88.1080402@redhat.com> (raw)
In-Reply-To: <CACxje5-9yCr7TyKS69vxNA=hZYSxf9ZYC+tzLy88pSWSo_ORGw@mail.gmail.com>
On 05/02/2012 09:23 PM, Anthony Green wrote:
> On Tue, May 1, 2012 at 3:56 AM, Andrew Haley <aph@redhat.com> wrote:
>>> Hmm.. check out this bug:
>>> https://bugzilla.redhat.com/show_bug.cgi?id=772657
>>>
>>> If our selinux state detection code really is this fragile, maybe we
>>> should link against libselinux and use is_selinux_enabled() as
>>> suggested in comment 4.
>>
>> Would it not make far more sense simply to try to map the region
>> and fall back if that fails?
>
> Wouldn't that generate spurious SELinux warnings/errors? I'd rather
> not have that as expected behaviour.
I suppose it would. We could ask Dan Walsh what we should do.
Detecting the presence of SELinux is incorrect because:
1. SELinux might be configured to allow write/exec regions.
2. SELinux might be configured to allow write/exec regions for
Python.
3. Some non-SELinux mechanism might disallow write/exec regions.
One more alternative would be to probe but only at install time.
That's still wrong because someone could change SELinux settings.
Andrew.
next prev parent reply other threads:[~2012-05-04 9:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAP+vr+PX9gw7Ot6Zc7AN8Gks9P+WHVQg8bX5S7YRnTRyRBHp7A@mail.gmail.com>
2012-04-24 19:41 ` Gaash Hazan
2012-04-25 9:11 ` Andrew Haley
2012-04-25 17:33 ` Gaash Hazan
2012-04-26 10:00 ` Andrew Haley
2012-04-29 15:34 ` Gaash Hazan
2012-04-29 17:58 ` Anthony Green
2012-04-30 8:32 ` Andrew Haley
2012-04-30 19:16 ` Anthony Green
2012-05-01 7:56 ` Andrew Haley
2012-05-02 20:23 ` Anthony Green
2012-05-04 9:00 ` Andrew Haley [this message]
2012-05-05 13:19 ` Anthony Green
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=4FA39A88.1080402@redhat.com \
--to=aph@redhat.com \
--cc=libffi-discuss@sourceware.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).