Skip to content

chimera: applying attributes to newly created file should skip permis…#8098

Merged
chubnastia merged 1 commit into
11.1from
issue8035-11.1
Apr 29, 2026
Merged

chimera: applying attributes to newly created file should skip permis…#8098
chubnastia merged 1 commit into
11.1from
issue8035-11.1

Conversation

@kofemann
Copy link
Copy Markdown
Member

…sion check

Motivation:
File creation with non basic attributes is now an atomic operation, as the namespace provided can implement it as create+set attr. If the initial file attributes doesn't allow set attribute operation, then such create request will fail.

Example:

directory dir has inherit-only ACL: 'DENY WRITE_ATTRIBUTE for EVRYONE' that applies to each newly created file. A new file is crated with pre-defeined extended attribute. Then after create, the applying xattrs will fail, as ACL rejects it.

Modification:
On create, skip permission check when applying the attributes that are a part of the initial request.

Result:
The initial, non basic attributes can be applied on create.

Fixes: #8035
Acked-by: Dmitry Litvintsev
Target: master, 11.2, 11.1, 11.0, 10.2
Require-book: no
Require-notes: yes
(cherry picked from commit 6970263)

…sion check

Motivation:
File creation with non basic attributes is now an atomic operation, as
the namespace provided can implement it as create+set attr. If the
initial file attributes doesn't allow `set attribute` operation, then
such create request will fail.

Example:

directory `dir` has inherit-only ACL: 'DENY WRITE_ATTRIBUTE for EVRYONE' that
applies to each newly created file. A new file is crated with
pre-defeined extended attribute. Then after create, the applying xattrs
will fail, as ACL rejects it.

Modification:
On create, skip permission check when applying the attributes that are
a part of the initial request.

Result:
The initial, non basic attributes can be applied on create.

Fixes: #8035
Acked-by: Dmitry Litvintsev
Target: master, 11.2, 11.1, 11.0, 10.2
Require-book: no
Require-notes: yes
(cherry picked from commit 6970263)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
@chubnastia chubnastia merged commit 1c38668 into 11.1 Apr 29, 2026
1 of 3 checks passed
@chubnastia chubnastia deleted the issue8035-11.1 branch April 29, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants