From 8c9e1504b840d37e260d0d5e6cdb75239c675fd0 Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Thu, 5 Aug 2021 09:18:19 +0300 Subject: [PATCH] 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 --- pkg/acl/types.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/acl/types.go b/pkg/acl/types.go index ab337a0..184dea3 100644 --- a/pkg/acl/types.go +++ b/pkg/acl/types.go @@ -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 )