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 A2555138CD6 for ; Mon, 24 Oct 2016 16:57:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EFC2BE0AD7; Mon, 24 Oct 2016 16:56:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D8C50E0AD7 for ; Mon, 24 Oct 2016 16:56:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D5CE834166C for ; Mon, 24 Oct 2016 16:56:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4DD69304 for ; Mon, 24 Oct 2016 16:56:34 +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: <1477326797.64da9c74ec1c09833fc0537479c8d3298f09dd88.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/userdomain.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 64da9c74ec1c09833fc0537479c8d3298f09dd88 X-VCS-Branch: master Date: Mon, 24 Oct 2016 16:56:34 +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: a7d8d11d-4c6d-4968-aedc-a18bdc9afea6 X-Archives-Hash: 7f4fe51e6ef61d7129d27368d4016521 Message-ID: <20161024165634.Ox9uCgxOS8TMz5y7Jz6WKi2pcv3NDIVLbTLTXre5HYo@z> commit: 64da9c74ec1c09833fc0537479c8d3298f09dd88 Author: Sven Vermeulen gentoo org> AuthorDate: Mon Oct 24 16:33:17 2016 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Oct 24 16:33:17 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=64da9c74 Introduce userdom_user_home_dir_filetrans_user_cert The userdom_user_home_dir_filetrans_user_cert interface can be assigned to SELinux policies for domains that create the necessary user directories, such as ~/.pki. This interface will need to be upstreamed later though (we currently need it already because we have end-user domains that other distributions generally keep in the user domain). policy/modules/system/userdomain.if | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if index 1572b51..7c0d914 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -4026,3 +4026,32 @@ interface(`userdom_manage_user_tmp_chr_files',` userdom_search_user_runtime($1) files_search_tmp($1) ') + +######################################## +## +## Automatically use the cert_home_t label for selected resources +## created in a users home directory +## +## +## +## Domain allowed access +## +## +## +## +## Resource type(s) for which the label should be used +## +## +## +## +## Name of the resource that is being created +## +## +# +interface(`userdom_user_home_dir_filetrans_user_cert',` + gen_require(` + type user_cert_t; + ') + + userdom_user_home_dir_filetrans($1, user_cert_t, $2, $3) +')