idtools_windows.go 638 B

123456789101112131415161718192021222324
  1. package idtools // import "github.com/docker/docker/pkg/idtools"
  2. import (
  3. "os"
  4. "github.com/docker/docker/pkg/system"
  5. )
  6. const (
  7. SeTakeOwnershipPrivilege = "SeTakeOwnershipPrivilege"
  8. )
  9. const (
  10. ContainerAdministratorSidString = "S-1-5-93-2-1"
  11. ContainerUserSidString = "S-1-5-93-2-2"
  12. )
  13. // This is currently a wrapper around MkdirAll, however, since currently
  14. // permissions aren't set through this path, the identity isn't utilized.
  15. // Ownership is handled elsewhere, but in the future could be support here
  16. // too.
  17. func mkdirAs(path string, _ os.FileMode, _ Identity, _, _ bool) error {
  18. return system.MkdirAll(path, 0)
  19. }