All of lore.kernel.org
 help / color / mirror / Atom feed
From: antoine <antoine@nagafix.co.uk>
To: "Lorenzo Hernández García-Hierro" <lorenzo@gnu.org>
Cc: "Christopher J. PeBenito" <cpebenito@tresys.com>,
	Colin Walters <walters@verbum.org>,
	SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Re: ANN: SELinux Reference Policy Release
Date: Wed, 22 Jun 2005 00:25:49 +0100	[thread overview]
Message-ID: <1119396349.9416.50.camel@localhost> (raw)
In-Reply-To: <1118943983.8987.23.camel@localhost.localdomain>

> El jue, 16-06-2005 a las 09:55 -0400, Christopher J. PeBenito escribió:
> > We did look into other available formats for machine parseable comments,
> > and XML is really the best choice if you want the comments to be
> > transformed into many different formats, and easily loaded into other
> > programs; its already well understood, and parsers exist for many
> > programming languages.  Simpler (for humans to read) commenting formats
> > just don't have these options, and mainly target one transformation.
As long as that transformation is the XML one, we are ok. Just an extra
step needed when using the XML data which should not be a problem.

> A modified Gnome-doc (ie. Kernel-doc) might be an interesting option.
> It would be a matter of modifying the lex and other stuff to make it
> parsing our own commenting style within the policy files.
Yes. How about using a more human-readable format *with* the ability to
generate the long-winded XML from it so we get the benefit of both?
I am not just suggesting this for someone else to do, if you think this
is worth doing I would be willing to write the code myself.

Example:
/**
  * @interface selinux_get_enforce_mode
  * @description Allows the caller to get the mode of policy enforcement
  *         (enforcing or permissive mode).
  * @param domain The process type to allow to get the enforcing mode.
  */
Could easily be translated to the XML that was given as example:
########################################
## <interface name="selinux_get_enforce_mode">
##      <description>
##              Allows the caller to get the mode of policy enforcement
##              (enforcing or permissive mode).
##      </description>
##      <parameter name="domain">
##              The process type to allow to get the enforcing mode.
##      </parameter>
## </interface>
#
Now which one do you prefer?
I am not against XML on principle (I have used SGML/XML since 1995) just
trying to keep things human readable as much as possible.
We could also the use the @return notation to show which domains are
created by the macro:
@return mydomain_tmp_t, mydomain_var_t, etc

> We have some Java code lying around that can parse the generated XML
> if you want it. We are also working on an eclipse based policy
> development environment.
Is there any code publicly available?

Antoine


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2005-06-21 23:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15 21:42 ANN: SELinux Reference Policy Release Christopher J. PeBenito
2005-06-15 22:35 ` Colin Walters
2005-06-15 23:25   ` antoine
2005-06-16 13:55     ` Christopher J. PeBenito
2005-06-16 17:46       ` Lorenzo Hernández García-Hierro
2005-06-21 23:25         ` antoine [this message]
2005-06-22  1:47           ` Karl MacMillan
2005-06-22  2:31             ` Lorenzo Hernández García-Hierro
2005-06-23 17:56               ` Karl MacMillan
2005-06-16  2:26   ` Karl MacMillan
2005-06-16 13:48 ` KaiGai Kohei
2005-06-16 15:17   ` Christopher J. PeBenito
2005-06-16 15:46     ` KaiGai Kohei
2005-06-16 15:47     ` Valdis.Kletnieks
2005-06-16 18:04 ` James Carter

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=1119396349.9416.50.camel@localhost \
    --to=antoine@nagafix.co.uk \
    --cc=cpebenito@tresys.com \
    --cc=lorenzo@gnu.org \
    --cc=selinux@tycho.nsa.gov \
    --cc=walters@verbum.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 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.