Commit b859292
committed
chimera: applying attributes to newly created file should skip permission 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>1 parent e1636c8 commit b859292
2 files changed
Lines changed: 53 additions & 1 deletion
File tree
- modules/dcache-chimera/src
- main/java/org/dcache/chimera/namespace
- test/java/diskCacheV111/namespace
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
| 374 | + | |
374 | 375 | | |
375 | 376 | | |
376 | 377 | | |
| |||
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| 74 | + | |
| 75 | + | |
69 | 76 | | |
70 | 77 | | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
775 | 783 | | |
776 | 784 | | |
777 | 785 | | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
778 | 829 | | |
779 | 830 | | |
780 | 831 | | |
| |||
0 commit comments