SELinux-Refpolicy Archive mirror
 help / color / mirror / Atom feed
From: Chris PeBenito <pebenito@ieee.org>
To: Dominick Grift <dac.override@gmail.com>,
	selinux-refpolicy@vger.kernel.org
Subject: Re: [PATCH] domain: unconfined access to bpf
Date: Tue, 3 Sep 2019 19:52:35 -0400	[thread overview]
Message-ID: <96f6991b-d05a-abb6-c8b8-9768e2c5675e@ieee.org> (raw)
In-Reply-To: <20190903165315.1043856-1-dac.override@gmail.com>

On 9/3/19 12:53 PM, Dominick Grift wrote:
> Signed-off-by: Dominick Grift <dac.override@gmail.com>
> ---
>   policy/modules/kernel/domain.te | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/policy/modules/kernel/domain.te b/policy/modules/kernel/domain.te
> index 1a55e3d2..a4c78af9 100644
> --- a/policy/modules/kernel/domain.te
> +++ b/policy/modules/kernel/domain.te
> @@ -152,6 +152,9 @@ optional_policy(`
>   # is handled in the interface as typeattribute cannot
>   # be used on an attribute.
>   
> +# unconfined access to bpf
> +allow unconfined_domain_type domain:bpf { map_create map_read map_write prog_load prog_run };
> +
>   # Use/sendto/connectto sockets created by any domain.
>   allow unconfined_domain_type domain:{ socket_class_set socket key_socket } { create_stream_socket_perms send_msg lock relabelto name_bind recv_msg map sendto recvfrom relabelfrom };
>   allow unconfined_domain_type domain:rawip_socket node_bind;

Merged.

-- 
Chris PeBenito

      reply	other threads:[~2019-09-03 23:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-03 16:53 [PATCH] domain: unconfined access to bpf Dominick Grift
2019-09-03 23:52 ` Chris 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=96f6991b-d05a-abb6-c8b8-9768e2c5675e@ieee.org \
    --to=pebenito@ieee.org \
    --cc=dac.override@gmail.com \
    --cc=selinux-refpolicy@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).