mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(endpoints): set sysctl setting for new endpoints (#5028)
This commit is contained in:
parent
8bfa5132cd
commit
9ec1f2ed6d
2 changed files with 3 additions and 0 deletions
|
@ -240,6 +240,7 @@ func createTLSSecuredEndpoint(flags *portainer.CLIFlags, dataStore portainer.Dat
|
||||||
AllowVolumeBrowserForRegularUsers: false,
|
AllowVolumeBrowserForRegularUsers: false,
|
||||||
EnableHostManagementFeatures: false,
|
EnableHostManagementFeatures: false,
|
||||||
|
|
||||||
|
AllowSysctlSettingForRegularUsers: true,
|
||||||
AllowBindMountsForRegularUsers: true,
|
AllowBindMountsForRegularUsers: true,
|
||||||
AllowPrivilegedModeForRegularUsers: true,
|
AllowPrivilegedModeForRegularUsers: true,
|
||||||
AllowHostNamespaceForRegularUsers: true,
|
AllowHostNamespaceForRegularUsers: true,
|
||||||
|
@ -301,6 +302,7 @@ func createUnsecuredEndpoint(endpointURL string, dataStore portainer.DataStore,
|
||||||
AllowVolumeBrowserForRegularUsers: false,
|
AllowVolumeBrowserForRegularUsers: false,
|
||||||
EnableHostManagementFeatures: false,
|
EnableHostManagementFeatures: false,
|
||||||
|
|
||||||
|
AllowSysctlSettingForRegularUsers: true,
|
||||||
AllowBindMountsForRegularUsers: true,
|
AllowBindMountsForRegularUsers: true,
|
||||||
AllowPrivilegedModeForRegularUsers: true,
|
AllowPrivilegedModeForRegularUsers: true,
|
||||||
AllowHostNamespaceForRegularUsers: true,
|
AllowHostNamespaceForRegularUsers: true,
|
||||||
|
|
|
@ -471,6 +471,7 @@ func (handler *Handler) saveEndpointAndUpdateAuthorizations(endpoint *portainer.
|
||||||
AllowVolumeBrowserForRegularUsers: false,
|
AllowVolumeBrowserForRegularUsers: false,
|
||||||
EnableHostManagementFeatures: false,
|
EnableHostManagementFeatures: false,
|
||||||
|
|
||||||
|
AllowSysctlSettingForRegularUsers: true,
|
||||||
AllowBindMountsForRegularUsers: true,
|
AllowBindMountsForRegularUsers: true,
|
||||||
AllowPrivilegedModeForRegularUsers: true,
|
AllowPrivilegedModeForRegularUsers: true,
|
||||||
AllowHostNamespaceForRegularUsers: true,
|
AllowHostNamespaceForRegularUsers: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue