summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-06-05 11:08:46 -0500
committerKali Kaneko <kali@leap.se>2014-06-05 11:21:58 -0500
commit15758f43dd53f3b330b9786b531d7d3924f4b106 (patch)
treeffc965d97ecb3149f7cfe97481ef96c3a96c9252
parent0f1cc128cfa1c6d693639e5a4a70097eec11df1b (diff)
check for uid == 0
-rwxr-xr-xpkg/linux/bitmask-root3
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)