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 CF7CD139085 for ; Sun, 1 Jan 2017 16:37:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CA6CE0E96; Sun, 1 Jan 2017 16:36:59 +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 39E58E0E97 for ; Sun, 1 Jan 2017 16:36:54 +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 35251341016 for ; Sun, 1 Jan 2017 16:36:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 632B925CE for ; Sun, 1 Jan 2017 16:36:50 +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: <1483287988.1cd6b4275bef63da2c4c37ad68574230fad38a3f.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/, policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/files.if policy/modules/system/modutils.te X-VCS-Directories: policy/modules/system/ policy/modules/kernel/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 1cd6b4275bef63da2c4c37ad68574230fad38a3f X-VCS-Branch: master Date: Sun, 1 Jan 2017 16:36:50 +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: 7b60ef8b-2eab-4af7-81ed-87c30d48a10d X-Archives-Hash: 48d14a9a20943a91e940eaa9d01d255f commit: 1cd6b4275bef63da2c4c37ad68574230fad38a3f Author: Guido Trentalancia trentalancia net> AuthorDate: Fri Dec 23 01:15:14 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Jan 1 16:26:28 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=1cd6b427 modutils: update to run in confined mode Update the modutils module so that it can run in confined mode instead of unconfined mode. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/kernel/files.if | 1 + policy/modules/system/modutils.te | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index 82901bc..3fc0487 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -4102,6 +4102,7 @@ interface(`files_manage_kernel_modules',` type modules_object_t; ') + allow $1 modules_object_t:dir rw_dir_perms; manage_files_pattern($1, modules_object_t, modules_object_t) ') diff --git a/policy/modules/system/modutils.te b/policy/modules/system/modutils.te index 2448f06..1a138a8 100644 --- a/policy/modules/system/modutils.te +++ b/policy/modules/system/modutils.te @@ -89,8 +89,8 @@ files_read_usr_files(kmod_t) files_exec_etc_files(kmod_t) # for nscd: files_dontaudit_search_pids(kmod_t) -# for locking: (cjp: ????) -files_write_kernel_modules(kmod_t) +# to manage modules.dep +files_manage_kernel_modules(kmod_t) fs_getattr_xattr_fs(kmod_t) fs_dontaudit_use_tmpfs_chr_dev(kmod_t) @@ -166,12 +166,6 @@ optional_policy(` ') optional_policy(` - unconfined_domain(kmod_t) - unconfined_dontaudit_rw_pipes(kmod_t) - unconfined_domtrans_to(kmod_t, kmod_exec_t) -') - -optional_policy(` # cjp: why is this needed: dev_rw_xserver_misc(kmod_t) 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 8E276139085 for ; Sun, 1 Jan 2017 16:38:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A460E0EB7; Sun, 1 Jan 2017 16:37: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-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68BD2E0EB7 for ; Sun, 1 Jan 2017 16:37:43 +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 8A467341142 for ; Sun, 1 Jan 2017 16:37:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86C4525CA for ; Sun, 1 Jan 2017 16:37:39 +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: <1483287988.1cd6b4275bef63da2c4c37ad68574230fad38a3f.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/kernel/, policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/files.if policy/modules/system/modutils.te X-VCS-Directories: policy/modules/kernel/ policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 1cd6b4275bef63da2c4c37ad68574230fad38a3f X-VCS-Branch: next Date: Sun, 1 Jan 2017 16:37:39 +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: bbeb2ebc-325f-44d4-bedb-35c8b6f1bba6 X-Archives-Hash: 4f27cd7a9e515f8021f04d4ec267b5fb Message-ID: <20170101163739.9qkElDT8tCctGuTRJjYtJ7d-cA7wgYRP_ZyyCvdkZb8@z> commit: 1cd6b4275bef63da2c4c37ad68574230fad38a3f Author: Guido Trentalancia trentalancia net> AuthorDate: Fri Dec 23 01:15:14 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Jan 1 16:26:28 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=1cd6b427 modutils: update to run in confined mode Update the modutils module so that it can run in confined mode instead of unconfined mode. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/kernel/files.if | 1 + policy/modules/system/modutils.te | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index 82901bc..3fc0487 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -4102,6 +4102,7 @@ interface(`files_manage_kernel_modules',` type modules_object_t; ') + allow $1 modules_object_t:dir rw_dir_perms; manage_files_pattern($1, modules_object_t, modules_object_t) ') diff --git a/policy/modules/system/modutils.te b/policy/modules/system/modutils.te index 2448f06..1a138a8 100644 --- a/policy/modules/system/modutils.te +++ b/policy/modules/system/modutils.te @@ -89,8 +89,8 @@ files_read_usr_files(kmod_t) files_exec_etc_files(kmod_t) # for nscd: files_dontaudit_search_pids(kmod_t) -# for locking: (cjp: ????) -files_write_kernel_modules(kmod_t) +# to manage modules.dep +files_manage_kernel_modules(kmod_t) fs_getattr_xattr_fs(kmod_t) fs_dontaudit_use_tmpfs_chr_dev(kmod_t) @@ -166,12 +166,6 @@ optional_policy(` ') optional_policy(` - unconfined_domain(kmod_t) - unconfined_dontaudit_rw_pipes(kmod_t) - unconfined_domtrans_to(kmod_t, kmod_exec_t) -') - -optional_policy(` # cjp: why is this needed: dev_rw_xserver_misc(kmod_t)