Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375811 - sys-fs/aufs2: all ebuilds should remove the 'hardened' useflag
Summary: sys-fs/aufs2: all ebuilds should remove the 'hardened' useflag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 375561
  Show dependency tree
 
Reported: 2011-07-20 20:45 UTC by Anthony Basile
Modified: 2011-08-15 19:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Basile gentoo-dev 2011-07-20 20:45:31 UTC
The 'hardened' use flag refers to the hardened tool chain and not to a pax
hardened kernel.  However, all aufs2 ebuilds use the flag as if referring to a
hardened kernel.  This can be corrected by removing the 'hardened' useflag and
unconditionally applying the pax.patch.


Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-07-21 06:12:39 UTC
I don't have any experience nor real knowledge about those things. I really need to rely on your suggestions. Are you really sure applying the pax.patch in all cases is fine?
Comment 2 Anthony Basile gentoo-dev 2011-07-21 10:25:29 UTC
(In reply to comment #1)
> I don't have any experience nor real knowledge about those things. I really
> need to rely on your suggestions. Are you really sure applying the pax.patch in
> all cases is fine?

The other option is to introduce a local use flag like "pax_kernel" instead of "hardened".  Reading the patch, I see the author does have some concerns about future possible problems and we don't want to pollute mainline gentoo with hardened issues.

The reason for concern is that "hardened" means toolchain hardening and not the kernel hardening, which is what pax is.  A user can have a vanilla toolchain (ie USE="-hardened") and still have a pax kernel. We would then be in a situation where aufs2 would need the patch, but not get it.

The worse case scenario is a user who keeps switching back and forth between pax and non-pax kernels.  You could say in the description of the use flag to set it if the user anticipates *ever* running under a pax kernel.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-08-15 19:11:36 UTC
+  15 Aug 2011; Justin Lecher <jlec@gentoo.org> aufs2-0_p20110627.ebuild,
+  aufs2-2.2_p20110815.ebuild, metadata.xml:
+  Changed USE hardened to pax_kernel, #375811
+