services/internal/pathperms: Fix synchronization.

Bug detected by:
go vet ./services/internal/pathperms
which reported errors like:
services/internal/pathperms/permsaccess.go:52: Get passes Lock by value:
pathperms.PathStore contains sync.Mutex
services/internal/pathperms/permsaccess.go:60: lockPath passes Lock by
value: pathperms.PathStore contains sync.Mutex
services/internal/pathperms/permsaccess.go:110: Set passes Lock by
value: pathperms.PathStore contains sync.Mutex
services/internal/pathperms/permsaccess.go:118: SetShareable passes Lock
by value: pathperms.PathStore contains sync.Mutex
services/internal/pathperms/permsaccess.go:190: PermsForPath passes Lock
by value: pathperms.PathStore contains sync.Mutex

Change-Id: I8dc76309ab19e265787d1af2c43817013c8fdb21
1 file changed
tree: dd111a9541311525f2b0c01fa5a14713031de7ba
  1. cmd/
  2. envvar/
  3. examples/
  4. internal/
  5. lib/
  6. profiles/
  7. services/
  8. test/
  9. .gitignore
  10. AUTHORS
  11. CONTRIBUTORS
  12. LICENSE
  13. PATENTS
  14. README.md
  15. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.