Skip to content

Commit

Permalink
Merge pull request #24 from SethHollandsworth/bugfix/changing_no_new_…
Browse files Browse the repository at this point in the history
…privileges

changing default value of no_new_privileges
  • Loading branch information
SethHollandsworth authored Apr 27, 2023
2 parents aff3a33 + 220357d commit f8b0297
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/confcom/azext_confcom/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ def extract_allow_privilege_escalation(container_json: Any) -> bool:
container_json, config.ACI_FIELD_CONTAINERS_SECURITY_CONTEXT
)

# default to false so that no_new_privileges defaults to true
allow_privilege_escalation = False
# default to false so that no_new_privileges defaults to false
allow_privilege_escalation = True
# assumes that securityContext field is optional
if security_context:

Expand Down
2 changes: 1 addition & 1 deletion src/confcom/azext_confcom/data/internal_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
"allow_elevated": false,
"allow_stdio_access": true,
"working_dir": "/",
"no_new_privileges": true,
"no_new_privileges": false,
"seccomp_profile_sha256": "",
"user": {
"user_idname": {
Expand Down
Loading

0 comments on commit f8b0297

Please sign in to comment.