Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-apps/apparmor: Fix hardcoded paths for loading apparmor functions
Bug: https://bugs.gentoo.org/895302 Signed-off-by: Ao Luo <myloveyuxuan@gmail.com>
- Loading branch information
1 parent
b688088
commit cde70a0
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
sys-apps/apparmor/files/apparmor-3.1.4-fix-hardcoded-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
diff --git a/apparmor.systemd b/apparmor.systemd | ||
index 09d5792..156312a 100644 | ||
--- a/apparmor.systemd | ||
+++ b/apparmor.systemd | ||
@@ -15,7 +15,7 @@ | ||
# along with this program; if not, contact Novell, Inc. | ||
# ---------------------------------------------------------------------- | ||
|
||
-APPARMOR_FUNCTIONS=/lib/apparmor/rc.apparmor.functions | ||
+APPARMOR_FUNCTIONS=/usr/libexec/rc.apparmor.functions | ||
|
||
aa_action() | ||
{ | ||
diff --git a/profile-load b/profile-load | ||
index 7591fb3..0759237 100755 | ||
--- a/profile-load | ||
+++ b/profile-load | ||
@@ -21,7 +21,7 @@ | ||
|
||
[ -z "$1" ] && exit 1 # require a profile name | ||
|
||
-. /lib/apparmor/rc.apparmor.functions | ||
+. /usr/libexec/rc.apparmor.functions | ||
|
||
# do not load in a container | ||
if [ -x /usr/bin/systemd-detect-virt ] && \ | ||
diff --git a/rc.apparmor.slackware b/rc.apparmor.slackware | ||
index 64a527e..5aa12e5 100644 | ||
--- a/rc.apparmor.slackware | ||
+++ b/rc.apparmor.slackware | ||
@@ -18,7 +18,7 @@ | ||
# rc.apparmor by Steve Beattie | ||
# | ||
# /etc/rc.d/rc.apparmor | ||
-APPARMOR_FUNCTIONS=/lib/apparmor/rc.apparmor.functions | ||
+APPARMOR_FUNCTIONS=/usr/libexec/rc.apparmor.functions | ||
|
||
aa_action() { | ||
STRING=$1 |