aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-installer/anaconda/files/0011-disable-audit.patch
blob: dceed782a3279b18418be015914ebee94813caf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From 078ddfd93bbcb6e74b1c493615561d56e46bc2da Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Tue, 25 Jun 2019 11:23:05 +0800
Subject: [PATCH] disable audit

Upstream-Status: Inappropriate [oe specific]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 configure.ac                            | 3 ---
 pyanaconda/core/configuration/system.py | 2 +-
 pyanaconda/isys/Makefile.am             | 6 ------
 3 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2321b62..dd1ad59 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,9 +77,6 @@ AC_CHECK_FUNCS([getcwd memset mkdir strchr strdup],
                [],
                [ANACONDA_SOFT_FAILURE([Function $ac_func not found.])])
 
-AC_CHECK_LIB([audit], [audit_open], [:],
-             [ANACONDA_SOFT_FAILURE([libaudit not found])])
-
 AM_PATH_PYTHON(python_required_version)
 
 # Check for the python extension paths
diff --git a/pyanaconda/core/configuration/system.py b/pyanaconda/core/configuration/system.py
index 77fae1f..e35da57 100644
--- a/pyanaconda/core/configuration/system.py
+++ b/pyanaconda/core/configuration/system.py
@@ -76,7 +76,7 @@ class SystemSection(Section):
     @property
     def can_audit(self):
         """Can we run the audit daemon?"""
-        return self._is_boot_iso
+        return False
 
     @property
     def can_set_hardware_clock(self):
diff --git a/pyanaconda/isys/Makefile.am b/pyanaconda/isys/Makefile.am
index 3318eb8..227deda 100644
--- a/pyanaconda/isys/Makefile.am
+++ b/pyanaconda/isys/Makefile.am
@@ -28,10 +28,4 @@ _isys_la_LDFLAGS      = -module -avoid-version
 _isys_la_LIBADD       = $(PYTHON3_LIBS)
 _isys_la_SOURCES      = isys.c
 
-auditddir             = $(libexecdir)/$(PACKAGE_NAME)
-auditd_PROGRAMS       = auditd
-auditd_SOURCES        = auditd.c
-auditd_CFLAGS         = $(SELINUX_CFLAGS)
-auditd_LDFLAGS        = -laudit
-
 MAINTAINERCLEANFILES = Makefile.in
-- 
2.7.4