So I dug into this with pydb and figured out what's going on. utils/apparmor/tools.py lines 79 and 81 need to be changed to fatal_error(message). I tried both fatal_error and also sys.exit(1) and aa-complain seems to ignore it and still exit 0. I'm not exactly sure why though. It seems there's a custom sys exit handler in place that is messing with it. Does anyone know what I should change it to? I'll put in the change and the merge request :)
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1564625 Title: aa-complain exits 0 when path not found To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1564625/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs