<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>I just wanna say that you are pretty awesome, Daniel, to further the community in all the ways you do.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>Much thanks!</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>R,</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>-Joe<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">
<div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Daniel J Walsh <dwalsh@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> David Quigley <selinux@davequigley.com> <br><b><span style="font-weight: bold;">Cc:</span></b> selinux@lists.fedoraproject.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, December 14, 2012 7:10 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Cleaning up semanage<br> </font> </div> <br>-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>On 12/13/2012 06:30 PM, David Quigley wrote:<br>> On 12/13/2012 14:13, David Quigley wrote:<br>>> On 12/13/2012 10:41, Konstantin Ryabitsev wrote:<br>>>> On Wed, Dec 12, 2012 at 10:03 PM, Dave Quigley <br>>>> <<a ymailto="mailto:selinux@davequigley.com"
href="mailto:selinux@davequigley.com">selinux@davequigley.com</a>> wrote:<br>>>>> I'm actually going to try to pull together just the parsers without<br>>>>> any backend functionality to see how feasible this is and how it<br>>>>> looks. If we like how it looks and its possible we can move forward<br>>>>> with it. I think that since --ftype is a longarg that argparse might<br>>>>> be able to handle it. If not then some manipulation of things might<br>>>>> be in order (like making an = between --ftype and the -d).<br>>>> <br>>>> Note that --ftype can be also written as -f. So, really, if you want to<br>>>> be fully backwards-compatible, you'll need to correctly parse the <br>>>> following:<br>>>> <br>>>> semanage fcontext -d -f -d /some/dir<br>>>> <br>>>> -- Konstantin Ryabitsev LinuxFoundation.org Montréal,
Québec<br>>> <br>>> <br>>> Which brings up a good question. Is there a test suite we can use to <br>>> ensure that the new interface matches the old interface? A regression <br>>> suite for semanage would be very useful in this case. We could start with<br>>> everything failing and rebuild the interface one at a time untill <br>>> everything passes again. -- selinux mailing list <br>>> <a ymailto="mailto:selinux@lists.fedoraproject.org" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a> <br>>> <a href="https://admin.fedoraproject.org/mailman/listinfo/selinux" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br>> <br>> <br>> I Haven't typed in all of the help info yet but the link is to a pastbin<br>> with the usage information for the semanage login subcommand. I just need<br>> to get it to react that way when there are 0
arguments passed in as well.<br>> Right now it will print this when you type semanage login -h or --help. I<br>> want it to print this on semanage login with no arguments as well.<br>> <br>> <a href="http://pastebin.com/KTtNk0rC" target="_blank">http://pastebin.com/KTtNk0rC</a> -- selinux mailing list <br>> <a ymailto="mailto:selinux@lists.fedoraproject.org" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a> <br>> <a href="https://admin.fedoraproject.org/mailman/listinfo/selinux" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br><br>I love it. This has been on my long list of cleanups for a while, but we<br>never seem to get to it. I looked at this a while ago, and at the time the<br>hardest problem I saw was the fact that semanage without arguments was<br>difficult to do.<br><br> Output local customizations<br>
semanage [ -S store ] -o [ output_file | - ]<br><br> Input local customizations<br> semanage [ -S store ] -i [ input_file | - ]<br><br>argparser does not allow "optional arguments" like this.<br><br>A cleanup of the man page would also be great. The new sepolicy tool suite is<br>using argparse and separate man pages for each subcommand, and I really like it.<br><br>I think bash-completion eliminates the need for semanage-fcontext Since you<br>can do.<br><br>semanage <tab><tab><br>boolean fcontext login node port<br>dontaudit interface module permissive user<br><br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.12 (GNU/Linux)<br>Comment: Using GnuPG with undefined - <a href="http://www.enigmail.net/"
target="_blank">http://www.enigmail.net/</a><br><br>iEYEARECAAYFAlDLFz0ACgkQrlYvE4MpobPeuQCggV+uI4VQRgfxV6ahibLQAaV6<br>FwYAoLr/skXi3auZzRp6uvt64jReTgzV<br>=kd2u<br>-----END PGP SIGNATURE-----<br>--<br>selinux mailing list<br><a ymailto="mailto:selinux@lists.fedoraproject.org" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a><br><a href="https://admin.fedoraproject.org/mailman/listinfo/selinux" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br><br> </div> </div> </blockquote></div> </div></body></html>