Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[policycoreutils] Change ausearch path to /usr/sbin. Fixes JB45351
The ausearch path is hardcoded in sepolgen audit.py, this patch (0003-Change-ausearch-path-to-usr-sbin.patch) changes the path to /usr/sbin instead of /sbin. Also renamed other patches to have 000* in front and modified the spec accordingly.
- Loading branch information
1 parent
57d24f4
commit de4d249
Showing
4 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,34 @@ | ||
From 58b6aa1843874ebea83f986197bece38c71bd28e Mon Sep 17 00:00:00 2001 | ||
From: Jussi Laakkonen <jussi.laakkonen@jolla.com> | ||
Date: Tue, 2 Apr 2019 11:27:17 +0300 | ||
Subject: [PATCH] Change ausearch path to /usr/sbin | ||
|
||
--- | ||
python/sepolgen/src/sepolgen/audit.py | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/python/sepolgen/src/sepolgen/audit.py b/python/sepolgen/src/sepolgen/audit.py | ||
index 26ce6c92..1240ab4b 100644 | ||
--- a/python/sepolgen/src/sepolgen/audit.py | ||
+++ b/python/sepolgen/src/sepolgen/audit.py | ||
@@ -41,7 +41,7 @@ def get_audit_boot_msgs(): | ||
s = time.localtime(time.time() - off) | ||
bootdate = time.strftime("%x", s) | ||
boottime = time.strftime("%X", s) | ||
- output = subprocess.Popen(["/sbin/ausearch", "-m", "AVC,USER_AVC,MAC_POLICY_LOAD,DAEMON_START,SELINUX_ERR", "-ts", bootdate, boottime], | ||
+ output = subprocess.Popen(["/usr/sbin/ausearch", "-m", "AVC,USER_AVC,MAC_POLICY_LOAD,DAEMON_START,SELINUX_ERR", "-ts", bootdate, boottime], | ||
stdout=subprocess.PIPE).communicate()[0] | ||
if util.PY3: | ||
output = util.decode_input(output) | ||
@@ -56,7 +56,7 @@ def get_audit_msgs(): | ||
string contain all of the audit messages returned by ausearch. | ||
""" | ||
import subprocess | ||
- output = subprocess.Popen(["/sbin/ausearch", "-m", "AVC,USER_AVC,MAC_POLICY_LOAD,DAEMON_START,SELINUX_ERR"], | ||
+ output = subprocess.Popen(["/usr/sbin/ausearch", "-m", "AVC,USER_AVC,MAC_POLICY_LOAD,DAEMON_START,SELINUX_ERR"], | ||
stdout=subprocess.PIPE).communicate()[0] | ||
if util.PY3: | ||
output = util.decode_input(output) | ||
-- | ||
2.20.1 | ||
|
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