daemon_solaris.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. // +build solaris,cgo
  2. package daemon
  3. import (
  4. "fmt"
  5. "net"
  6. "strconv"
  7. "github.com/Sirupsen/logrus"
  8. "github.com/docker/docker/api/types"
  9. containertypes "github.com/docker/docker/api/types/container"
  10. "github.com/docker/docker/container"
  11. "github.com/docker/docker/image"
  12. "github.com/docker/docker/layer"
  13. "github.com/docker/docker/pkg/idtools"
  14. "github.com/docker/docker/pkg/parsers/kernel"
  15. "github.com/docker/docker/pkg/sysinfo"
  16. refstore "github.com/docker/docker/reference"
  17. "github.com/docker/libnetwork"
  18. nwconfig "github.com/docker/libnetwork/config"
  19. "github.com/docker/libnetwork/drivers/solaris/bridge"
  20. "github.com/docker/libnetwork/netlabel"
  21. "github.com/docker/libnetwork/netutils"
  22. lntypes "github.com/docker/libnetwork/types"
  23. "github.com/opencontainers/runtime-spec/specs-go"
  24. "github.com/opencontainers/selinux/go-selinux/label"
  25. "github.com/pkg/errors"
  26. )
  27. //#include <zone.h>
  28. import "C"
  29. const (
  30. defaultVirtualSwitch = "Virtual Switch"
  31. platformSupported = true
  32. solarisMinCPUShares = 1
  33. solarisMaxCPUShares = 65535
  34. )
  35. func getMemoryResources(config containertypes.Resources) specs.CappedMemory {
  36. memory := specs.CappedMemory{}
  37. if config.Memory > 0 {
  38. memory.Physical = strconv.FormatInt(config.Memory, 10)
  39. }
  40. if config.MemorySwap != 0 {
  41. memory.Swap = strconv.FormatInt(config.MemorySwap, 10)
  42. }
  43. return memory
  44. }
  45. func getCPUResources(config containertypes.Resources) specs.CappedCPU {
  46. cpu := specs.CappedCPU{}
  47. if config.CpusetCpus != "" {
  48. cpu.Ncpus = config.CpusetCpus
  49. }
  50. return cpu
  51. }
  52. func (daemon *Daemon) cleanupMountsByID(id string) error {
  53. return nil
  54. }
  55. func (daemon *Daemon) parseSecurityOpt(container *container.Container, hostConfig *containertypes.HostConfig) error {
  56. return parseSecurityOpt(container, hostConfig)
  57. }
  58. func parseSecurityOpt(container *container.Container, config *containertypes.HostConfig) error {
  59. //Since config.SecurityOpt is specifically defined as a "List of string values to
  60. //customize labels for MLs systems, such as SELinux"
  61. //until we figure out how to map to Trusted Extensions
  62. //this is being disabled for now on Solaris
  63. var (
  64. labelOpts []string
  65. err error
  66. )
  67. if len(config.SecurityOpt) > 0 {
  68. return errors.New("Security options are not supported on Solaris")
  69. }
  70. container.ProcessLabel, container.MountLabel, err = label.InitLabels(labelOpts)
  71. return err
  72. }
  73. func setupRemappedRoot(config *Config) ([]idtools.IDMap, []idtools.IDMap, error) {
  74. return nil, nil, nil
  75. }
  76. func setupDaemonRoot(config *Config, rootDir string, rootUID, rootGID int) error {
  77. return nil
  78. }
  79. func (daemon *Daemon) getLayerInit() func(string) error {
  80. return nil
  81. }
  82. func checkKernel() error {
  83. // solaris can rely upon checkSystem() below, we don't skew kernel versions
  84. return nil
  85. }
  86. func (daemon *Daemon) getCgroupDriver() string {
  87. return ""
  88. }
  89. func (daemon *Daemon) adaptContainerSettings(hostConfig *containertypes.HostConfig, adjustCPUShares bool) error {
  90. if hostConfig.CPUShares < 0 {
  91. logrus.Warnf("Changing requested CPUShares of %d to minimum allowed of %d", hostConfig.CPUShares, solarisMinCPUShares)
  92. hostConfig.CPUShares = solarisMinCPUShares
  93. } else if hostConfig.CPUShares > solarisMaxCPUShares {
  94. logrus.Warnf("Changing requested CPUShares of %d to maximum allowed of %d", hostConfig.CPUShares, solarisMaxCPUShares)
  95. hostConfig.CPUShares = solarisMaxCPUShares
  96. }
  97. if hostConfig.Memory > 0 && hostConfig.MemorySwap == 0 {
  98. // By default, MemorySwap is set to twice the size of Memory.
  99. hostConfig.MemorySwap = hostConfig.Memory * 2
  100. }
  101. if hostConfig.ShmSize != 0 {
  102. hostConfig.ShmSize = container.DefaultSHMSize
  103. }
  104. if hostConfig.OomKillDisable == nil {
  105. defaultOomKillDisable := false
  106. hostConfig.OomKillDisable = &defaultOomKillDisable
  107. }
  108. return nil
  109. }
  110. // UsingSystemd returns true if cli option includes native.cgroupdriver=systemd
  111. func UsingSystemd(config *Config) bool {
  112. return false
  113. }
  114. // verifyPlatformContainerSettings performs platform-specific validation of the
  115. // hostconfig and config structures.
  116. func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes.HostConfig, config *containertypes.Config, update bool) ([]string, error) {
  117. warnings := []string{}
  118. sysInfo := sysinfo.New(true)
  119. // NOTE: We do not enforce a minimum value for swap limits for zones on Solaris and
  120. // therefore we will not do that for Docker container either.
  121. if hostConfig.Memory > 0 && !sysInfo.MemoryLimit {
  122. warnings = append(warnings, "Your kernel does not support memory limit capabilities. Limitation discarded.")
  123. logrus.Warnf("Your kernel does not support memory limit capabilities. Limitation discarded.")
  124. hostConfig.Memory = 0
  125. hostConfig.MemorySwap = -1
  126. }
  127. if hostConfig.Memory > 0 && hostConfig.MemorySwap != -1 && !sysInfo.SwapLimit {
  128. warnings = append(warnings, "Your kernel does not support swap limit capabilities, memory limited without swap.")
  129. logrus.Warnf("Your kernel does not support swap limit capabilities, memory limited without swap.")
  130. hostConfig.MemorySwap = -1
  131. }
  132. if hostConfig.Memory > 0 && hostConfig.MemorySwap > 0 && hostConfig.MemorySwap < hostConfig.Memory {
  133. return warnings, fmt.Errorf("Minimum memoryswap limit should be larger than memory limit, see usage.")
  134. }
  135. // Solaris NOTE: We allow and encourage setting the swap without setting the memory limit.
  136. if hostConfig.MemorySwappiness != nil && *hostConfig.MemorySwappiness != -1 && !sysInfo.MemorySwappiness {
  137. warnings = append(warnings, "Your kernel does not support memory swappiness capabilities, memory swappiness discarded.")
  138. logrus.Warnf("Your kernel does not support memory swappiness capabilities, memory swappiness discarded.")
  139. hostConfig.MemorySwappiness = nil
  140. }
  141. if hostConfig.MemoryReservation > 0 && !sysInfo.MemoryReservation {
  142. warnings = append(warnings, "Your kernel does not support memory soft limit capabilities. Limitation discarded.")
  143. logrus.Warnf("Your kernel does not support memory soft limit capabilities. Limitation discarded.")
  144. hostConfig.MemoryReservation = 0
  145. }
  146. if hostConfig.Memory > 0 && hostConfig.MemoryReservation > 0 && hostConfig.Memory < hostConfig.MemoryReservation {
  147. return warnings, fmt.Errorf("Minimum memory limit should be larger than memory reservation limit, see usage.")
  148. }
  149. if hostConfig.KernelMemory > 0 && !sysInfo.KernelMemory {
  150. warnings = append(warnings, "Your kernel does not support kernel memory limit capabilities. Limitation discarded.")
  151. logrus.Warnf("Your kernel does not support kernel memory limit capabilities. Limitation discarded.")
  152. hostConfig.KernelMemory = 0
  153. }
  154. if hostConfig.CPUShares != 0 && !sysInfo.CPUShares {
  155. warnings = append(warnings, "Your kernel does not support CPU shares. Shares discarded.")
  156. logrus.Warnf("Your kernel does not support CPU shares. Shares discarded.")
  157. hostConfig.CPUShares = 0
  158. }
  159. if hostConfig.CPUShares < 0 {
  160. warnings = append(warnings, "Invalid CPUShares value. Must be positive. Discarding.")
  161. logrus.Warnf("Invalid CPUShares value. Must be positive. Discarding.")
  162. hostConfig.CPUQuota = 0
  163. }
  164. if hostConfig.CPUShares > 0 && !sysinfo.IsCPUSharesAvailable() {
  165. warnings = append(warnings, "Global zone default scheduling class not FSS. Discarding shares.")
  166. logrus.Warnf("Global zone default scheduling class not FSS. Discarding shares.")
  167. hostConfig.CPUShares = 0
  168. }
  169. // Solaris NOTE: Linux does not do negative checking for CPUShares and Quota here. But it makes sense to.
  170. if hostConfig.CPUPeriod > 0 && !sysInfo.CPUCfsPeriod {
  171. warnings = append(warnings, "Your kernel does not support CPU cfs period. Period discarded.")
  172. logrus.Warnf("Your kernel does not support CPU cfs period. Period discarded.")
  173. if hostConfig.CPUQuota > 0 {
  174. warnings = append(warnings, "Quota will be applied on default period, not period specified.")
  175. logrus.Warnf("Quota will be applied on default period, not period specified.")
  176. }
  177. hostConfig.CPUPeriod = 0
  178. }
  179. if hostConfig.CPUQuota != 0 && !sysInfo.CPUCfsQuota {
  180. warnings = append(warnings, "Your kernel does not support CPU cfs quota. Quota discarded.")
  181. logrus.Warnf("Your kernel does not support CPU cfs quota. Quota discarded.")
  182. hostConfig.CPUQuota = 0
  183. }
  184. if hostConfig.CPUQuota < 0 {
  185. warnings = append(warnings, "Invalid CPUQuota value. Must be positive. Discarding.")
  186. logrus.Warnf("Invalid CPUQuota value. Must be positive. Discarding.")
  187. hostConfig.CPUQuota = 0
  188. }
  189. if (hostConfig.CpusetCpus != "" || hostConfig.CpusetMems != "") && !sysInfo.Cpuset {
  190. warnings = append(warnings, "Your kernel does not support cpuset. Cpuset discarded.")
  191. logrus.Warnf("Your kernel does not support cpuset. Cpuset discarded.")
  192. hostConfig.CpusetCpus = ""
  193. hostConfig.CpusetMems = ""
  194. }
  195. cpusAvailable, err := sysInfo.IsCpusetCpusAvailable(hostConfig.CpusetCpus)
  196. if err != nil {
  197. return warnings, fmt.Errorf("Invalid value %s for cpuset cpus.", hostConfig.CpusetCpus)
  198. }
  199. if !cpusAvailable {
  200. return warnings, fmt.Errorf("Requested CPUs are not available - requested %s, available: %s.", hostConfig.CpusetCpus, sysInfo.Cpus)
  201. }
  202. memsAvailable, err := sysInfo.IsCpusetMemsAvailable(hostConfig.CpusetMems)
  203. if err != nil {
  204. return warnings, fmt.Errorf("Invalid value %s for cpuset mems.", hostConfig.CpusetMems)
  205. }
  206. if !memsAvailable {
  207. return warnings, fmt.Errorf("Requested memory nodes are not available - requested %s, available: %s.", hostConfig.CpusetMems, sysInfo.Mems)
  208. }
  209. if hostConfig.BlkioWeight > 0 && !sysInfo.BlkioWeight {
  210. warnings = append(warnings, "Your kernel does not support Block I/O weight. Weight discarded.")
  211. logrus.Warnf("Your kernel does not support Block I/O weight. Weight discarded.")
  212. hostConfig.BlkioWeight = 0
  213. }
  214. if hostConfig.OomKillDisable != nil && !sysInfo.OomKillDisable {
  215. *hostConfig.OomKillDisable = false
  216. // Don't warn; this is the default setting but only applicable to Linux
  217. }
  218. if sysInfo.IPv4ForwardingDisabled {
  219. warnings = append(warnings, "IPv4 forwarding is disabled. Networking will not work.")
  220. logrus.Warnf("IPv4 forwarding is disabled. Networking will not work")
  221. }
  222. // Solaris NOTE: We do not allow setting Linux specific options, so check and warn for all of them.
  223. if hostConfig.CapAdd != nil || hostConfig.CapDrop != nil {
  224. warnings = append(warnings, "Adding or dropping kernel capabilities unsupported on Solaris.Discarding capabilities lists.")
  225. logrus.Warnf("Adding or dropping kernel capabilities unsupported on Solaris.Discarding capabilities lists.")
  226. hostConfig.CapAdd = nil
  227. hostConfig.CapDrop = nil
  228. }
  229. if hostConfig.GroupAdd != nil {
  230. warnings = append(warnings, "Additional groups unsupported on Solaris.Discarding groups lists.")
  231. logrus.Warnf("Additional groups unsupported on Solaris.Discarding groups lists.")
  232. hostConfig.GroupAdd = nil
  233. }
  234. if hostConfig.IpcMode != "" {
  235. warnings = append(warnings, "IPC namespace assignment unsupported on Solaris.Discarding IPC setting.")
  236. logrus.Warnf("IPC namespace assignment unsupported on Solaris.Discarding IPC setting.")
  237. hostConfig.IpcMode = ""
  238. }
  239. if hostConfig.PidMode != "" {
  240. warnings = append(warnings, "PID namespace setting unsupported on Solaris. Running container in host PID namespace.")
  241. logrus.Warnf("PID namespace setting unsupported on Solaris. Running container in host PID namespace.")
  242. hostConfig.PidMode = ""
  243. }
  244. if hostConfig.Privileged {
  245. warnings = append(warnings, "Privileged mode unsupported on Solaris. Discarding privileged mode setting.")
  246. logrus.Warnf("Privileged mode unsupported on Solaris. Discarding privileged mode setting.")
  247. hostConfig.Privileged = false
  248. }
  249. if hostConfig.UTSMode != "" {
  250. warnings = append(warnings, "UTS namespace assignment unsupported on Solaris.Discarding UTS setting.")
  251. logrus.Warnf("UTS namespace assignment unsupported on Solaris.Discarding UTS setting.")
  252. hostConfig.UTSMode = ""
  253. }
  254. if hostConfig.CgroupParent != "" {
  255. warnings = append(warnings, "Specifying Cgroup parent unsupported on Solaris. Discarding cgroup parent setting.")
  256. logrus.Warnf("Specifying Cgroup parent unsupported on Solaris. Discarding cgroup parent setting.")
  257. hostConfig.CgroupParent = ""
  258. }
  259. if hostConfig.Ulimits != nil {
  260. warnings = append(warnings, "Specifying ulimits unsupported on Solaris. Discarding ulimits setting.")
  261. logrus.Warnf("Specifying ulimits unsupported on Solaris. Discarding ulimits setting.")
  262. hostConfig.Ulimits = nil
  263. }
  264. return warnings, nil
  265. }
  266. // reloadPlatform updates configuration with platform specific options
  267. // and updates the passed attributes
  268. func (daemon *Daemon) reloadPlatform(config *Config, attributes map[string]string) {
  269. }
  270. // verifyDaemonSettings performs validation of daemon config struct
  271. func verifyDaemonSettings(config *Config) error {
  272. if config.DefaultRuntime == "" {
  273. config.DefaultRuntime = stockRuntimeName
  274. }
  275. if config.Runtimes == nil {
  276. config.Runtimes = make(map[string]types.Runtime)
  277. }
  278. stockRuntimeOpts := []string{}
  279. config.Runtimes[stockRuntimeName] = types.Runtime{Path: DefaultRuntimeBinary, Args: stockRuntimeOpts}
  280. // checkSystem validates platform-specific requirements
  281. return nil
  282. }
  283. func checkSystem() error {
  284. // check OS version for compatibility, ensure running in global zone
  285. var err error
  286. var id C.zoneid_t
  287. if id, err = C.getzoneid(); err != nil {
  288. return fmt.Errorf("Exiting. Error getting zone id: %+v", err)
  289. }
  290. if int(id) != 0 {
  291. return fmt.Errorf("Exiting because the Docker daemon is not running in the global zone")
  292. }
  293. v, err := kernel.GetKernelVersion()
  294. if kernel.CompareKernelVersion(*v, kernel.VersionInfo{Kernel: 5, Major: 12, Minor: 0}) < 0 {
  295. return fmt.Errorf("Your Solaris kernel version: %s doesn't support Docker. Please upgrade to 5.12.0", v.String())
  296. }
  297. return err
  298. }
  299. // configureMaxThreads sets the Go runtime max threads threshold
  300. // which is 90% of the kernel setting from /proc/sys/kernel/threads-max
  301. func configureMaxThreads(config *Config) error {
  302. return nil
  303. }
  304. // configureKernelSecuritySupport configures and validate security support for the kernel
  305. func configureKernelSecuritySupport(config *Config, driverName string) error {
  306. return nil
  307. }
  308. func (daemon *Daemon) initNetworkController(config *Config, activeSandboxes map[string]interface{}) (libnetwork.NetworkController, error) {
  309. netOptions, err := daemon.networkOptions(config, daemon.PluginStore, activeSandboxes)
  310. if err != nil {
  311. return nil, err
  312. }
  313. controller, err := libnetwork.New(netOptions...)
  314. if err != nil {
  315. return nil, fmt.Errorf("error obtaining controller instance: %v", err)
  316. }
  317. // Initialize default network on "null"
  318. if _, err := controller.NewNetwork("null", "none", "", libnetwork.NetworkOptionPersist(false)); err != nil {
  319. return nil, fmt.Errorf("Error creating default 'null' network: %v", err)
  320. }
  321. if !config.DisableBridge {
  322. // Initialize default driver "bridge"
  323. if err := initBridgeDriver(controller, config); err != nil {
  324. return nil, err
  325. }
  326. }
  327. return controller, nil
  328. }
  329. func initBridgeDriver(controller libnetwork.NetworkController, config *Config) error {
  330. if n, err := controller.NetworkByName("bridge"); err == nil {
  331. if err = n.Delete(); err != nil {
  332. return fmt.Errorf("could not delete the default bridge network: %v", err)
  333. }
  334. }
  335. bridgeName := bridge.DefaultBridgeName
  336. if config.bridgeConfig.Iface != "" {
  337. bridgeName = config.bridgeConfig.Iface
  338. }
  339. netOption := map[string]string{
  340. bridge.BridgeName: bridgeName,
  341. bridge.DefaultBridge: strconv.FormatBool(true),
  342. netlabel.DriverMTU: strconv.Itoa(config.Mtu),
  343. bridge.EnableICC: strconv.FormatBool(config.bridgeConfig.InterContainerCommunication),
  344. }
  345. // --ip processing
  346. if config.bridgeConfig.DefaultIP != nil {
  347. netOption[bridge.DefaultBindingIP] = config.bridgeConfig.DefaultIP.String()
  348. }
  349. var ipamV4Conf *libnetwork.IpamConf
  350. ipamV4Conf = &libnetwork.IpamConf{AuxAddresses: make(map[string]string)}
  351. nwList, _, err := netutils.ElectInterfaceAddresses(bridgeName)
  352. if err != nil {
  353. return errors.Wrap(err, "list bridge addresses failed")
  354. }
  355. nw := nwList[0]
  356. if len(nwList) > 1 && config.bridgeConfig.FixedCIDR != "" {
  357. _, fCIDR, err := net.ParseCIDR(config.bridgeConfig.FixedCIDR)
  358. if err != nil {
  359. return errors.Wrap(err, "parse CIDR failed")
  360. }
  361. // Iterate through in case there are multiple addresses for the bridge
  362. for _, entry := range nwList {
  363. if fCIDR.Contains(entry.IP) {
  364. nw = entry
  365. break
  366. }
  367. }
  368. }
  369. ipamV4Conf.PreferredPool = lntypes.GetIPNetCanonical(nw).String()
  370. hip, _ := lntypes.GetHostPartIP(nw.IP, nw.Mask)
  371. if hip.IsGlobalUnicast() {
  372. ipamV4Conf.Gateway = nw.IP.String()
  373. }
  374. if config.bridgeConfig.IP != "" {
  375. ipamV4Conf.PreferredPool = config.bridgeConfig.IP
  376. ip, _, err := net.ParseCIDR(config.bridgeConfig.IP)
  377. if err != nil {
  378. return err
  379. }
  380. ipamV4Conf.Gateway = ip.String()
  381. } else if bridgeName == bridge.DefaultBridgeName && ipamV4Conf.PreferredPool != "" {
  382. logrus.Infof("Default bridge (%s) is assigned with an IP address %s. Daemon option --bip can be used to set a preferred IP address", bridgeName, ipamV4Conf.PreferredPool)
  383. }
  384. if config.bridgeConfig.FixedCIDR != "" {
  385. _, fCIDR, err := net.ParseCIDR(config.bridgeConfig.FixedCIDR)
  386. if err != nil {
  387. return err
  388. }
  389. ipamV4Conf.SubPool = fCIDR.String()
  390. }
  391. if config.bridgeConfig.DefaultGatewayIPv4 != nil {
  392. ipamV4Conf.AuxAddresses["DefaultGatewayIPv4"] = config.bridgeConfig.DefaultGatewayIPv4.String()
  393. }
  394. v4Conf := []*libnetwork.IpamConf{ipamV4Conf}
  395. v6Conf := []*libnetwork.IpamConf{}
  396. // Initialize default network on "bridge" with the same name
  397. _, err = controller.NewNetwork("bridge", "bridge", "",
  398. libnetwork.NetworkOptionDriverOpts(netOption),
  399. libnetwork.NetworkOptionIpam("default", "", v4Conf, v6Conf, nil),
  400. libnetwork.NetworkOptionDeferIPv6Alloc(false))
  401. if err != nil {
  402. return fmt.Errorf("Error creating default 'bridge' network: %v", err)
  403. }
  404. return nil
  405. }
  406. // registerLinks sets up links between containers and writes the
  407. // configuration out for persistence.
  408. func (daemon *Daemon) registerLinks(container *container.Container, hostConfig *containertypes.HostConfig) error {
  409. return nil
  410. }
  411. func (daemon *Daemon) cleanupMounts() error {
  412. return nil
  413. }
  414. // conditionalMountOnStart is a platform specific helper function during the
  415. // container start to call mount.
  416. func (daemon *Daemon) conditionalMountOnStart(container *container.Container) error {
  417. return daemon.Mount(container)
  418. }
  419. // conditionalUnmountOnCleanup is a platform specific helper function called
  420. // during the cleanup of a container to unmount.
  421. func (daemon *Daemon) conditionalUnmountOnCleanup(container *container.Container) error {
  422. return daemon.Unmount(container)
  423. }
  424. func restoreCustomImage(is image.Store, ls layer.Store, rs refstore.Store) error {
  425. // Solaris has no custom images to register
  426. return nil
  427. }
  428. func driverOptions(config *Config) []nwconfig.Option {
  429. return []nwconfig.Option{}
  430. }
  431. func (daemon *Daemon) stats(c *container.Container) (*types.StatsJSON, error) {
  432. return nil, nil
  433. }
  434. // setDefaultIsolation determine the default isolation mode for the
  435. // daemon to run in. This is only applicable on Windows
  436. func (daemon *Daemon) setDefaultIsolation() error {
  437. return nil
  438. }
  439. func rootFSToAPIType(rootfs *image.RootFS) types.RootFS {
  440. return types.RootFS{}
  441. }
  442. func setupDaemonProcess(config *Config) error {
  443. return nil
  444. }
  445. func (daemon *Daemon) setupSeccompProfile() error {
  446. return nil
  447. }