All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: policycoreutils 1.29.10
Date: Wed, 25 Jan 2006 15:56:21 -0500	[thread overview]
Message-ID: <43D7E5F5.6050809@redhat.com> (raw)
In-Reply-To: <1138213595.13075.42.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Wed, 2006-01-25 at 11:16 -0500, Daniel J Walsh wrote:
>   
>> Here is my latest diff also, mainly  adding translation support to 
>> semanage and cleaning up some of the error reporting.
>>     
>
>   
>> diff --exclude-from=exclude -N -u -r nsapolicycoreutils/semanage/semanage policycoreutils-1.29.10/semanage/semanage
>> --- nsapolicycoreutils/semanage/semanage	2006-01-20 10:37:37.000000000 -0500
>> +++ policycoreutils-1.29.10/semanage/semanage	2006-01-20 15:17:56.000000000 -0500
>> -	-v, --verbose    verbose output\n\
>>     
Yes get rid of all -v and verbose stuff.
>> +	def get_options():
>> +		valid_option={}
>> +		valid_everyone=[ '-a', '--add', '-d', '--delete', '-m', '--modify', '-l', '--list', '-h', '--help', '-n', '--noheading' ]
>> +		valid_option["login"] = []
>> +		valid_option["login"] += valid_everyone + [ '-s', '--seuser', '-r', '--range']
>> +		valid_option["user"] = []
>> +		valid_option["user"] += valid_everyone + [ '-L', '--level', '-r', '--range', '-R', '--roles' ] 
>> +		valid_option["port"] = []
>> +		valid_option["port"] += valid_everyone + [ '-t', '--type', '-r', '--range'] 
>> +		valid_option["port"] = []
>> +		valid_option["port"] += valid_everyone + [ '-t', '--type', '-r', '--range', '-p', '--protocol' ] 
>>     
>
> Cut-and-paste error - multiple definitions for "port"
>
>   
>> +		valid_option["interface"] = []
>> +		valid_option["interface"] += valid_everyone + [ '-t', '--type', '-r', '--range'] 
>> +		valid_option["fcontext"] = []
>> +		valid_option["fcontext"] += valid_everyone + [ '-f', '--ftype', '-s', '--seuser',  '-t', '--type', '-r', '--range'] 
>> +		valid_option["translation"] = []
>> +		valid_option["fcontext"] += valid_everyone + [ '-T', '--trans' ]
>>     
>
> Cut-and-paste error - last one should be for "translation", right?
>
>   
>>  		gopts, cmds = getopt.getopt(args,
>> -					    'adf:lhmnp:P:s:R:L:r:t:vT:',
>> +					    'adf:lhmnp:s:R:L:r:t:vT:',
>>     
>
> -v still listed here.
>
>
>   
>>  			if o == "-R" or o == '--roles':
>> -				roles = roles + " " + a
>> +				roles = a
>>     
>
> Why?  Aggregating multiple role specs seemed nice.  Implementation
> problem?
>   
How do I do a modify?

As a user I might be confused by the semantic
Does
-m -R user_r
add user_r or
replace all existing roles with user_r?

>   
>> +.I                \-R, \-\-role
>> +SELinux Roles.  You must inclose multiple roles within quotes, separate by spaces.
>> +.TP
>>     
>
> Reverts Russell's change, which as he said seems more script-friendly
> and user-friendly (aggregate multiple -R options together).
>
>   
I can be shouted down on this one.

--
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:[~2006-01-25 20:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1138044857.20815.142.camel@moss-spartans.epoch.ncsc.mil>
     [not found] ` <1138193526.20815.309.camel@moss-spartans.epoch.ncsc.mil>
2006-01-25 16:16   ` policycoreutils 1.29.10 Daniel J Walsh
2006-01-25 16:29     ` Stephen Smalley
2006-01-26 17:15       ` Daniel J Walsh
2006-01-25 18:26     ` Stephen Smalley
2006-01-25 20:56       ` Daniel J Walsh [this message]

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=43D7E5F5.6050809@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=sds@tycho.nsa.gov \
    --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.