# HG changeset patch # User jfp <jf.pieronne@laposte.net> # Date 1675792616 -3600 # Tue Feb 07 18:56:56 2023 +0100 # Node ID cd2971796cb977854b240a6c22b2cb9275f75e64 # Parent 844e1bd3c32874e46c5c2e21b7957334eea3e2ba Fix usage of updated ovms.starlet routines diff --git a/secrules/rules07.py b/secrules/rules07.py --- a/secrules/rules07.py +++ b/secrules/rules07.py @@ -66,11 +66,11 @@ print('---------', file=fo) id = 0xFFFFFFFF # do a wildcard lookup - context = 0 + context: int = 0 cont = True while cont: try: - s, idn, idv, ida, context = starlet.idtoasc(id, context) + s, idn, idv, ida, context = starlet.idtoasc(id, context) # type: ignore if idv < 0x80000000: continue if idn in ( @@ -86,7 +86,7 @@ if idn.split(b'$')[0] in (b'NET', b'SYS', b'SECSRV', b'VMS'): continue try: - s, holder, attrib = starlet.find_holder(idv) + s, holder, attrib, contxt = starlet.find_holder(idv) except VMSError as e: if e.errno != ssdef.SS__NOSUCHID: raise e @@ -106,7 +106,6 @@ starlet.finish_rdb(context) - @level_rule(2) def rule0703(fo, fmt): """Bad owner for system logical name table