mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Add no-new-privileges to SecurityOptions returned by /info
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
@@ -366,3 +366,7 @@ func (daemon *Daemon) cgroupNamespacesEnabled(sysInfo *sysinfo.SysInfo) bool {
|
||||
func (daemon *Daemon) Rootless() bool {
|
||||
return daemon.configStore.Rootless
|
||||
}
|
||||
|
||||
func (daemon *Daemon) noNewPrivileges() bool {
|
||||
return daemon.configStore.NoNewPrivileges
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user