diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch b/recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch new file mode 100644 index 0000000..addb480 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0075-policy-modules-system-systemd-systemd-networkd-make-.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From a75847eb2a5a34c18a4fd24383a696d6c077a117 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Thu, 18 Jun 2020 09:59:58 +0800 | ||
4 | Subject: [PATCH] policy/modules/system/systemd: systemd-networkd: make | ||
5 | systemd_networkd_t MLS trusted for reading from files up to its clearance | ||
6 | |||
7 | Fixes: | ||
8 | avc: denied { search } for pid=219 comm="systemd-network" | ||
9 | name="journal" dev="tmpfs" ino=10956 | ||
10 | scontext=system_u:system_r:systemd_networkd_t:s0-s15:c0.c1023 | ||
11 | tcontext=system_u:object_r:syslogd_runtime_t:s15:c0.c1023 tclass=dir | ||
12 | permissive=0 | ||
13 | |||
14 | Upstream-Status: Inappropriate [embedded specific] | ||
15 | |||
16 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
17 | --- | ||
18 | policy/modules/system/systemd.te | 2 ++ | ||
19 | 1 file changed, 2 insertions(+) | ||
20 | |||
21 | diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te | ||
22 | index 6b0f52d15..cfbd9196a 100644 | ||
23 | --- a/policy/modules/system/systemd.te | ||
24 | +++ b/policy/modules/system/systemd.te | ||
25 | @@ -795,6 +795,8 @@ sysnet_read_config(systemd_networkd_t) | ||
26 | |||
27 | systemd_log_parse_environment(systemd_networkd_t) | ||
28 | |||
29 | +mls_file_read_to_clearance(systemd_networkd_t) | ||
30 | + | ||
31 | optional_policy(` | ||
32 | dbus_system_bus_client(systemd_networkd_t) | ||
33 | dbus_connect_system_bus(systemd_networkd_t) | ||
34 | -- | ||
35 | 2.17.1 | ||
36 | |||