On 12/13/2012 10:41, Konstantin Ryabitsev wrote:
On Wed, Dec 12, 2012 at 10:03 PM, Dave Quigley
<selinux@xxxxxxxxxxxxxxx> wrote:
I'm actually going to try to pull together just the parsers without
any
backend functionality to see how feasible this is and how it looks.
If we
like how it looks and its possible we can move forward with it. I
think that
since --ftype is a longarg that argparse might be able to handle it.
If not
then some manipulation of things might be in order (like making an =
between
--ftype and the -d).
Note that --ftype can be also written as -f. So, really, if you want
to be fully backwards-compatible, you'll need to correctly parse the
following:
semanage fcontext -d -f -d /some/dir
--
Konstantin Ryabitsev
LinuxFoundation.org
Montréal, Québec
Which brings up a good question. Is there a test suite we can use to
ensure that the new interface matches the old interface? A regression
suite for semanage would be very useful in this case. We could start
with everything failing and rebuild the interface one at a time untill
everything passes again.
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux