cri-o/server
Samuel Ortiz ad6ac9391c
sandbox: Force netns unmount and removal when restoring
ns.Close() will not remove and unmount the networking namespace
if it's not currently marked as mounted.
When we restore a sandbox, we generate the sandbox netns from
ns.GetNS() which does not mark the sandbox as mounted.

There currently is a PR open to fix that in the ns package:
https://github.com/containernetworking/cni/pull/342

but meanwhile this patch fixes a netns leak when restoring a pod.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2016-12-14 19:47:05 +01:00
..
apparmor Do not load ocid-default if configured apparmor profile is set up. 2016-12-12 15:55:17 +08:00
seccomp *: add seccomp buildtag 2016-11-29 17:01:45 +01:00
config.go Make the profile configurable 2016-12-01 13:26:59 +08:00
container.go server: Export more container metadata for VM containers 2016-11-29 10:24:33 +01:00
container_attach.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_create.go Merge pull request #262 from runcom/fix-commands 2016-12-13 10:13:38 -08:00
container_exec.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_execsync.go Fix couple of lint issues 2016-12-08 15:40:59 -08:00
container_list.go store annotations and image for a container 2016-12-12 11:12:03 +01:00
container_portforward.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_remove.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_start.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_status.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_stop.go server: sync ctr state before checking it 2016-12-06 12:39:38 +01:00
container_updateruntimeconfig.go server: split containers actions 2016-11-22 18:38:05 +01:00
image_list.go server: split images actions 2016-11-22 23:05:37 +01:00
image_pull.go server: split images actions 2016-11-22 23:05:37 +01:00
image_remove.go server: split images actions 2016-11-22 23:05:37 +01:00
image_status.go server: split images actions 2016-11-22 23:05:37 +01:00
runtime_status.go server: split containers actions 2016-11-22 18:38:05 +01:00
sandbox.go sandbox: Force netns unmount and removal when restoring 2016-12-14 19:47:05 +01:00
sandbox_list.go server: fix pod filter by truncated id 2016-12-06 12:16:30 +01:00
sandbox_remove.go sandbox: Create a symbolic link to the networking namespace 2016-12-12 19:48:23 +01:00
sandbox_run.go sandbox: Fix gocyclo complexity 2016-12-12 19:48:23 +01:00
sandbox_status.go server: split sandboxes actions 2016-11-22 23:23:01 +01:00
sandbox_stop.go sandbox: Use persistent networking namespace 2016-12-12 19:48:23 +01:00
server.go server: remove reaper, let runc take care of reaping 2016-12-14 12:15:20 +01:00
utils.go add default apparmor profile 2016-12-01 13:26:59 +08:00
version.go version: Fix parsing for gRPC version 2016-11-15 09:26:11 +01:00