driver.py: fix aslr_off (#5477)

This commit is contained in:
Geza Lore 2024-09-21 16:37:51 +01:00 committed by GitHub
parent a6e9bce0dd
commit 59b07529b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1509,7 +1509,7 @@ class VlTest:
@property
def aslr_off(self) -> str:
if VlTest._cached_aslr_off is None:
out = VtOs.run_capture('setarch --addr-no-randomize echo OK 2>/dev/null`', check=False)
out = VtOs.run_capture('setarch --addr-no-randomize echo OK 2>/dev/null', check=False)
if re.search(r'OK', out):
VlTest._cached_aslr_off = "setarch --addr-no-randomize "
else: