From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 127B5C433E1 for ; Thu, 30 Jul 2020 11:46:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DCC8D2082E for ; Thu, 30 Jul 2020 11:46:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=defensec.nl header.i=@defensec.nl header.b="KtapVaQI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726774AbgG3LqS (ORCPT ); Thu, 30 Jul 2020 07:46:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgG3LqS (ORCPT ); Thu, 30 Jul 2020 07:46:18 -0400 Received: from agnus.defensec.nl (agnus.defensec.nl [IPv6:2001:985:d55d::711]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 046E4C061794 for ; Thu, 30 Jul 2020 04:46:17 -0700 (PDT) Received: from localhost.localdomain (brutus.lan [IPv6:2001:985:d55d::438]) by agnus.defensec.nl (Postfix) with ESMTPSA id ED0272A0FFC; Thu, 30 Jul 2020 13:46:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 agnus.defensec.nl ED0272A0FFC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=defensec.nl; s=default; t=1596109577; bh=ceRltBgymPTnHve9JyeKwl0aGxcq/xhgL6UzgN9nllI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KtapVaQIAhbhuDCxBzV0yWWlLEp50nZuGNv9ML7WGMq3Q/L3HmU28u2PWZ8vFqtuQ vzU+LoBG8ozZfwPcGXwMv0wIQTDSNUv2dZ5NfcvhwvPW1nTuG4rxu5HdcOiSG0zxO/ NLGZEv5azR2TGOaHUiBrLfVNq3FHsOTR8bBHDspQ= From: Dominick Grift To: selinux@vger.kernel.org Cc: Dominick Grift Subject: [PATCH v2] secilc/docs: document expandtypeattribute Date: Thu, 30 Jul 2020 13:45:55 +0200 Message-Id: <20200730114555.915996-1-dominick.grift@defensec.nl> X-Mailer: git-send-email 2.28.0.rc1 In-Reply-To: <20200730092305.896408-1-dominick.grift@defensec.nl> References: <20200730092305.896408-1-dominick.grift@defensec.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: selinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org This was added for Androids Treble in 2017. I was unsure whether this belongs in type_statements or in conditional_statements. Signed-off-by: Dominick Grift --- v2: overriden is overridden secilc/docs/cil_type_statements.md | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/secilc/docs/cil_type_statements.md b/secilc/docs/cil_type_statements.md index f9dd3a76..24498755 100644 --- a/secilc/docs/cil_type_statements.md +++ b/secilc/docs/cil_type_statements.md @@ -213,6 +213,44 @@ This example is equivalent to `{ domain -kernel.process -ueventd.process -init.p ) ) +expandtypeattribute +---------------- + +Allows expansion compiler defaults for one or more previously declared [`typeattribute`](cil_type_statements.md#typeattribute) identifiers to be overridden. + +**Statement definition:** + + (expandtypeattribute typeattribute_id true|false) + +**Where:** + + ++++ + + + + + + + + + + + + + + +

expandtypeattribute

The expandtypeattribute keyword.

typeattribute_id

One or more previously declared typeattribute identifiers.

true | false

Either true or false.

+ +**Example:** + +This example will use the expandtypeattribute statement to forcibly expand a previously declared `domain` type attribute. + + (expandtypeattribute domain true) + typebounds ---------- -- 2.28.0.rc1