All of lore.kernel.org
 help / color / mirror / Atom feed
From: dac.override@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] kernel: implement sysctl_vm_overcommit_t for /proc/sys/vm/overcommit_memory
Date: Thu, 10 Dec 2015 17:10:02 +0100	[thread overview]
Message-ID: <20151210161001.GJ22216@x250> (raw)
In-Reply-To: <1449763707-7084-1-git-send-email-dac.override@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Thu, Dec 10, 2015 at 05:08:27PM +0100, Dominick Grift wrote:
> Whoever requires this type first gets to create the interfaces to operate on this object

untested but should work i suppose

> 
> Signed-off-by: Dominick Grift <dac.override@gmail.com>
> ---
>  policy/modules/kernel/kernel.te | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/policy/modules/kernel/kernel.te b/policy/modules/kernel/kernel.te
> index 309f3e0..28f84ff 100644
> --- a/policy/modules/kernel/kernel.te
> +++ b/policy/modules/kernel/kernel.te
> @@ -153,6 +153,9 @@ genfscon proc /sys/net/unix gen_context(system_u:object_r:sysctl_net_unix_t,s0)
>  type sysctl_vm_t, sysctl_type;
>  genfscon proc /sys/vm gen_context(system_u:object_r:sysctl_vm_t,s0)
>  
> +type sysctl_vm_overcommit_t, sysctl_type;
> +genfscon proc /sys/vm/overcommit_memory gen_context(system_u:object_r:sysctl_vm_overcommit_t,s0)
> +
>  # /proc/sys/dev directory and files
>  type sysctl_dev_t, sysctl_type;
>  genfscon proc /sys/dev gen_context(system_u:object_r:sysctl_dev_t,s0)
> -- 
> 2.5.0
> 

- -- 
02DFF788
4D30 903A 1CF3 B756 FB48  1514 3148 83A2 02DF F788
https://sks-keyservers.net/pks/lookup?op=get&search=0x314883A202DFF788
Dominick Grift
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQGcBAEBCgAGBQJWaaPUAAoJENAR6kfG5xmcrJAL/iZ3nItYYvjdTB/qJD2SwKja
E1A5OYdUJv1Ka3b8qn9Xy1YiOm6KbdD8duKWGQ1YjRtBsb7x7aQURSEpgj7ewo1V
96Rw6IxdpDugnxVDdr9rj/sHdNUp2bq8ppBY94M76khLgvhXj5DyDs1xvjOiy4Uy
L+C9vptLxSAYaRs7NBvpSPmBpvvrGmXYT9vsOiA3m1Jo0gT2KwZRsHvFctloK9aA
8JrBWAcg/GPgN/zpaNpomfqyVlAVPDNlW3SYrLT3Hk3fSART9nsUzU96HX+95p7d
PVjcmI28XmyCtPw8JIUB1cMUNxZeQQeftUsYdT0goElMxwaDmWRiE01qteMw/Wi5
ypHTwb8PY5h4DSp+XUmmOWPPCcABW4asbyy7pbVIM7wnRfybLIjgq50/e/VTcoRI
zyi6+Regwdf6rtmiJ+MY8226/fYXEdfvBcAFDKawbRWXze+1U01nRnpN/kzeL8/k
ta4ZnorR+UTWXEoTrNo8pc9gPQz08x0L8fWnrz+jzg==
=gX9x
-----END PGP SIGNATURE-----

  reply	other threads:[~2015-12-10 16:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10 16:08 [refpolicy] [PATCH] kernel: implement sysctl_vm_overcommit_t for /proc/sys/vm/overcommit_memory Dominick Grift
2015-12-10 16:10 ` Dominick Grift [this message]
2015-12-10 20:47 ` Christopher J. PeBenito

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=20151210161001.GJ22216@x250 \
    --to=dac.override@gmail.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.