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: Mon, 29 Oct 2012 16:06:17
Message-Id: 1351526285.6fd8388f7404aec7baf1130f7f0220becf82c048.SwifT@gentoo
1 commit: 6fd8388f7404aec7baf1130f7f0220becf82c048
2 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
3 AuthorDate: Mon Oct 29 15:58:05 2012 +0000
4 Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
5 CommitDate: Mon Oct 29 15:58:05 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=6fd8388f
7
8 System logger can write to logfiles
9
10 The system logger, like syslog-ng, should be able to write to log files it has
11 to manage. As this does not include only the var_log_t labeled ones, we allow
12 write (and setattr) rights on the logfile files, and add_entry rights onto the
13 directories that are labeled as logfile too.
14
15 See bug #440128
16
17 ---
18 policy/modules/system/logging.te | 3 +++
19 1 files changed, 3 insertions(+), 0 deletions(-)
20
21 diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
22 index eba1bcc..5588af2 100644
23 --- a/policy/modules/system/logging.te
24 +++ b/policy/modules/system/logging.te
25 @@ -470,6 +470,9 @@ userdom_dontaudit_use_unpriv_user_fds(syslogd_t)
26 userdom_dontaudit_search_user_home_dirs(syslogd_t)
27
28 ifdef(`distro_gentoo',`
29 + allow syslogd_t syslog:dir add_entry_dir_perms;
30 + allow syslogd_t syslog:file { write_file_perms setattr_file_perms };
31 +
32 # default gentoo syslog-ng config appends kernel
33 # and high priority messages to /dev/tty12
34 term_append_unallocated_ttys(syslogd_t)