Skip to content

Commit 29fc2f5

Browse files
committed
Allow running on PaX kernels
`ruby` needs the PaX MPROTECT flag disabled to run on PaX-enabled systems because of JIT. Mark it as such.
1 parent 5201f76 commit 29fc2f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assets/build/install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ cd -
4242
rm -rf /tmp/re2
4343
DEBIAN_FRONTEND=noninteractive apt-get purge -y --auto-remove checkinstall
4444

45+
# PaX-mark ruby
46+
# Applying the mark late here does make the build usable on PaX kernels, but
47+
# still the build itself must be executed on a non-PaX kernel. It's done here
48+
# only for simplicity.
49+
paxctl -Cm `which ruby${RUBY_VERSION}`
4550
# https://en.wikibooks.org/wiki/Grsecurity/Application-specific_Settings#Node.js
4651
paxctl -Cm `which nodejs`
4752

0 commit comments

Comments
 (0)