From f859f8af229fc7be32e633d30354266af978e1bb Mon Sep 17 00:00:00 2001 From: Chelsea Mafrica Date: Fri, 23 Apr 2021 13:12:01 -0700 Subject: [PATCH] agent: Fixes for static and compiler checks Remove unused function remountRo() to pass static checks. Fixes #1698 Signed-off-by: Chelsea Mafrica --- src/runtime/virtcontainers/mount.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/runtime/virtcontainers/mount.go b/src/runtime/virtcontainers/mount.go index 8e3921ac69..f2a3bcfa9e 100644 --- a/src/runtime/virtcontainers/mount.go +++ b/src/runtime/virtcontainers/mount.go @@ -302,11 +302,6 @@ func remount(ctx context.Context, mountflags uintptr, src string) error { return nil } -// remount a mount point as readonly -func remountRo(ctx context.Context, src string) error { - return remount(ctx, syscall.MS_BIND|syscall.MS_RDONLY, src) -} - // bindMountContainerRootfs bind mounts a container rootfs into a 9pfs shared // directory between the guest and the host. func bindMountContainerRootfs(ctx context.Context, shareDir, cid, cRootFs string, readonly bool) error {