Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion cfe_internal/enterprise/CFE_knowledge.cf
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ bundle agent cfe_internal_permissions

!(policy_server|am_policy_hub)::
"$(sys.statedir)/." -> { "ENT-4773" }
perms => system_owned( "0600" ),
perms => state_dir_perms(),
# Important to recurse across file system boundaries, as databases and or state are commonly on different filesystems
depth_search => recurse_with_base( inf ),
file_select => all;
Expand Down Expand Up @@ -357,3 +357,20 @@ body depth_search cfe_internal_docroot_application_perms
depth => "inf";
exclude_dirs => { "logs" };
}

############################################################################

body perms state_dir_perms
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels redundant to say perms twice in the same line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestions? I am working on another PR now for master first since we decided to unblock this from the release train.

{
mode => "0600";
owners => { "root" };

freebsd|openbsd|netbsd|darwin::
groups => { "wheel" };

aix::
groups => { "system" };

!(freebsd|openbsd|netbsd|darwin|aix)::
groups => { "root" };
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. This wasn't handled before so must work as-is? How are windows perms handled? I can check/test.

}