Skip to content

Commit

Permalink
Fix has_sys_admin
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung committed May 30, 2024
1 parent 32905d4 commit b388f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zeus/device/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b388f1b

Please sign in to comment.