Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895302 - sys-apps/apparmor-3.1.4: wrong hardcoded paths for loading apparmor functions
Summary: sys-apps/apparmor-3.1.4: wrong hardcoded paths for loading apparmor functions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-02-18 19:40 UTC by Furude Rika
Modified: 2025-02-10 02:39 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge-info.log,6.44 KB, text/x-log)
2023-02-18 19:42 UTC, Furude Rika
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Furude Rika 2023-02-18 19:40:52 UTC
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"
Comment 1 Furude Rika 2023-02-18 19:42:00 UTC
Created attachment 852764 [details]
emerge --info output
Comment 2 Furude Rika 2023-02-18 19:44:44 UTC
The actual path of the **rc.apparmor.functions** is "/usr/libexec/rc.apparmor.functions"
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-14 03:02:21 UTC
Any chance someone could give a patch?
Comment 4 Furude Rika 2024-03-16 20:45:25 UTC
(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.
Comment 5 Patrick McMunn 2025-02-10 02:15:28 UTC
I just encountered this bug on my system. What's the status of getting this fixed?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-10 02:36:48 UTC
Let me have a look. I'm sorry I missed the PR before.
Comment 7 Larry the Git Cow gentoo-dev 2025-02-10 02:39:06 UTC
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(+)