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 5ECB61382C5 for ; Sun, 25 Mar 2018 10:29:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F262BE0844; Sun, 25 Mar 2018 10:29:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CDEC4E0844 for ; Sun, 25 Mar 2018 10:29:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D2298335C5C for ; Sun, 25 Mar 2018 10:29:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A1115276 for ; Sun, 25 Mar 2018 10:29:20 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1521973686.5513c5076d69710712b8df417c5bd91913999bf9.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/, policy/flask/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/flask/access_vectors policy/flask/security_classes policy/modules/system/init.te X-VCS-Directories: policy/modules/system/ policy/flask/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 5513c5076d69710712b8df417c5bd91913999bf9 X-VCS-Branch: master Date: Sun, 25 Mar 2018 10:29:20 +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: 10251582-43b4-46db-b52d-53ae19cf03f8 X-Archives-Hash: ad19d6da62d0a01fece8773e67ebabff commit: 5513c5076d69710712b8df417c5bd91913999bf9 Author: Christian Göttsche googlemail com> AuthorDate: Wed Mar 21 10:57:45 2018 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Mar 25 10:28:06 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=5513c507 add definition of bpf class and systemd perms policy/flask/access_vectors | 9 +++++++++ policy/flask/security_classes | 2 ++ policy/modules/system/init.te | 1 + 3 files changed, 12 insertions(+) diff --git a/policy/flask/access_vectors b/policy/flask/access_vectors index 4f57fb40..0630f012 100644 --- a/policy/flask/access_vectors +++ b/policy/flask/access_vectors @@ -1081,3 +1081,12 @@ inherits socket class smc_socket inherits socket + +class bpf +{ + map_create + map_read + map_write + prog_load + prog_run +} diff --git a/policy/flask/security_classes b/policy/flask/security_classes index 3ff1b72d..2ae34306 100644 --- a/policy/flask/security_classes +++ b/policy/flask/security_classes @@ -190,4 +190,6 @@ class smc_socket class process2 +class bpf + # FLASK diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te index 846ab7b5..94234055 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te @@ -228,6 +228,7 @@ ifdef(`init_systemd',` allow init_t self:netlink_route_socket create_netlink_socket_perms; allow init_t initrc_t:unix_dgram_socket create_socket_perms; allow init_t self:capability2 audit_read; + allow init_t self:bpf { map_create map_read map_write prog_load prog_run }; # for /run/systemd/inaccessible/{chr,blk} allow init_t init_var_run_t:blk_file { create getattr };