uutils / findutils

Rust implementation of findutils
MIT License
314 stars 38 forks source link

Implement `-context` #375

Open hanbings opened 6 months ago

hanbings commented 6 months ago

refer: https://www.gnu.org/software/findutils/manual/html_node/find_html/Mode-Bits.html

Test: -context pattern
True if file’s SELinux context matches the pattern pattern. 
The pattern uses shell glob matching.

This predicate is supported only on find versions compiled with 
SELinux support and only when SELinux is enabled.