From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 764EA1388C2 for ; Thu, 17 Dec 2015 18:49:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5C1DE0882; Thu, 17 Dec 2015 18:49:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E8911E0874 for ; Thu, 17 Dec 2015 18:49:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D9B1A33FEB1 for ; Thu, 17 Dec 2015 18:49:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD9F3CE9 for ; Thu, 17 Dec 2015 18:49:41 +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: <1450365922.5eb6ba4f89dbcd6b1c5c4e394164aa989c1d140b.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/kernel.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 5eb6ba4f89dbcd6b1c5c4e394164aa989c1d140b X-VCS-Branch: next Date: Thu, 17 Dec 2015 18:49:41 +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: 505bfa60-3138-4f13-aad9-bb76c997a536 X-Archives-Hash: ff5856dd7774c1c4e93461bd8943a265 Message-ID: <20151217184941.oSaaciy9vDNA9yFNKuxLNsqmUJjvtLcApVeetgjv7gI@z> commit: 5eb6ba4f89dbcd6b1c5c4e394164aa989c1d140b Author: Laurent Bigonville bigon be> AuthorDate: Fri Dec 11 13:03:36 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Dec 17 15:25:22 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=5eb6ba4f Add interfaces to read/write /proc/sys/vm/overcommit_memory policy/modules/kernel/kernel.if | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/policy/modules/kernel/kernel.if b/policy/modules/kernel/kernel.if index df42fa3..5f2f78e 100644 --- a/policy/modules/kernel/kernel.if +++ b/policy/modules/kernel/kernel.if @@ -3341,3 +3341,43 @@ interface(`kernel_unconfined',` typeattribute $1 kern_unconfined; kernel_load_module($1) ') + +######################################## +## +## Read virtual memory overcommit sysctl. +## +## +## +## Domain allowed access. +## +## +## +# +interface(`kernel_read_vm_overcommit_sysctl',` + gen_require(` + type sysctl_vm_overcommit_t; + ') + + kernel_search_vm_sysctl($1) + allow $1 sysctl_vm_overcommit_t:file read_file_perms; +') + +######################################## +## +## Read and write virtual memory overcommit sysctl. +## +## +## +## Domain allowed access. +## +## +## +# +interface(`kernel_rw_vm_overcommit_sysctl',` + gen_require(` + type sysctl_vm_overcommit_t; + ') + + kernel_search_vm_sysctl($1) + allow $1 sysctl_vm_overcommit_t:file rw_file_perms; +')