Browse Source

Add CAP_NET_ADMIN capability to ss-redir in postinst script

Fix #1252
pull/1261/head
Roger Shimizu 7 years ago
committed by Max Lv
parent
commit
7467f07984
1 changed files with 1 additions and 1 deletions
  1. 2
      debian/shadowsocks-libev.postinst

2
debian/shadowsocks-libev.postinst

@ -22,7 +22,7 @@ case "$1" in
configure|reconfigure)
pathfind setcap && setcap \
cap_net_bind_service+ep /usr/bin/ss-local \
cap_net_bind_service+ep /usr/bin/ss-redir \
cap_net_bind_service,cap_net_admin+ep /usr/bin/ss-redir \
cap_net_bind_service+ep /usr/bin/ss-server \
cap_net_bind_service+ep /usr/bin/ss-tunnel
if [ ! -f /etc/shadowsocks-libev/config.json ]; then

Loading…
Cancel
Save