aa-notify exits after 100 seconds in AppArmor 3.0.0
When run with the
aa-notify works fine for 100 seconds and then it exits.
I suspect that the issue arises from the following check on line
if debug_logger.debug_level <= 10 and int(time.time()) - start_time > 100: debug_logger.debug('Debug mode detected: aborting notification emitter after 100 seconds.') sys.exit(0)
together with line
utils/apparmor/common.py which initializes
logging.DEBUG which has the numerical value
A simple solution might be to just remove the check as I'm not quit sure why one would want
aa-notify to exit when run in debug mode in the first place.
Alternatively, one could check against
debug_logger.debugging (initialized to
False) or change the initialization of
debug_logger.debug_level to something else, but I don't know how that would affect other consumers of