aboutsummaryrefslogtreecommitdiff
path: root/internal/syscallcompat/asuser_linux.go
AgeCommit message (Collapse)Author
5 hoursgo.mod: upgrade to go-fuse v3 (current master 1ffd5bd2bfc64)HEADmasterJakob Unterwurzacher
go-fuse master is now github.com/hanwen/go-fuse/v3. Changes needed: * Change the import path, also in build.bash and version.go, which look up the go-fuse module version. * fuse.Context is gone, and fuse.FromContext() now returns a fuse.Caller value. Caller has the same Owner and Pid fields, so use *fuse.Caller in place of *fuse.Context. * fuse.Status is replaced by syscall.Errno, so ReadResult.Bytes() returns an Errno now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2025-07-07Fix a bunch of staticcheck errorsJakob Unterwurzacher
Tool-assisted.
2025-02-26syscallcompat: use our own Setgroups/Setregid/Setreuid wrappersJakob Unterwurzacher
x/sys v0.1.0 (https://github.com/golang/sys/commit/d0df966e6959f00dc1c74363e537872647352d51) breaks our usecase. Switch to our own wrappers. Relates-to: https://github.com/rfjakob/gocryptfs/issues/892 Relates-to: https://github.com/rfjakob/gocryptfs/issues/893
2025-02-26syscallcompat: move getSupplementaryGroups to suser_linux.goJakob Unterwurzacher
It's only used there, so move it.
2025-02-26syscallcompat: move asUser to its own fileJakob Unterwurzacher