Skip to content

Commit

Permalink
Fix examples for selinux_fcontext (#124)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
certara-jgitlin authored Aug 13, 2024
1 parent faff8e5 commit 0b3941d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
4 changes: 2 additions & 2 deletions documentation/selinux_fcontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b3941d

Please sign in to comment.