uutils/findutils

Implement `-context`

Open

#375 opened on May 11, 2024

 (3 comments) (2 reactions) (1 assignee)Rust (100 forks)user submission
good first issue

Repository metrics

Stars
 (640 stars)
PR merge metrics
 (Avg merge 2d 10h) (40 merged PRs in 30d)

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