aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-ffi/ruby-ffi.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'community/ruby-ffi/ruby-ffi.post-install')
-rw-r--r--community/ruby-ffi/ruby-ffi.post-install12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/ruby-ffi/ruby-ffi.post-install b/community/ruby-ffi/ruby-ffi.post-install
new file mode 100644
index 0000000000..17917cc4df
--- /dev/null
+++ b/community/ruby-ffi/ruby-ffi.post-install
@@ -0,0 +1,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