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 DD64E138806 for ; Tue, 12 Dec 2017 07:59:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8AAEE0FB9; Tue, 12 Dec 2017 07:59:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 BDD7BE0FB9 for ; Tue, 12 Dec 2017 07:59:17 +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 0509A34096C for ; Tue, 12 Dec 2017 07:59:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 324CFAE8C for ; Tue, 12 Dec 2017 07:59:13 +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: <1513062450.b1a1e693bd27051324b2d7b1f3af2f5ed5576a1b.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/pkcs.fc policy/modules/contrib/pkcs.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: b1a1e693bd27051324b2d7b1f3af2f5ed5576a1b X-VCS-Branch: master Date: Tue, 12 Dec 2017 07:59:13 +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: aed58113-6d73-4d17-9772-6995f91e17f2 X-Archives-Hash: 3d8c0e4aa855023505b7b522f6dc99e7 commit: b1a1e693bd27051324b2d7b1f3af2f5ed5576a1b Author: Eduardo Barretto linux vnet ibm com> AuthorDate: Wed Nov 29 13:29:55 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Dec 12 07:07:30 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b1a1e693 Update pkcs policy to include pkccsslotd.service pkcsslotd.service was running, incorrectly, with default systemd label. Fixed it by creating the pkcs_slotd_unit_file_t type and updating the file context. Signed-off-by: Eduardo Barretto linux.vnet.ibm.com> policy/modules/contrib/pkcs.fc | 2 ++ policy/modules/contrib/pkcs.te | 3 +++ 2 files changed, 5 insertions(+) diff --git a/policy/modules/contrib/pkcs.fc b/policy/modules/contrib/pkcs.fc index 148293a9..9dbb5d54 100644 --- a/policy/modules/contrib/pkcs.fc +++ b/policy/modules/contrib/pkcs.fc @@ -2,6 +2,8 @@ /usr/bin/pkcsslotd -- gen_context(system_u:object_r:pkcs_slotd_exec_t,s0) +/usr/lib/systemd/system/pkcsslotd.service gen_context(system_u:object_r:pkcs_slotd_unit_file_t,s0) + /usr/sbin/pkcsslotd -- gen_context(system_u:object_r:pkcs_slotd_exec_t,s0) /var/lib/opencryptoki(/.*)? gen_context(system_u:object_r:pkcs_slotd_var_lib_t,s0) diff --git a/policy/modules/contrib/pkcs.te b/policy/modules/contrib/pkcs.te index 17b471d6..1ede749f 100644 --- a/policy/modules/contrib/pkcs.te +++ b/policy/modules/contrib/pkcs.te @@ -24,6 +24,9 @@ files_tmp_file(pkcs_slotd_tmp_t) type pkcs_slotd_tmpfs_t; files_tmpfs_file(pkcs_slotd_tmpfs_t) +type pkcs_slotd_unit_file_t; +init_unit_file(pkcs_slotd_unit_file_t) + ######################################## # # Local policy