From eb80eb0b76245ceccdafbaf0567166def75d0bbb Mon Sep 17 00:00:00 2001
From: E <79379754+oech3@users.noreply.github.com>
Date: Tue, 21 Oct 2025 06:30:22 +0900
Subject: [PATCH] doc: How to build for SELinux by cargo (#8964)
---
README.md | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 087bf8830..26b1e4d0d 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-
+
@@ -120,6 +120,12 @@ cargo build --release --features windows
cargo build --release --features unix
```
+To build SELinux-specific features, including `chcon` and `runcon`, ensure that `libselinux`
+and `libclang` are installed on your system. Then, run the following command:
+```
+cargo build --release --features unix,feat_selinux
+```
+
If you don't want to build every utility available on your platform into the
final binary, you can also specify which ones you want to build manually. For
example: