Add no-new-privileges to SecurityOptions returned by /info

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
Albin Kerouanton
2023-04-13 13:27:59 +02:00
parent 3d0bdfaa70
commit eb7738221c
5 changed files with 16 additions and 1 deletions

View File

@@ -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
}