From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-662455-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 D9B23138247
	for <garchives@archives.gentoo.org>; Thu, 23 Jan 2014 19:54:47 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3D53BE09DA;
	Thu, 23 Jan 2014 19:54:47 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id CDCC4E09DA
	for <gentoo-commits@lists.gentoo.org>; Thu, 23 Jan 2014 19:54:46 +0000 (UTC)
Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id CE5C933EAE6
	for <gentoo-commits@lists.gentoo.org>; Thu, 23 Jan 2014 19:54:45 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by spoonbill.gentoo.org (Postfix) with ESMTP id 6397C183B3
	for <gentoo-commits@lists.gentoo.org>; Thu, 23 Jan 2014 19:54:44 +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: <1390506837.94da5be65c23b53ef62d05e4c9f1efe773e7b8c6.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/mplayer.fc
X-VCS-Directories: policy/modules/contrib/
X-VCS-Committer: swift
X-VCS-Committer-Name: Sven Vermeulen
X-VCS-Revision: 94da5be65c23b53ef62d05e4c9f1efe773e7b8c6
X-VCS-Branch: master
Date: Thu, 23 Jan 2014 19:54:44 +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: a0e5e597-b0d9-48ad-82e0-a406523f06c8
X-Archives-Hash: 057b3c58acac916f754e13545d34e85f

commit:     94da5be65c23b53ef62d05e4c9f1efe773e7b8c6
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Thu Jan 23 19:53:57 2014 +0000
Commit:     Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Thu Jan 23 19:53:57 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=94da5be6

Fix bug #498578 - Support mplayer2 and mpv

---
 policy/modules/contrib/mplayer.fc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/policy/modules/contrib/mplayer.fc b/policy/modules/contrib/mplayer.fc
index 755ebe2..03ace71 100644
--- a/policy/modules/contrib/mplayer.fc
+++ b/policy/modules/contrib/mplayer.fc
@@ -6,3 +6,12 @@ HOME_DIR/\.mplayer(/.*)?	gen_context(system_u:object_r:mplayer_home_t,s0)
 /usr/bin/mencoder	--	gen_context(system_u:object_r:mencoder_exec_t,s0)
 /usr/bin/vlc	--	gen_context(system_u:object_r:mplayer_exec_t,s0)
 /usr/bin/xine	--	gen_context(system_u:object_r:mplayer_exec_t,s0)
+
+ifdef(`distro_gentoo',`
+HOME_DIR/\.mpv(/.*)?	gen_context(system_u:object_r:mplayer_home_t,s0)
+
+/etc/mpv(/.*)?	gen_context(system_u:object_r:mplayer_etc_t,s0)
+
+/usr/bin/mplayer2	--	gen_context(system_u:object_r:mplayer_exec_t,s0)
+/usr/bin/mpv	--	gen_context(system_u:object_r:mplayer_exec_t,s0)
+')