]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: linux: check for CAP_NET_ADMIN and config file access before auto_su jd/capability-check
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 28 Aug 2020 08:58:51 +0000 (10:58 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 28 Aug 2020 09:04:21 +0000 (11:04 +0200)
commitf3caeab25418d64309b87a76e4d5f53d011e3f40
treee49f7df5e29ff87b97f6de300bb2f983ae6da3f8
parent7a321ce808ef9cec1f45cce92befcc9e170d3aa9
wg-quick: linux: check for CAP_NET_ADMIN and config file access before auto_su

This way people can use wg-quick in situations where they only have
CAP_NET_ADMIN but not other capabilities, and are operating on writable
files.

Suggested-by: Jonny Fillmore <jonathon.fillmore@netprotect.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/linux.bash