public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rafael Goncalves Martins <rafaelmartins@gentoo.org>
To: Gentoo Development <gentoo-dev@lists.gentoo.org>
Subject: Re: [gentoo-dev] Automagic pax-mark
Date: Mon, 8 Apr 2013 10:01:38 -0300	[thread overview]
Message-ID: <CAHgY3qcN4Jp4KhrLq6hk+uFBocCPcdbFgS+TS0MfoK+-hk37Lg@mail.gmail.com> (raw)
In-Reply-To: <5162B82B.3040709@gentoo.org>

On Mon, Apr 8, 2013 at 9:29 AM, Chí-Thanh Christopher Nguyễn
<chithanh@gentoo.org> wrote:
> Mike Gilbert schrieb:
>>> After recent changes in dev-lang/v8 and related ebuilds, the pax-mark call no
>>> longer has a || die. This means that the resulting binaries may have PT_PAX,
>>> XATTR_PAX, both or neither markings depending on kernel configuration,
>>> filesystem and mount options.
>>>
>>> I'd say that is not a good thing. If you agree with me, what could be done
>>> here? Have pax-mark die in the eclass or mandate || die in ebuilds? This
>>> would probably require pax-mark calls to be conditional on pax_kernel USE
>>> flag or similar.
>>>
>> Most ebuilds do not call pax-mark || die. Most people do not run PaX
>> systems, so a failure here is not a major issue.
>
> I agree that not having the pax-mark is not a significant problem
> currently. It could become one when PaX becomes more widespread, but
> that is not likely in the near term.
>
> What I think is bad is the automagic aspect of enabling pax-mark.
>
>
> Best regards,
> Chí-Thanh Christopher Nguyễn
>
>

I had some issues with pax-mark failling to work on openvz containers
stored on partitions mounted without the user_xattr argument and
ebuilds with '|| die', and was going to open bugs to people remove the
'|| die' statements from the ebuilds, when I saw this thread.

Disable xattr isn't a very common use case, but it is still valid. I
don't want to have my builds falling at install phase just because the
binary can't be pax-mark'ed, when I clearly don't care about PaX.

If we don't want the automagic behavior, we should allow users to
explicitly disable it.

--
Rafael Goncalves Martins
Gentoo Linux developer
http://rafaelmartins.eng.br/


      reply	other threads:[~2013-04-08 13:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 21:11 [gentoo-dev] Automagic pax-mark Chí-Thanh Christopher Nguyễn
2013-04-07 21:20 ` Mike Gilbert
2013-04-07 22:08   ` Anthony G. Basile
2013-04-07 23:01     ` Tom Wijsman
2013-04-08  0:06       ` Anthony G. Basile
2013-04-08 14:21     ` Michael Haubenwallner
2013-04-08 17:14       ` Mike Gilbert
2013-04-09 11:30         ` Anthony G. Basile
2013-04-08 12:29   ` Chí-Thanh Christopher Nguyễn
2013-04-08 13:01     ` Rafael Goncalves Martins [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=CAHgY3qcN4Jp4KhrLq6hk+uFBocCPcdbFgS+TS0MfoK+-hk37Lg@mail.gmail.com \
    --to=rafaelmartins@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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