<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 &lt;dwalsh@redhat.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> David Quigley &lt;selinux@davequigley.com&gt; <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>&gt; On 12/13/2012 14:13, David Quigley wrote:<br>&gt;&gt; On 12/13/2012 10:41, Konstantin Ryabitsev wrote:<br>&gt;&gt;&gt; On Wed, Dec 12, 2012 at 10:03 PM, Dave Quigley <br>&gt;&gt;&gt; &lt;<a ymailto="mailto:selinux@davequigley.com"
 href="mailto:selinux@davequigley.com">selinux@davequigley.com</a>&gt; wrote:<br>&gt;&gt;&gt;&gt; I'm actually going to try to pull together just the parsers without<br>&gt;&gt;&gt;&gt; any backend functionality to see how feasible this is and how it<br>&gt;&gt;&gt;&gt; looks. If we like how it looks and its possible we can move forward<br>&gt;&gt;&gt;&gt; with it. I think that since --ftype is a longarg that argparse might<br>&gt;&gt;&gt;&gt; be able to handle it. If not then some manipulation of things might<br>&gt;&gt;&gt;&gt; be in order (like making an = between --ftype and the -d).<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; Note that --ftype can be also written as -f. So, really, if you want to<br>&gt;&gt;&gt; be fully backwards-compatible, you'll need to correctly parse the <br>&gt;&gt;&gt; following:<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; semanage fcontext -d -f -d /some/dir<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; -- Konstantin Ryabitsev LinuxFoundation.org Montréal,
 Québec<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; Which brings up a good question. Is there a test suite we can use to <br>&gt;&gt; ensure that the new interface matches the old interface? A regression <br>&gt;&gt; suite for semanage would be very useful in this case. We could start with<br>&gt;&gt; everything failing and rebuild the interface one at a time untill <br>&gt;&gt; everything passes again. -- selinux mailing list <br>&gt;&gt; <a ymailto="mailto:selinux@lists.fedoraproject.org" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a> <br>&gt;&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/selinux" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br>&gt; <br>&gt; <br>&gt; I Haven't typed in all of the help info yet but the link is to a pastbin<br>&gt; with the usage information for the semanage login subcommand. I just need<br>&gt; to get it to react that way when there are 0
 arguments passed in as well.<br>&gt; Right now it will print this when you type semanage login -h or --help. I<br>&gt; want it to print this on semanage login with no arguments as well.<br>&gt; <br>&gt; <a href="http://pastebin.com/KTtNk0rC" target="_blank">http://pastebin.com/KTtNk0rC</a> -- selinux mailing list <br>&gt; <a ymailto="mailto:selinux@lists.fedoraproject.org" href="mailto:selinux@lists.fedoraproject.org">selinux@lists.fedoraproject.org</a> <br>&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/selinux" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/selinux</a><br><br>I love it.&nbsp; This has been on my long list of cleanups for a while, but we<br>never seem to get to it.&nbsp; I looked at this a while ago, and at the time&nbsp; the<br>hardest problem I saw was the fact that semanage without arguments was<br>difficult to do.<br><br>&nbsp; &nbsp; &nbsp;  Output local customizations<br>&nbsp; &nbsp; &nbsp; 
 semanage [ -S store ] -o [ output_file | - ]<br><br>&nbsp; &nbsp; &nbsp;  Input local customizations<br>&nbsp; &nbsp; &nbsp;  semanage [ -S store ] -i [ input_file | - ]<br><br>argparser does not allow "optional arguments"&nbsp; like this.<br><br>A cleanup of the man page would also be great.&nbsp; 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&nbsp; Since you<br>can do.<br><br>semanage &lt;tab&gt;&lt;tab&gt;<br>boolean&nbsp; &nbsp;  fcontext&nbsp; &nbsp; login&nbsp; &nbsp; &nbsp;  node&nbsp; &nbsp; &nbsp; &nbsp; port<br>dontaudit&nbsp;  interface&nbsp;  module&nbsp; &nbsp; &nbsp; permissive&nbsp; 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>