3 # "suidfix" - fix permissions and sticky bits for the binaries
5 # Takes GNUNET_PREFIX from the environment.
7 # Taken from dangole's LEDE/OpenWRT config.. thx!
9 suid_root_helpers="exit nat-server nat-client transport-bluetooth transport-wlan vpn"
10 libexec="${GNUNET_PREFIX}/lib/gnunet/libexec"
15 chown $3 $1 2>/dev/null && chmod $2 $1
25 for helper in $suid_root_helpers; do
26 chmodown_execbin ${libexec}/gnunet-helper-$helper u+s
28 chmodown_execbin ${libexec}/gnunet-helper-dns 4750 root:gnunetdns
29 chmodown_execbin ${libexec}/gnunet-service-dns 2750 gnunet:gnunetdns