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 99C91138CE0 for ; Thu, 11 Jun 2015 16:04:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E0BEE08F1; Thu, 11 Jun 2015 16:04:55 +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 DEF6DE08F1 for ; Thu, 11 Jun 2015 16:04:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F1DD3340D49 for ; Thu, 11 Jun 2015 16:04:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A8E85A36 for ; Thu, 11 Jun 2015 16:04:51 +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: <1434038646.6315a80f5f47dda2fd6427b68db062b838e954c9.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:swift commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/xdg.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 6315a80f5f47dda2fd6427b68db062b838e954c9 X-VCS-Branch: swift Date: Thu, 11 Jun 2015 16:04:51 +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: 5c39ac69-4009-42df-a30d-241073b858a6 X-Archives-Hash: b52d0863ac08674168c0b4e05823563d Message-ID: <20150611160451.5IG_uD6sp3eUuXK6Osq24Q_H1Sjx2j5LHtP42_ACvdc@z> commit: 6315a80f5f47dda2fd6427b68db062b838e954c9 Author: Sven Vermeulen siphos be> AuthorDate: Thu Jun 11 16:04:06 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Thu Jun 11 16:04:06 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=6315a80f Add manage interfaces for XDG documents, pictures and music policy/modules/contrib/xdg.if | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/policy/modules/contrib/xdg.if b/policy/modules/contrib/xdg.if index 2bf63c9..55747d3 100644 --- a/policy/modules/contrib/xdg.if +++ b/policy/modules/contrib/xdg.if @@ -1141,6 +1141,63 @@ interface(`xdg_relabel_all_runtime_home',` ######################################### ## +## Manage documents content +## +## +## +## Domain allowed access +## +## +# +interface(`xdg_manage_documents_home',` + gen_require(` + type xdg_documents_home_t; + ') + + manage_dirs_pattern($1, xdg_documents_home_t, xdg_documents_home_t) + manage_files_pattern($1, xdg_documents_home_t, xdg_documents_home_t) +') + +######################################### +## +## Manage music content +## +## +## +## Domain allowed access +## +## +# +interface(`xdg_manage_music_home',` + gen_require(` + type xdg_music_home_t; + ') + + manage_dirs_pattern($1, xdg_music_home_t, xdg_music_home_t) + manage_files_pattern($1, xdg_music_home_t, xdg_music_home_t) +') + +######################################### +## +## Manage pictures content +## +## +## +## Domain allowed access +## +## +# +interface(`xdg_manage_pictures_home',` + gen_require(` + type xdg_pictures_home_t; + ') + + manage_dirs_pattern($1, xdg_pictures_home_t, xdg_pictures_home_t) + manage_files_pattern($1, xdg_pictures_home_t, xdg_pictures_home_t) +') + +######################################### +## ## Manage video content ## ##