First crack at argparse parser for semanage.

Miroslav Grepl mgrepl at redhat.com
Thu Apr 18 13:21:15 UTC 2013


On 04/18/2013 03:14 PM, David Quigley wrote:
> I posted this yesterday but sent it from the wrong account so its 
> probably in moderation.
>
> Attached is my first crack at the argparse version of semanage. Right 
> now it just parses the command line and spits out the dictionary raw. 
> Please mess around with the command line and make sure that it behaves 
> how you would expect. Some of the names in the dictionary are a bit 
> weird and I'm having trouble getting sensible semantics for fcontext 
> -e but it should be parsing the command lines properly. Also not all 
> of the help text is in place yet. If you want to add some help text 
> either send it to me in an email or send me a patch and I'll apply it 
> to my repo. I still need to commit the latest changes to my github 
> account but once I do you should be able to get the same file from my 
> semanage-argparse repo on github. After we're sure that the parsing 
> works as we'd like and the help messages are sensible to people I'll 
> work on gluing this frontend back onto the seobject class that 
> semanage uses to do that actual policy store manipulations. Someone 
> pointed out that I have some spelling mistakes in there. I will make 
> sure to address them in the next version once I add more help text.
>
> Dave
>
>
> --
> selinux mailing list
> selinux at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux
Hi David,
I I have some patches for you before your latest change. Will send you.

I like it.

Regards,
Miroslav


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/selinux/attachments/20130418/ec5d8605/attachment.html>


More information about the selinux mailing list