mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
seems new openldap / libldap.so.2 doesnt have EVP_md2 dependency so check for it before trying to remove it
This commit is contained in:
@@ -21,7 +21,9 @@ uname = 'salt'
|
||||
gname = 'salt'
|
||||
|
||||
lib = lief.parse(str(src_lib))
|
||||
sym = next(i for i in lib.imported_symbols if i.name == 'EVP_md2')
|
||||
|
||||
sym = next((i for i in lib.imported_symbols if i.name == 'EVP_md2'), None)
|
||||
|
||||
if sym:
|
||||
# Get the Salt services from DBus.
|
||||
sysbus = dbus.SystemBus()
|
||||
@@ -71,5 +73,7 @@ if sym:
|
||||
if svcs:
|
||||
for sn in svcs:
|
||||
mgr.RestartUnit(sn, 'replace')
|
||||
else:
|
||||
print('No EVP_md2 symbol found in the library. No modifications needed.')
|
||||
|
||||
print('Done.')
|
||||
|
||||
Reference in New Issue
Block a user