containerd-shim: Refuse connection from uid/gid different from the shim process

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2017-06-12 14:44:37 -07:00
parent 95afeb7831
commit d3e7af2c0a
3 changed files with 75 additions and 1 deletions

View File

@@ -6,6 +6,8 @@ import (
"os"
"os/signal"
"google.golang.org/grpc"
"github.com/containerd/containerd/reaper"
runc "github.com/containerd/go-runc"
)
@@ -25,3 +27,7 @@ func setupSignals() (chan os.Signal, error) {
func setupRoot() error {
return nil
}
func newServer() *grpc.Server {
return grpc.NewServer()
}