Skip to content

Commit

Permalink
tbs: fix squashfs UID/GID handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Preminger committed Sep 18, 2023
1 parent 88ca47b commit 831a664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/util/fs/squashfs/squashfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
func FUSEMount(ctx context.Context, offset uint64, path, mountPath string) (*fuse.ImageMount, error) {
im := fuse.ImageMount{
Type: image.SQUASHFS,
UID: os.Getuid(),
GID: os.Getgid(),
Readonly: true,
SourcePath: filepath.Clean(path),
ExtraOpts: []string{
fmt.Sprintf("offset=%d", offset),
fmt.Sprintf("uid=%d", os.Getuid()),
fmt.Sprintf("gid=%d", os.Getgid()),
},
}
im.SetMountPoint(filepath.Clean(mountPath))
Expand Down

0 comments on commit 831a664

Please sign in to comment.