[PATCH] find -context option
KaiGai Kohei
kaigai at ak.jp.nec.com
Wed Jun 6 23:48:07 UTC 2007
This patch enables to apply -context matching rule for find applet.
It returns TRUE, if checked entry has same security context
with given one by -context option.
example of usage)
# ./busybox find /etc -context system_u:object_r:shadow_t
/etc/gshadow
/etc/.pwd.lock
/etc/shadow
/etc/gshadow-
/etc/shadow-
It will print any file under /etc, have a security context of
'system_u:object_r:shadow_t'.
Any comment please,
Thanks,
--
KaiGai Kohei <kaigai at kaigai.gr.jp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-find-context.patch
Type: text/x-diff
Size: 3012 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070607/7d5a6efb/attachment-0002.bin
More information about the busybox
mailing list