From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 311E81382C5 for ; Sun, 22 Apr 2018 14:07:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 657D0E0876; Sun, 22 Apr 2018 14:07:48 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2A913E0876 for ; Sun, 22 Apr 2018 14:07:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C50BA335C04 for ; Sun, 22 Apr 2018 14:07:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2A63A27C for ; Sun, 22 Apr 2018 14:07:45 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1524398353.00d9b0fc77f8205e1a43a484bba28acc39f039fa.perfinion@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/xdg.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 00d9b0fc77f8205e1a43a484bba28acc39f039fa X-VCS-Branch: master Date: Sun, 22 Apr 2018 14:07:45 +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: 71a8efed-ca49-4410-a514-c8404f5cfd86 X-Archives-Hash: 4fe010e3c34979abf9104b0a5501b318 commit: 00d9b0fc77f8205e1a43a484bba28acc39f039fa Author: Jason Zaman perfinion com> AuthorDate: Wed Jan 24 04:40:00 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Apr 22 11:59:13 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=00d9b0fc xdg: allow lnk_file for home xdg types (downloads, music, videos, etc) policy/modules/contrib/xdg.if | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/policy/modules/contrib/xdg.if b/policy/modules/contrib/xdg.if index 3188d96f..b48016a0 100644 --- a/policy/modules/contrib/xdg.if +++ b/policy/modules/contrib/xdg.if @@ -785,6 +785,8 @@ interface(`xdg_read_downloads_home',` read_files_pattern($1, xdg_downloads_home_t, xdg_downloads_home_t) allow $1 xdg_downloads_home_t:file map; + list_dirs_pattern($1, xdg_downloads_home_t, xdg_downloads_home_t) + read_lnk_files_pattern($1, xdg_downloads_home_t, xdg_downloads_home_t) userdom_search_user_home_dirs($1) ') @@ -807,6 +809,7 @@ interface(`xdg_read_videos_home',` read_files_pattern($1, xdg_videos_home_t, xdg_videos_home_t) allow $1 xdg_videos_home_t:file map; list_dirs_pattern($1, xdg_videos_home_t, xdg_videos_home_t) + read_lnk_files_pattern($1, xdg_videos_home_t, xdg_videos_home_t) userdom_search_user_home_dirs($1) ') @@ -829,6 +832,7 @@ interface(`xdg_read_pictures_home',` read_files_pattern($1, xdg_pictures_home_t, xdg_pictures_home_t) allow $1 xdg_pictures_home_t:file map; list_dirs_pattern($1, xdg_pictures_home_t, xdg_pictures_home_t) + read_lnk_files_pattern($1, xdg_pictures_home_t, xdg_pictures_home_t) userdom_search_user_home_dirs($1) ') @@ -851,6 +855,7 @@ interface(`xdg_read_music_home',` read_files_pattern($1, xdg_music_home_t, xdg_music_home_t) allow $1 xdg_music_home_t:file map; list_dirs_pattern($1, xdg_music_home_t, xdg_music_home_t) + read_lnk_files_pattern($1, xdg_music_home_t, xdg_music_home_t) userdom_search_user_home_dirs($1) ') @@ -914,6 +919,7 @@ interface(`xdg_manage_downloads_home',` manage_dirs_pattern($1, xdg_downloads_home_t, xdg_downloads_home_t) manage_files_pattern($1, xdg_downloads_home_t, xdg_downloads_home_t) + manage_lnk_files_pattern($1, xdg_downloads_home_t, xdg_downloads_home_t) allow $1 xdg_downloads_home_t:file map; ') @@ -934,6 +940,7 @@ interface(`xdg_manage_documents_home',` 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_lnk_files_pattern($1, xdg_documents_home_t, xdg_documents_home_t) allow $1 xdg_documents_home_t:file map; ') @@ -954,6 +961,7 @@ interface(`xdg_manage_music_home',` 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_lnk_files_pattern($1, xdg_music_home_t, xdg_music_home_t) allow $1 xdg_music_home_t:file map; ') @@ -974,6 +982,7 @@ interface(`xdg_manage_pictures_home',` 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_lnk_files_pattern($1, xdg_pictures_home_t, xdg_pictures_home_t) allow $1 xdg_pictures_home_t:file map; ') @@ -994,5 +1003,6 @@ interface(`xdg_manage_videos_home',` manage_dirs_pattern($1, xdg_videos_home_t, xdg_videos_home_t) manage_files_pattern($1, xdg_videos_home_t, xdg_videos_home_t) + manage_lnk_files_pattern($1, xdg_videos_home_t, xdg_videos_home_t) allow $1 xdg_videos_home_t:file map; ')