More ls -Z upgrading. Move TOYBOX_SELINUX and TOYBOX_SMACK support from
authorRob Landley <rob@landley.net>
Mon, 18 May 2015 07:00:43 +0000 (02:00 -0500)
committerRob Landley <rob@landley.net>
Mon, 18 May 2015 07:00:43 +0000 (02:00 -0500)
commitc565b06325960a16ebf44afd8ae73f363775e58d
treebb728c44d52b9e2dfcbcc4bd1ad58d9fc73c78d5
parentf25d4954a786c9f564a5e30e5899c1adf2b6c655
More ls -Z upgrading. Move TOYBOX_SELINUX and TOYBOX_SMACK support from
portability.h to new lib/lsm.h. Update ls.c to use it.

Fix "ls . toys" (two directories when one is . or ..), which was filtering
out the . as something we shouldn't recurse into even though it was explicitly
listed on the command line. For some reason "ls -Z . toys" is still segfaulting
though (but "ls -Z ." isn't), need to figure out why...
lib/lsm.h [new file with mode: 0644]
lib/portability.h
toys/posix/ls.c