blob: a5a368bc8e1c7726d3a01d28ce2f1ff8cb54cced (
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
|
From d6573102f922b0e08d49cb5582612dfbaae10600 Mon Sep 17 00:00:00 2001
From: Wenzong Fan <wenzong.fan@windriver.com>
Date: Thu, 25 Feb 2016 04:25:08 -0500
Subject: [PATCH] policy/modules/system/logging: allow auditd_t to write socket
at any level
Allow auditd_t to write init_t:unix_stream_socket at any level.
Fixes:
avc: denied { write } for pid=748 comm="auditd" \
path="socket:[17371]" dev="sockfs" ino=17371 \
scontext=system_u:system_r:auditd_t:s15:c0.c1023 \
tcontext=system_u:system_r:init_t:s0-s15:c0.c1023 \
tclass=unix_stream_socket permissive=1
Upstream-Status: Inappropriate [embedded specific]
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
policy/modules/system/logging.te | 2 ++
1 file changed, 2 insertions(+)
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
index cedcaeb36..1b181f7cc 100644
--- a/policy/modules/system/logging.te
+++ b/policy/modules/system/logging.te
@@ -236,6 +236,8 @@ miscfiles_read_localization(auditd_t)
mls_file_read_all_levels(auditd_t)
mls_file_write_all_levels(auditd_t) # Need to be able to write to /var/run/ directory
+mls_fd_use_all_levels(auditd_t)
+mls_socket_write_all_levels(auditd_t)
seutil_dontaudit_read_config(auditd_t)
--
2.25.1
|