frostfs-api-go/pkg/acl/types.go
Stanislav Bogatyrev 8c9e1504b8 Fix well-known BasicACL constants to fit the spec
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 <stanislav@nspcc.ru>
2021-08-05 19:52:18 +03:00

12 lines
327 B
Go

package acl
const (
// PublicBasicRule is a basic ACL value for public-read-write container.
PublicBasicRule = 0x1FBFBFFF
// PrivateBasicRule is a basic ACL value for private container.
PrivateBasicRule = 0x1C8C8CCC
// ReadOnlyBasicRule is a basic ACL value for public-read container.
ReadOnlyBasicRule = 0x1FBFBFFF
)