Load apparmor profiles with /lib/apparmor/profile-load Reproducible: Always Actual Results: /lib/apparmor/profile-load runs failed with the error message "line 24: /lib/apparmor/rc.apparmor.functions: No such file or directory"
Created attachment 852764 [details] emerge --info output
The actual path of the **rc.apparmor.functions** is "/usr/libexec/rc.apparmor.functions"
Any chance someone could give a patch?
(In reply to Sam James from comment #3) > Any chance someone could give a patch? I'm honored to submit a patch for this. I've opened a pull request under review. I've tested the patch on profile `default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr` and it seems to work well.
I just encountered this bug on my system. What's the status of getting this fixed?
Let me have a look. I'm sorry I missed the PR before.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06b744e3a820e7b3e8391e2fd06f50493bb01ec0 commit 06b744e3a820e7b3e8391e2fd06f50493bb01ec0 Author: Ao Luo <myloveyuxuan@gmail.com> AuthorDate: 2024-03-12 05:40:07 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-02-10 02:38:37 +0000 sys-apps/apparmor: Fix hardcoded paths for loading apparmor functions Closes: https://bugs.gentoo.org/895302 Signed-off-by: Ao Luo <myloveyuxuan@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35698 Signed-off-by: Sam James <sam@gentoo.org> ...armor-3.1.4.ebuild => apparmor-3.1.4-r2.ebuild} | 1 + .../files/apparmor-3.1.4-fix-hardcoded-path.patch | 34 ++++++++++++++++++++++ 2 files changed, 35 insertions(+)