From 0b3941d9cadf89330d3a667392139b5e5bb25405 Mon Sep 17 00:00:00 2001 From: Josh Gitlin <100315021+certara-jgitlin@users.noreply.github.com> Date: Tue, 13 Aug 2024 07:39:29 -0400 Subject: [PATCH] Fix examples for `selinux_fcontext` (#124) The `selinux_fcontext` documentation examples incorrectly had a resource name of `selinux_policy_fcontext` but the resource name is actually just `selinux_fcontext` (no `policy_`) Signed-off-by: Josh Gitlin --- CHANGELOG.md | 2 ++ documentation/selinux_fcontext.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4695bc..27ace59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ This file is used to list changes made in each version of the selinux cookbook. ## Unreleased +- fix documentation for `selinux_fcontext` + ## 6.2.0 - *2024-07-15* ## 6.1.19 - *2024-07-15* diff --git a/documentation/selinux_fcontext.md b/documentation/selinux_fcontext.md index ab554e2..39573b8 100644 --- a/documentation/selinux_fcontext.md +++ b/documentation/selinux_fcontext.md @@ -36,12 +36,12 @@ Supported file types: ```ruby # Allow http servers (e.g. nginx/apache) to modify moodle files -selinux_policy_fcontext '/var/www/moodle(/.*)?' do +selinux_fcontext '/var/www/moodle(/.*)?' do secontext 'httpd_sys_rw_content_t' end # Adapt a symbolic link -selinux_policy_fcontext '/var/www/symlink_to_webroot' do +selinux_fcontext '/var/www/symlink_to_webroot' do secontext 'httpd_sys_rw_content_t' file_type 'l' end