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 E98E6138334 for ; Tue, 26 Mar 2019 10:17:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3FD5BE089D; Tue, 26 Mar 2019 10:17:39 +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 12C4AE089D for ; Tue, 26 Mar 2019 10:17:39 +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 95CC1335D0F for ; Tue, 26 Mar 2019 10:17:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4E1B4588 for ; Tue, 26 Mar 2019 10:17:34 +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: <1553508325.52cb621762b5a0e7c4276d1c527623181f2ee454.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/admin/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/admin/usermanage.te X-VCS-Directories: policy/modules/admin/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 52cb621762b5a0e7c4276d1c527623181f2ee454 X-VCS-Branch: master Date: Tue, 26 Mar 2019 10:17: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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 54101c91-5c88-4413-8a38-df2c1dee5083 X-Archives-Hash: 065c1e1a1807bee95ad6f25b5ea230e5 commit: 52cb621762b5a0e7c4276d1c527623181f2ee454 Author: Chris PeBenito ieee org> AuthorDate: Tue Mar 12 00:56:46 2019 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Mar 25 10:05:25 2019 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=52cb6217 usermanage: Move kernel_dgram_send(passwd_t) to systemd block. Signed-off-by: Jason Zaman perfinion.com> policy/modules/admin/usermanage.te | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/policy/modules/admin/usermanage.te b/policy/modules/admin/usermanage.te index 0f874b1a..d8ba89e6 100644 --- a/policy/modules/admin/usermanage.te +++ b/policy/modules/admin/usermanage.te @@ -304,7 +304,6 @@ allow passwd_t self:msg { send receive }; allow passwd_t crack_db_t:dir list_dir_perms; read_files_pattern(passwd_t, crack_db_t, crack_db_t) -kernel_dgram_send(passwd_t) kernel_read_crypto_sysctls(passwd_t) kernel_read_kernel_sysctls(passwd_t) @@ -367,6 +366,11 @@ userdom_read_user_tmp_files(passwd_t) # on user home dir userdom_dontaudit_search_user_home_content(passwd_t) +ifdef(`init_systemd',` + # for journald /dev/log + kernel_dgram_send(passwd_t) +') + optional_policy(` nscd_run(passwd_t, passwd_roles) ')