Gentoo Archives: gentoo-commits

From: Sven Vermeulen <sven.vermeulen@××××××.be>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/
Date: Wed, 29 Aug 2012 18:48:23
Message-Id: 1346264369.46fe38968ddff1b34e3c52fccff4615d046200a9.SwifT@gentoo
1 commit: 46fe38968ddff1b34e3c52fccff4615d046200a9
2 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
3 AuthorDate: Wed Aug 29 18:19:29 2012 +0000
4 Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
5 CommitDate: Wed Aug 29 18:19:29 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=46fe3896
7
8 Have syslog-ng.persist label survive relabeling
9
10 Syslog-ng already holds a filetrans when it writes files in the var_lib_t
11 resources, causing the files to be labeled syslogd_var_lib_t.
12
13 One of these files is the /var/lib/misc/syslog-ng.persist file. However, because
14 no file context was defined for this file, a system-wide relabeling caused it to
15 be turned back into var_lib_t.
16
17 This fixes the context back to syslogd_var_lib_t.
18
19 ---
20 policy/modules/system/logging.fc | 2 +-
21 1 files changed, 1 insertions(+), 1 deletions(-)
22
23 diff --git a/policy/modules/system/logging.fc b/policy/modules/system/logging.fc
24 index f73a25b..6add40e 100644
25 --- a/policy/modules/system/logging.fc
26 +++ b/policy/modules/system/logging.fc
27 @@ -24,7 +24,7 @@
28 /usr/sbin/syslog-ng -- gen_context(system_u:object_r:syslogd_exec_t,s0)
29 /usr/sbin/syslogd -- gen_context(system_u:object_r:syslogd_exec_t,s0)
30
31 -/var/lib/misc/syslog-ng\.persist- -- gen_context(system_u:object_r:syslogd_var_lib_t,s0)
32 +/var/lib/misc/syslog-ng\.persist-? -- gen_context(system_u:object_r:syslogd_var_lib_t,s0)
33 /var/lib/syslog-ng(/.*)? gen_context(system_u:object_r:syslogd_var_lib_t,s0)
34 /var/lib/r?syslog(/.*)? gen_context(system_u:object_r:syslogd_var_lib_t,s0)
35 /var/lib/syslog-ng.persist -- gen_context(system_u:object_r:syslogd_var_lib_t,s0)