summaryrefslogtreecommitdiff
path: root/libre/linux-libre-grsec/linux-libre-grsec.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-07-28 10:12:09 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-07-28 10:12:09 -0300
commit051321090b2f7c869cf26fea237dbc37e1922bfc (patch)
tree70fd422b5fff0f7dd5263581eadafa350d33b707 /libre/linux-libre-grsec/linux-libre-grsec.install
parentc032b26d1935f3239fd56bc0cc23fadc35a6c138 (diff)
parentadd67d4739720737bdc39829fad0a2c206d76347 (diff)
downloadabslibre-051321090b2f7c869cf26fea237dbc37e1922bfc.tar.gz
abslibre-051321090b2f7c869cf26fea237dbc37e1922bfc.tar.bz2
abslibre-051321090b2f7c869cf26fea237dbc37e1922bfc.zip
Merge branch 'master' of projects.parabolagnulinux.org:abslibre
Diffstat (limited to 'libre/linux-libre-grsec/linux-libre-grsec.install')
-rw-r--r--libre/linux-libre-grsec/linux-libre-grsec.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/libre/linux-libre-grsec/linux-libre-grsec.install b/libre/linux-libre-grsec/linux-libre-grsec.install
index 637577244..22a798dfa 100644
--- a/libre/linux-libre-grsec/linux-libre-grsec.install
+++ b/libre/linux-libre-grsec/linux-libre-grsec.install
@@ -4,6 +4,17 @@
KERNEL_NAME=-grsec
KERNEL_VERSION=
+_uderef_warning() {
+ if [[ $(uname -m) = x86_64 ]]; then
+ cat <<EOF
+CONFIG_PAX_MEMORY_UDEREF is now enabled on x86_64 and can be disabled by
+passing \`pax_nouderef\` on the kernel line. UDEREF's PCID support on Sandy
+Bridge and later is known to have issues with recent kernel versions and can be
+disabled by passing \`nopcid\` to use the legacy implementation.
+EOF
+ fi
+}
+
_add_groups() {
if getent group tpe-trusted >/dev/null; then
groupmod -g 200 -n tpe tpe-trusted
@@ -54,6 +65,7 @@ post_install () {
fi
_add_groups
+ _uderef_warning
}
post_upgrade() {
@@ -80,6 +92,10 @@ post_upgrade() {
fi
_add_groups
+
+ if [[ $(vercmp $2 3.15.6.201407232200-2) -lt 0 ]]; then
+ _uderef_warning
+ fi
}
post_remove() {