1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-09-22 17:27:34 +00:00

agent: Fixes for static and compiler checks

Remove unused function remountRo() to pass static checks.

Fixes 

Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
This commit is contained in:
Chelsea Mafrica
2021-04-23 13:12:01 -07:00
parent 657d75524d
commit f859f8af22

@@ -302,11 +302,6 @@ func remount(ctx context.Context, mountflags uintptr, src string) error {
return nil 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 // bindMountContainerRootfs bind mounts a container rootfs into a 9pfs shared
// directory between the guest and the host. // directory between the guest and the host.
func bindMountContainerRootfs(ctx context.Context, shareDir, cid, cRootFs string, readonly bool) error { func bindMountContainerRootfs(ctx context.Context, shareDir, cid, cRootFs string, readonly bool) error {