contrib/fs-idmap: Don't hardcode sleep path

Let's just rely on the lookup performed to find the sleep binary.

This didn't cause any issues as far as I know, I just saw this while
doing other cleanups.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
This commit is contained in:
Rodrigo Campos
2023-08-01 16:37:27 +02:00
parent 882e5fe3ba
commit 855c5a0e8b
+1 -1
View File
@@ -22,7 +22,7 @@ func main() {
}
defer unix.Close(treeFD)
cmd := exec.Command("/usr/bin/sleep", "5")
cmd := exec.Command("sleep", "5")
cmd.SysProcAttr = &syscall.SysProcAttr{
Cloneflags: syscall.CLONE_NEWUSER,
UidMappings: []syscall.SysProcIDMap{{ContainerID: 0, HostID: 65536, Size: 65536}},