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: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-02-18 19:40 UTC by Furude Rika
Modified: 2024-03-16 20:45 UTC (History)
5 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.