From: Joshua Brindle <method@manicmethod.com>
To: Karl MacMillan <kmacmillan@mentalrootkit.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: [POLICYREP] [RFC/PATCH 2/3] policy package implementation
Date: Tue, 17 Jul 2007 17:01:32 -0400 [thread overview]
Message-ID: <469D2E2C.5020405@manicmethod.com> (raw)
In-Reply-To: <1184705762.10625.14.camel@localhost.localdomain>
Karl MacMillan wrote:
>
>> This first patch I was trying to keep it dead
>> simple by not even requiring a custom packager and instead just using
>> xar CLI. If we want to use more sophisticated things in xar (like
>> per-file attributes) we'd need something custom. Even if we just make a
>> subdocument (which is archive-wide in scope) and add some selinux bits
>> to it like policy name that can still be done with the CLI.
>>
>> xar -xf foo.xar will unpackage it
>>
>
> Ok - then I vote for a custom packaging tool. If nothing else it can
> retain some similarity to the current tool syntax.
>
>
Ok, I'll go ahead and do that for the next version of the patches. We
are basically taking a standard archive format and one-offing it,
fortunately the format supports that kind of thing so we can continue
using all their library infrastructure, which is a huge win over what we
are doing now.
> [..]
>
>
>>>>>
>>>>>
>>>>>
>>>> There is no module_read function right now so thats just a placeholder.
>>>>
>>>>
>>>>
>>> There is if the module is source :)
>>>
>>>
>>>
>> nak.
>>
>
> Why? Last time we discussed it you wanted support for storing additional
> information but the only examples that you had were original filename
> and line number. This is already supported (it has to be for the M4
> processing). So what else? If nothing else, why have an additional
> format?
>
It doesn't seem reasonable to essentially reproduce the m4 preprocessing
statements just to keep a single parser. just look at a preprocessed
module and see how nasty it looks:
#line 156537 "tmp/all_interfaces.conf"
#line 1 "policy/modules/services/sendmail.te"
#line 2
#line 2
module sendmail 1.3.1;
#line 2
#line 2
require {
#line 2
role system_r;
#line 2
That isn't exactly what I had in mind when I said we'd want to store
extra info. We'd also have to add parser support for that mess to the
source parser, non-ideal I think when we can path the data in something
easily readable (by machine) without loads of junk that isn't necessary.
--
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.
next prev parent reply other threads:[~2007-07-17 21:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-17 15:03 [POLICYREP] [RFC/PATCH 0/3] policy package implementation with xar method
2007-07-17 15:03 ` [POLICYREP] [RFC/PATCH 1/3] policy package class method
2007-07-17 15:31 ` Karl MacMillan
2007-07-17 16:23 ` Joshua Brindle
2007-07-17 18:30 ` Karl MacMillan
2007-07-17 20:33 ` Joshua Brindle
2007-07-17 21:01 ` Karl MacMillan
2007-07-17 15:03 ` [POLICYREP] [RFC/PATCH 2/3] policy package implementation method
2007-07-17 15:38 ` Karl MacMillan
2007-07-17 16:40 ` Joshua Brindle
2007-07-17 18:35 ` Karl MacMillan
2007-07-17 20:48 ` Joshua Brindle
2007-07-17 20:48 ` Joshua Brindle
2007-07-17 20:56 ` Karl MacMillan
2007-07-17 21:01 ` Joshua Brindle [this message]
2007-07-17 21:11 ` Karl MacMillan
2007-07-18 12:32 ` Christopher J. PeBenito
2007-07-17 15:03 ` [POLICYREP] [RFC/PATCH 3/3] policy package tests method
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=469D2E2C.5020405@manicmethod.com \
--to=method@manicmethod.com \
--cc=kmacmillan@mentalrootkit.com \
--cc=selinux@tycho.nsa.gov \
/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.