Skip to content

Commit

Permalink
Merge pull request #12604 from roosterfish/fix_privilege_doc
Browse files Browse the repository at this point in the history
Clarify restricted.containers.privilege config option
  • Loading branch information
tomponline authored Jan 8, 2024
2 parents 8f920ac + 466669e commit 97792f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/config_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ When set to `allow`, {config:option}`instance-security:security.nesting` can be
Possible values are `unprivileged`, `isolated`, and `allow`.

- When set to `unpriviliged`, this option prevents setting {config:option}`instance-security:security.privileged` to `true`.
- When set to `isolated`, this option prevents setting {config:option}`instance-security:security.privileged` and {config:option}`instance-security:security.idmap.isolated` to `true`.
- When set to `isolated`, this option prevents setting {config:option}`instance-security:security.privileged` to `true` and forces using a unique idmap per container using {config:option}`instance-security:security.idmap.isolated` set to `true`.
- When set to `allow`, there is no restriction.
```

Expand Down
2 changes: 1 addition & 1 deletion lxd/api_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ func projectValidateConfig(s *state.State, config map[string]string) error {
// Possible values are `unprivileged`, `isolated`, and `allow`.
//
// - When set to `unpriviliged`, this option prevents setting {config:option}`instance-security:security.privileged` to `true`.
// - When set to `isolated`, this option prevents setting {config:option}`instance-security:security.privileged` and {config:option}`instance-security:security.idmap.isolated` to `true`.
// - When set to `isolated`, this option prevents setting {config:option}`instance-security:security.privileged` to `true` and forces using a unique idmap per container using {config:option}`instance-security:security.idmap.isolated` set to `true`.
// - When set to `allow`, there is no restriction.
// ---
// type: string
Expand Down
2 changes: 1 addition & 1 deletion lxd/metadata/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
{
"restricted.containers.privilege": {
"defaultdesc": "`unprivileged`",
"longdesc": "Possible values are `unprivileged`, `isolated`, and `allow`.\n\n- When set to `unpriviliged`, this option prevents setting {config:option}`instance-security:security.privileged` to `true`.\n- When set to `isolated`, this option prevents setting {config:option}`instance-security:security.privileged` and {config:option}`instance-security:security.idmap.isolated` to `true`.\n- When set to `allow`, there is no restriction.",
"longdesc": "Possible values are `unprivileged`, `isolated`, and `allow`.\n\n- When set to `unpriviliged`, this option prevents setting {config:option}`instance-security:security.privileged` to `true`.\n- When set to `isolated`, this option prevents setting {config:option}`instance-security:security.privileged` to `true` and forces using a unique idmap per container using {config:option}`instance-security:security.idmap.isolated` set to `true`.\n- When set to `allow`, there is no restriction.",
"shortdesc": "Which settings for privileged containers to prevent",
"type": "string"
}
Expand Down

0 comments on commit 97792f7

Please sign in to comment.