All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH v2] Add interfaces to read/write /proc/sys/vm/overcommit_memory
Date: Mon, 14 Dec 2015 10:12:37 -0500	[thread overview]
Message-ID: <566EDC65.5020608@tresys.com> (raw)
In-Reply-To: <1449839016-13799-1-git-send-email-bigon@debian.org>

On 12/11/2015 8:03 AM, Laurent Bigonville wrote:
> From: Laurent Bigonville <bigon@bigon.be>
> 
> ---
>  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 f1130d1..e0f23ec 100644
> --- a/policy/modules/kernel/kernel.if
> +++ b/policy/modules/kernel/kernel.if
> @@ -3323,3 +3323,43 @@ interface(`kernel_unconfined',`
>  	typeattribute $1 kern_unconfined;
>  	kernel_load_module($1)
>  ')
> +
> +########################################
> +## <summary>
> +##	Read virtual memory overcommit sysctl.
> +## </summary>
> +## <param name="domain">
> +##	<summary>
> +##	Domain allowed access.
> +##	</summary>
> +## </param>
> +## <rolecap/>
> +#
> +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;
> +')
> +
> +########################################
> +## <summary>
> +##	Read and write virtual memory overcommit sysctl.
> +## </summary>
> +## <param name="domain">
> +##	<summary>
> +##	Domain allowed access.
> +##	</summary>
> +## </param>
> +## <rolecap/>
> +#
> +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;
> +')

Merged.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

      parent reply	other threads:[~2015-12-14 15:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-11 13:03 [refpolicy] [PATCH v2] Add interfaces to read/write /proc/sys/vm/overcommit_memory Laurent Bigonville
2015-12-11 13:30 ` Laurent Bigonville
2015-12-14 15:12 ` Christopher J. PeBenito [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=566EDC65.5020608@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.