commit | 8565668d785d25f6dfd2dd19cece502cedf178b6 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon May 04 12:56:16 2015 -0500 |
committer | Rob Landley <rob@landley.net> | Mon May 04 12:56:16 2015 -0500 |
tree | b38a7f663fe71c27ee1ecd2cdf50cbbb4463b4dc | |
parent | 483cfdabaf6ab282987a0a21d6177c3daa95dc12 [diff] |
Implement SELinux ls -Z support. This patch uses lgetfilecon rather than fgetfilecon because dirtree_parentfd always seems to return -1 in this function. If/when the SMACK code is fixed to work with dirtree_parentfd, I'll send a matching patch for SELinux. In the meantime, this works, and although ls -h is still on my to-do list, I think this patch is sufficient to let us replace toolbox ls with toybox ls.