aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-ffi/ruby-ffi.post-install
blob: 17917cc4df5482b35f96e9b85594655d0727e6f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if grep -qw PaX /proc/$$/status 2>/dev/null; then
	cat >&2 <<-EOF
	!!
	!! ruby-ffi does not work on kernel with PaX, unless you disable MPROTECT
	!! for ruby binary. If you're aware of security implications, execute:
	!!
	!!     apk add paxmark && paxmark -m /usr/bin/ruby
	!!
	EOF
fi