summaryrefslogtreecommitdiff
path: root/kernels/pax-flags-libre/pax-flags-libre.sh
blob: 612f6cf93381815ae3ce650119b216f34d99a1f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

ruby=$(which ruby)

[ -z $PAX_FLAGS_SUDO ] && sudo='' || sudo='sudo'

[ "$(paxctl -v $ruby 2>/dev/null)" ] || {
	$sudo paxctl -cm $ruby
}

$sudo systemctl --system daemon-reload

$sudo linux-pax-flags.rb $@