aports/community/ruby-ffi/ruby-ffi.post-install
2017-10-23 22:14:12 +02:00

13 lines
296 B
Bash

#!/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