From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 11E69138247 for ; Sun, 17 Nov 2013 17:26:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A382E0ABD; Sun, 17 Nov 2013 17:26:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38B3CE0ABD for ; Sun, 17 Nov 2013 17:26:29 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4C99633F12E for ; Sun, 17 Nov 2013 17:26:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E6B7AE5462 for ; Sun, 17 Nov 2013 17:26:26 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1384708814.ab1089520f53a6d7e12b5fe642c4cd4657254ca2.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/logging.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: ab1089520f53a6d7e12b5fe642c4cd4657254ca2 X-VCS-Branch: master Date: Sun, 17 Nov 2013 17:26:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e4c69f9f-1695-4710-87b8-d0236ece7362 X-Archives-Hash: 61546dbfacf04377f7e45274f0a2b853 commit: ab1089520f53a6d7e12b5fe642c4cd4657254ca2 Author: Sven Vermeulen siphos be> AuthorDate: Mon Oct 21 18:52:05 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Nov 17 17:20:14 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=ab108952 Allow capabilities for syslog-ng The syslog-ng logger has (build-optional) support for capabilities. If capabilities support is enabled, running it without setcap/getcap permissions gives the following upon start: * Starting syslog-ng ... syslog-ng: Error setting capabilities, capability management disabled; error='Permission denied' [ ok ] Granting only setcap (initial AVC seen) does not fully help either: * Starting syslog-ng ... Error managing capability set, cap_set_proc returned an error; With setcap and getcap enabled, syslog-ng starts and functions fine. See also https://bugs.gentoo.org/show_bug.cgi?id=488718 Reported-by: Vincent Brillault lerya.net> Signed-off-by: Sven Vermeulen siphos.be> --- policy/modules/system/logging.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te index d7dc379..650cef1 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te @@ -361,7 +361,7 @@ dontaudit syslogd_t self:capability sys_tty_config; # setrlimit for syslog-ng # getsched for syslog-ng # setsched for rsyslog -allow syslogd_t self:process { signal_perms setpgid setrlimit getsched setsched }; +allow syslogd_t self:process { getcap setcap signal_perms setpgid setrlimit getsched setsched }; # receive messages to be logged allow syslogd_t self:unix_dgram_socket create_socket_perms; allow syslogd_t self:unix_stream_socket create_stream_socket_perms;