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 DEFA1138D1A for ; Mon, 24 Oct 2016 17:14:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90E4FE0A6C; Mon, 24 Oct 2016 17:14:11 +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 54BCBE0A6C for ; Mon, 24 Oct 2016 17:14:11 +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 74094341342 for ; Mon, 24 Oct 2016 17:14:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8581E24B1 for ; Mon, 24 Oct 2016 17:14:00 +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: <1477329229.b2555d98366d548d5bffc6cf5d07f4314e5815e4.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/userdomain.if policy/modules/system/userdomain.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: b2555d98366d548d5bffc6cf5d07f4314e5815e4 X-VCS-Branch: next Date: Mon, 24 Oct 2016 17:14:00 +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: c0a9f063-03ed-4443-bb01-843979c79a56 X-Archives-Hash: cde68616921190ca2f8f84ae82cd4d5a commit: b2555d98366d548d5bffc6cf5d07f4314e5815e4 Author: Jason Zaman perfinion com> AuthorDate: Sun Oct 9 05:08:41 2016 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Oct 24 17:13:49 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b2555d98 DO NOT MERGE. sync user_cert_t cert_home_t with upstream Need to upstream userdom_user_home_dir_filetrans_user_cert interface policy/modules/system/userdomain.if | 30 ++++++++++++++++++++++++++++++ policy/modules/system/userdomain.te | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if index c4bef2b..e8659da 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -2465,6 +2465,36 @@ interface(`userdom_manage_user_certs',` ######################################## ## +## Automatically use the user_cert_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) +') + +######################################## +## ## Write to user temporary named sockets. ## ## diff --git a/policy/modules/system/userdomain.te b/policy/modules/system/userdomain.te index d147a56..43ac9a2 100644 --- a/policy/modules/system/userdomain.te +++ b/policy/modules/system/userdomain.te @@ -93,7 +93,7 @@ files_associate_tmp(user_home_t) files_poly_parent(user_home_t) files_mountpoint(user_home_t) -type user_cert_t; +type user_cert_t alias cert_home_t; userdom_user_home_content(user_cert_t) type user_devpts_t alias { staff_devpts_t sysadm_devpts_t secadm_devpts_t auditadm_devpts_t unconfined_devpts_t };