From: Karl MacMillan <kmacmillan@mentalrootkit.com>
To: Joshua Brindle <jbrindle@tresys.com>
Cc: SELinux List <selinux@tycho.nsa.gov>
Subject: Re: [PATCH] allow semodule -i to accept list of modules
Date: Tue, 09 Jan 2007 10:27:08 -0500 [thread overview]
Message-ID: <45A3B44C.4040507@mentalrootkit.com> (raw)
In-Reply-To: <45A3B05E.50707@tresys.com>
Joshua Brindle wrote:
> Karl MacMillan wrote:
>> Joshua Brindle wrote:
>>> Karl MacMillan wrote:
>>>> The following patch allows semodule to handle a list of modules for
>>>> installation (i.e., semodule -i *.pp now works).
>>>>
>>>>
>>> Hrm, while the current syntax isn't ideal I don't think its the best
>>> idea to change it abruptly. maybe you could make -I use the rest of
>>> the arguments or something otherwise this will break any number of
>>> rpm's, portage, the refpolicy makefiles and so on.
>>>
>>
>> I don't see how this could cause breakage as it doesn't change how any
>> currently valid option sequence is processed. Instead, it makes
>> invalid syntax valid (if you look closely at the patch, you can see
>> that I am actually changing a fatal error path - so what I describe is
>> guaranteed to be true).
>>
>> I prefer this approach because I think it is the least surprising. I
>> constantly try the syntax this patch allows only to remember that it
>> doesn't work.
>>
>
> oops, you are right.. do you think having 2 distinct syntaxes for the
> same argument will be less surprising than splitting them up?
>
No. I think that common current usage is 'semodule -i somemodule.pp' and
'semodule -i *.pp' (or some other glob) is very natural. I doubt that
many people actually use 'semodule -i foo.pp -i bar.pp' besides some
scripts.
Karl
--
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-01-09 15:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-08 21:43 [PATCH] allow semodule -i to accept list of modules Karl MacMillan
2007-01-09 4:08 ` Joshua Brindle
2007-01-09 14:34 ` Karl MacMillan
2007-01-09 15:10 ` Joshua Brindle
2007-01-09 15:27 ` Karl MacMillan [this message]
2007-01-09 16:17 ` Joshua Brindle
2007-01-09 20:17 ` Stephen Smalley
2007-01-09 20:43 ` Stephen Smalley
2007-01-09 21:52 ` Karl MacMillan
2007-01-10 13:46 ` Stephen Smalley
2007-01-11 17:36 ` Stephen Smalley
2007-01-09 21:53 ` Joshua Brindle
2007-01-10 13:29 ` Stephen Smalley
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=45A3B44C.4040507@mentalrootkit.com \
--to=kmacmillan@mentalrootkit.com \
--cc=jbrindle@tresys.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.