From b388f1b0a09b3d569702552fcbf85bc66c88ea7c Mon Sep 17 00:00:00 2001 From: Jae-Won Chung Date: Wed, 29 May 2024 20:14:51 -0400 Subject: [PATCH] Fix `has_sys_admin` --- zeus/device/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeus/device/common.py b/zeus/device/common.py index b5c24a5e..6299bf1d 100644 --- a/zeus/device/common.py +++ b/zeus/device/common.py @@ -19,7 +19,7 @@ def has_sys_admin() -> bool: with open("/proc/self/status") as f: for line in f: if line.startswith("CapEff"): - bitmask = int(line.strip().split("")[1], 16) + bitmask = int(line.strip().split()[1], 16) has = bool(bitmask & (1 << 21)) logger.info( "Read security capabilities from /proc/self/status -- SYS_ADMIN: %s",