apparmor: updating utilities to fresh python #34049
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Apparmor utils are broken(I use 9ab7768 at the moment). For example, this is
aa-audit --help
output:I was trying to fix them, and decided to update apparmor. Found this PR #33222, but it does not fix the tools, just made an update. Apparmor utils have moved to python 3, so I have updated the python version(python 2 is deprecated in apparmor since 2.11) and added separate derivation for
aa-exec
(it was moved tobinutils
directory inside apparmor source tree).Mostly all tools are running successfully now, except two:
aa-notify
probably perl(?) complains aboutERROR: bad programe name '.aa-notify-wrapped'
, I tried to give.aa-notify-wrapped
different name, after that it failed withCannot read '/var/log/kern.log'
. Probably we should have a patch so this tool could work with journald?aa-remove-unknown
fails withline 25: /lib/apparmor/rc.apparmor.functions: No such file or directory
. I have no idea what could be done to fix this.Based my changes on staging because #33222 is based on staging, feel free to contact me for a rebase :)
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)