Skip to content

Commit 83bbab2

Browse files
authored
Merge pull request #3047 from nickanderson/ENT-13243/master
ENT-13243: Stopped enforcing permissions of public docroot scripts
2 parents 51d932c + d0de911 commit 83bbab2

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

MPF.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,28 @@ application docroot consists of only packaged files.
19541954
* Added `default:mpf_enable_mission_portal_docroot_sync_from_share_gui` in
19551955
CFEngine 3.27.0
19561956

1957+
### Enable permission enforcement for files under `WORKDIR/httpd/htdocs/public/scripts`
1958+
1959+
If the class `default:mpf_enable_mission_portal_public_docroot_scripts_not_dir_perms` is defined then permissions of non-directories will be enforced from policy.
1960+
1961+
```json
1962+
{
1963+
"classes": {
1964+
"default:mpf_enable_mission_portal_public_docroot_scripts_not_dir_perms": {
1965+
"class_expressions": [
1966+
"enterprise_edition.am_policy_hub::"
1967+
]
1968+
}
1969+
}
1970+
}
1971+
```
1972+
1973+
**History:**
1974+
1975+
* Stopped enforcing permissions for `WORKDIR/httpd/htdocs/public/scripts` by default in CFEngine 3.27.0.
1976+
1977+
* Added class `default:mpf_enable_mission_portal_public_docroot_scripts_not_dir_perms` to enable enforcement of permissions for this directory in CFEngine 3.27.0.
1978+
19571979
### Enable permission enforcement for files under WORKDIR/share/GUI
19581980

19591981
The MPF used to actively enforce permissions of files and directories under `$(sys.workdir)/share/GUI`, to re-enable this active permission enforcement define the class `default:mpf_enforce_workdir_share_gui_perms`.

cfe_internal/enterprise/CFE_knowledge.cf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,14 @@ bundle agent cfe_internal_setup_knowledge
141141
create => "true",
142142
perms => mog("0570", "root", $(def.cf_apache_group) );
143143

144-
"$(cfe_internal_hub_vars.public_docroot)/scripts/." -> { "CFE-951" }
144+
"$(cfe_internal_hub_vars.public_docroot)/scripts/." -> { "CFE-951", "ENT-13243" }
145145
comment => "Ensure permissions for $(cfe_internal_hub_vars.public_docroot)/scripts",
146146
handle => "cfe_internal_setup_knowledge_files_doc_root_scripts_not_dir",
147147
create => "true",
148148
file_select => not_dir,
149149
depth_search => recurse_basedir("inf"),
150-
perms => mog("0440", "root", $(def.cf_apache_group) );
150+
perms => mog("0440", "root", $(def.cf_apache_group) ),
151+
if => "mpf_enable_mission_portal_public_docroot_scripts_not_dir_perms";
151152

152153
"$(cfe_internal_hub_vars.docroot)/static/." -> { "CFE-951" }
153154
handle => "cfe_internal_setup_knowledge_files_doc_root_static_dir",

0 commit comments

Comments
 (0)