uutils/findutils

Implement `-context`

Open

#375 opened on May 11, 2024

View on GitHub
 (3 comments) (2 reactions) (1 assignee)Rust (577 stars) (80 forks)user submission
good first issue

Description

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.

Contributor guide