1 |
commit: b25ba8190376bf5649c79c6e0ca909c0107b6623 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 13 02:31:22 2017 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 13 02:31:22 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b25ba819 |
7 |
|
8 |
profiles: force pie, ssp and -pch on hardened/linux/{uclibc,musl} |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
profiles/hardened/linux/musl/use.force | 4 ++++ |
13 |
profiles/hardened/linux/musl/use.mask | 9 +++++++++ |
14 |
profiles/hardened/linux/uclibc/use.force | 8 ++++++++ |
15 |
profiles/hardened/linux/uclibc/use.mask | 15 ++++++++++++++- |
16 |
4 files changed, 35 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/profiles/hardened/linux/musl/use.force b/profiles/hardened/linux/musl/use.force |
19 |
index 79e5575d13c..e2d7cf05ec5 100644 |
20 |
--- a/profiles/hardened/linux/musl/use.force |
21 |
+++ b/profiles/hardened/linux/musl/use.force |
22 |
@@ -2,3 +2,7 @@ |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
elibc_musl |
26 |
+ |
27 |
+# Make sure people don't accidentally turn of ssp/pie in important packages. |
28 |
+pie |
29 |
+ssp |
30 |
|
31 |
diff --git a/profiles/hardened/linux/musl/use.mask b/profiles/hardened/linux/musl/use.mask |
32 |
index 190b01bbbe9..b851b043ca0 100644 |
33 |
--- a/profiles/hardened/linux/musl/use.mask |
34 |
+++ b/profiles/hardened/linux/musl/use.mask |
35 |
@@ -6,3 +6,12 @@ elibc_uclibc |
36 |
elibc_glibc |
37 |
|
38 |
-hardened |
39 |
+ |
40 |
+# precompiled headers are not compat with ASLR. |
41 |
+pch |
42 |
+ |
43 |
+# prelink is masked for hardened |
44 |
+prelink |
45 |
+ |
46 |
+# profile are incompatible when linking with pie |
47 |
+profile |
48 |
|
49 |
diff --git a/profiles/hardened/linux/uclibc/use.force b/profiles/hardened/linux/uclibc/use.force |
50 |
new file mode 100644 |
51 |
index 00000000000..b0ea1237d5a |
52 |
--- /dev/null |
53 |
+++ b/profiles/hardened/linux/uclibc/use.force |
54 |
@@ -0,0 +1,8 @@ |
55 |
+# Copyright 1999-2017 Gentoo Foundation |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+elibc_uclibc |
59 |
+ |
60 |
+# Make sure people don't accidentally turn of ssp/pie in important packages. |
61 |
+pie |
62 |
+ssp |
63 |
|
64 |
diff --git a/profiles/hardened/linux/uclibc/use.mask b/profiles/hardened/linux/uclibc/use.mask |
65 |
index 3d0c2a2a416..174226cb64e 100644 |
66 |
--- a/profiles/hardened/linux/uclibc/use.mask |
67 |
+++ b/profiles/hardened/linux/uclibc/use.mask |
68 |
@@ -1,4 +1,17 @@ |
69 |
-# Copyright 1999-2014 Gentoo Foundation. |
70 |
+# Copyright 1999-2017 Gentoo Foundation |
71 |
# Distributed under the terms of the GNU General Public License v2 |
72 |
|
73 |
+-elibc_uclibc |
74 |
+elibc_musl |
75 |
+elibc_glibc |
76 |
+ |
77 |
-hardened |
78 |
+ |
79 |
+# precompiled headers are not compat with ASLR. |
80 |
+pch |
81 |
+ |
82 |
+# prelink is masked for hardened |
83 |
+prelink |
84 |
+ |
85 |
+# profile are incompatible when linking with pie |
86 |
+profile |