Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
Fix well-known BasicACL constants to fit the spec
Browse files Browse the repository at this point in the history
In the well-known BasicACL constants we need to set the always toggled
bits for the system group. Otherwise it may be confusing for those who
read the specification and try to match it with the reference
implementation or the resulting BasicACL set in the container.

Signed-off-by: Stanislav Bogatyrev <[email protected]>
  • Loading branch information
Stanislav Bogatyrev authored and realloc committed Aug 5, 2021
1 parent 9b2e636 commit 8c9e150
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/acl/types.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package acl

const (
// PublicBasicRule is a basic ACL value for public container.
PublicBasicRule = 0x1FFFFFFF
// PublicBasicRule is a basic ACL value for public-read-write container.
PublicBasicRule = 0x1FBFBFFF

// PrivateBasicRule is a basic ACL value for private container.
PrivateBasicRule = 0x18888888
PrivateBasicRule = 0x1C8C8CCC

// ReadOnlyBasicRule is a basic ACL value for read-only container.
ReadOnlyBasicRule = 0x1FFF88FF
// ReadOnlyBasicRule is a basic ACL value for public-read container.
ReadOnlyBasicRule = 0x1FBFBFFF
)

0 comments on commit 8c9e150

Please sign in to comment.