1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/ruby-ffi/ruby-ffi.post-install
2017-10-23 22:14:12 +02:00

12 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