summaryrefslogtreecommitdiffhomepage
path: root/runsc/specutils
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-01-22 16:45:45 -0800
committerShentubot <shentubot@google.com>2019-01-22 16:46:42 -0800
commit5f08f8fd8162fa2fc2ca7b862263081d8d07b206 (patch)
treedf94de296220411b976f5730f71f6495ea1dc650 /runsc/specutils
parentceb3dcfb72fe050bb0d90a7285cd1b56d1b4dfeb (diff)
Don't bind-mount runsc into a sandbox mntns
PiperOrigin-RevId: 230437407 Change-Id: Id9d8ceeb018aad2fe317407c78c6ee0f4b47aa2b
Diffstat (limited to 'runsc/specutils')
-rw-r--r--runsc/specutils/specutils.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/runsc/specutils/specutils.go b/runsc/specutils/specutils.go
index 7b0dcf231..4e7893ab4 100644
--- a/runsc/specutils/specutils.go
+++ b/runsc/specutils/specutils.go
@@ -315,16 +315,6 @@ func IsSupportedDevMount(m specs.Mount) bool {
return true
}
-// BinPath returns the real path to self, resolving symbolink links. This is done
-// to make the process name appears as 'runsc', instead of 'exe'.
-func BinPath() (string, error) {
- binPath, err := filepath.EvalSymlinks(ExePath)
- if err != nil {
- return "", fmt.Errorf(`error resolving %q symlink: %v`, ExePath, err)
- }
- return binPath, nil
-}
-
const (
// ContainerdContainerTypeAnnotation is the OCI annotation set by
// containerd to indicate whether the container to create should have