From 35c502e3e6b63c7acfca98d99381e8e94a7cda28 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 27 Feb 2026 22:04:49 +0300 Subject: [PATCH] Update SELinux --- docs/linux/selinux.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/linux/selinux.md b/docs/linux/selinux.md index e88730d..017b554 100644 --- a/docs/linux/selinux.md +++ b/docs/linux/selinux.md @@ -20,3 +20,18 @@ setsebool -P httpd_can_network_connect 1 # Allow open file in dir chcon -R -t httpd_sys_content_t dir ``` + +``` +# Set file context +semanage fcontext -a -t bin_t '/usr/bin/ssh' +restorecon -v /usr/bin/ssh + +# View all modificates +semanage -o + +# View fs modificates +semanage fcontext --list -C + +# View port modificates +semanage port --list -C +```