commit:     4f564bfd7101c97dd46d5df4359b57b07fdf8c4e
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 15 19:12:10 2015 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Sun Mar 15 19:12:10 2015 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=4f564bfd

tools-hardened/desktop run-base.sh: Disables MPROTECT on gnome-shell for gnome 
variant

 tools-hardened/desktop/run-base.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools-hardened/desktop/run-base.sh 
b/tools-hardened/desktop/run-base.sh
index 7cd525b..f73726b 100755
--- a/tools-hardened/desktop/run-base.sh
+++ b/tools-hardened/desktop/run-base.sh
@@ -50,6 +50,13 @@ update_world() {
        cp -f update.sh "${ROOTFS}"/tmp/
        chroot "${ROOTFS}"/ /tmp/update.sh
        rm -f "${ROOTFS}"/tmp/update.sh
+
+       if [ "${WORLD_BASE}" == "gnome" ];
+       then
+               gnome_shell_loc=`chroot "${ROOTFS}"/ which gnome-shell`
+               chroot "${ROOTFS}"/ paxctl-ng -vm "${gnome_shell_loc}"
+               unset gnome_shell_loc
+       fi
 }
 
 build_kernel() {

Reply via email to