diff options
author | Kali Kaneko <kali@leap.se> | 2014-06-05 11:08:46 -0500 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-06-05 11:21:58 -0500 |
commit | 15758f43dd53f3b330b9786b531d7d3924f4b106 (patch) | |
tree | ffc965d97ecb3149f7cfe97481ef96c3a96c9252 /pkg | |
parent | 0f1cc128cfa1c6d693639e5a4a70097eec11df1b (diff) |
check for uid == 0
Diffstat (limited to 'pkg')
-rwxr-xr-x | pkg/linux/bitmask-root | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/linux/bitmask-root b/pkg/linux/bitmask-root index 2c423da1..c6685877 100755 --- a/pkg/linux/bitmask-root +++ b/pkg/linux/bitmask-root @@ -838,6 +838,9 @@ def main(): print(VERSION) exit(0) + if os.getuid() != 0: + bail("ERROR: must be run as root") + if command == "openvpn_start": openvpn_start(args) |