public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jason Zaman" <perfinion@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: doc/
Date: Thu, 31 Mar 2022 03:31:23 +0000 (UTC)	[thread overview]
Message-ID: <1648694453.4d09b2040f97f8037540432595049e0dac21942e.perfinion@gentoo> (raw)

commit:     4d09b2040f97f8037540432595049e0dac21942e
Author:     Christian Göttsche <cgzones <AT> googlemail <DOT> com>
AuthorDate: Tue Mar 22 17:05:40 2022 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Thu Mar 31 02:40:53 2022 +0000
URL:        https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=4d09b204

policy.dtd: more strict bool/tunable and infoflow validation

Booleans and tunables must have a value of true or false and infoflow
needs to be of type read, write, none or both with a weight of 1 to 10.

Signed-off-by: Christian Göttsche <cgzones <AT> googlemail.com>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 doc/policy.dtd | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/policy.dtd b/doc/policy.dtd
index 52829854..c36cb846 100644
--- a/doc/policy.dtd
+++ b/doc/policy.dtd
@@ -14,11 +14,11 @@
 <!ELEMENT tunable (desc)>
 <!ATTLIST tunable
       name CDATA #REQUIRED
-      dftval CDATA #REQUIRED>
+      dftval (true|false) #REQUIRED>
 <!ELEMENT bool (desc)>
 <!ATTLIST bool
       name CDATA #REQUIRED
-      dftval CDATA #REQUIRED>
+      dftval (true|false) #REQUIRED>
 <!ELEMENT summary (#PCDATA)>
 <!ELEMENT interface (summary,desc?,param+,infoflow?,(rolebase|rolecap)?)>
 <!ATTLIST interface name CDATA #REQUIRED lineno CDATA #REQUIRED>
@@ -32,8 +32,8 @@
       unused (true|false) "false">
 <!ELEMENT infoflow EMPTY>
 <!ATTLIST infoflow
-      type CDATA #REQUIRED
-      weight CDATA #IMPLIED>
+      type (read|write|none|both) #REQUIRED
+      weight (1|2|3|4|5|6|7|8|9|10) #IMPLIED>
 <!ELEMENT rolebase EMPTY>
 <!ELEMENT rolecap EMPTY>
 


             reply	other threads:[~2022-03-31  3:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31  3:31 Jason Zaman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-20 22:05 [gentoo-commits] proj/hardened-refpolicy:master commit in: doc/ Kenton Groombridge
2023-03-31 23:07 Kenton Groombridge
2014-08-10 13:59 Sven Vermeulen
2013-04-19 18:01 Sven Vermeulen

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=1648694453.4d09b2040f97f8037540432595049e0dac21942e.perfinion@gentoo \
    --to=perfinion@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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