From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-644111-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A4C6C138247 for <garchives@archives.gentoo.org>; Sat, 30 Nov 2013 15:05:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E081E09FB; Sat, 30 Nov 2013 15:05:13 +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 D9B42E09FB for <gentoo-commits@lists.gentoo.org>; Sat, 30 Nov 2013 15:05:12 +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 E529333F3A0 for <gentoo-commits@lists.gentoo.org>; Sat, 30 Nov 2013 15:05:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 91E98E5538 for <gentoo-commits@lists.gentoo.org>; Sat, 30 Nov 2013 15:05:10 +0000 (UTC) From: "Sven Vermeulen" <swift@gentoo.org> 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" <swift@gentoo.org> Message-ID: <1385823692.50a8968a965d48faff55154136dc10c1d4dd2cdc.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/watchdog.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 50a8968a965d48faff55154136dc10c1d4dd2cdc X-VCS-Branch: master Date: Sat, 30 Nov 2013 15:05:10 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: db13b5fe-0115-4636-8509-419623d6c029 X-Archives-Hash: 5b8f668e6d035d8f77d44199e780cb86 commit: 50a8968a965d48faff55154136dc10c1d4dd2cdc Author: Miroslav Grepl <mgrepl <AT> redhat <DOT> com> AuthorDate: Mon Nov 25 13:09:03 2013 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> CommitDate: Sat Nov 30 15:01:32 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=50a8968a Watchdog opens the raw socket --- policy/modules/contrib/watchdog.te | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/watchdog.te b/policy/modules/contrib/watchdog.te index 3548317..b32e643 100644 --- a/policy/modules/contrib/watchdog.te +++ b/policy/modules/contrib/watchdog.te @@ -23,10 +23,11 @@ files_pid_file(watchdog_var_run_t) # Local policy # -allow watchdog_t self:capability { sys_admin net_admin sys_boot ipc_lock sys_pacct sys_nice sys_resource }; +allow watchdog_t self:capability { sys_admin net_admin sys_boot ipc_lock sys_pacct sys_nice sys_resource net_raw }; dontaudit watchdog_t self:capability sys_tty_config; allow watchdog_t self:process { setsched signal_perms }; allow watchdog_t self:fifo_file rw_fifo_file_perms; +allow watchdog_t self:rawip_socket create_socket_perms; allow watchdog_t self:tcp_socket { accept listen }; allow watchdog_t watchdog_log_t:file { append_file_perms create_file_perms setattr_file_perms };