New: "setcifsacl" confuses "R" permission with "RX"
Subsystems (2)
https://bugzilla.samba.org/show_bug.cgi?id=14494
Bug ID: 14494
Summary: "setcifsacl" confuses "R" permission with "RX"
Product: CifsVFS
Version: 3.x
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: user space tools
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
When attempting to set "R" permission with "setcifsacl", "RX" (equivalent to "READ") is set instead:
------------------------------
mcrw1:/TCS # getcifsacl testfile
REVISION:0x1
CONTROL:0x8004
OWNER:VPTC3\cifsuser
GROUP:VPTC3\Domain Users
ACL:VPTC3\Domain Admins:ALLOWED/0x0/RWDPO ACL:VPTC3\cifsuser:ALLOWED/0x0/RWDPO
mcrw1:/TCS #
mcrw1:/TCS # setcifsacl -a "ACL:VPTC3\mveil:ALLOWED/0x0/R" testfile mcrw1:/TCS #
mcrw1:/TCS # getcifsacl testfile
REVISION:0x1
CONTROL:0x8004
OWNER:VPTC3\cifsuser
GROUP:VPTC3\Domain Users
ACL:VPTC3\Domain Admins:ALLOWED/0x0/RWDPO ACL:VPTC3\cifsuser:ALLOWED/0x0/RWDPO
ACL:VPTC3\mveil:ALLOWED/0x0/READ # --> not ok, should be "R"
mcrw1:/TCS #
mcrw1:/TCS # rm testfile ; touch testfile
mcrw1:/TCS #
mcrw1:/TCS # setcifsacl -a "ACL:VPTC3\mveil:ALLOWED/0x0/RX" testfile mcrw1:/TCS #
mcrw1:/TCS # getcifsacl testfile
REVISION:0x1
CONTROL:0x8004
OWNER:VPTC3\cifsuser
GROUP:VPTC3\Domain Users
ACL:VPTC3\Domain Admins:ALLOWED/0x0/RWDPO ACL:VPTC3\cifsuser:ALLOWED/0x0/RWDPO
ACL:VPTC3\mveil:ALLOWED/0x0/READ # --> ok
mcrw1:/TCS #
------------------------------
Signature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
[Bug 14494] "setcifsacl" confuses "R" permission with "RX"
https://bugzilla.samba.org/show_bug.cgi?id=14494
Björn Jacke <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|3.x |5.x
--- Comment #1 from Björn Jacke <[email protected]> --- can someone of the cifs vfs developers please have a look?
Generlly much of the cifsacl stuff is really nice bug with the outstanding bugs, some of those that Micah reported, cifs vfs with NT ACLs is just not usable and people who *need* to use full NT ACLs with a POSIX client have no other option than using a different OS with native NFS4 ACLs support like FreeBSD currently.
Signature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
Re: we actually need richacls ...
On 2021-03-18 at 07:33 +0000 [email protected] sent off:
Quoted 6 lines
--- Comment #1 from Björn Jacke <[email protected]> ---
Generlly much of the cifsacl stuff is really nice bug with the outstanding bugs, some of those that Micah reported, cifs vfs with NT ACLs is just not usable and people who *need* to use full NT ACLs with a POSIX client have no other option than using a different OS with native NFS4 ACLs support like FreeBSD currently.
it would also be great if the cifs developers would all trogether try to convince the kernel developers that the richacl implmentation gets upstreamed. cifs vfs urgently needs it. NT ACLs on POSIX clients are practically unusabe without having richalcs. Same for the upcoming cifs kernel server.
I tried to bring up the richacl topic a while ago on the kerenel mailing list but the voices of many of the cifs developers will be much more significant and can not so easily be ignored by the kernel maintainer I think.
Björn
Re: we actually need richacls ...
In reply to a message not in the archiveOn 2021-03-20 at 16:35 +1000 ronnie sahlberg sent off:
Quoted 2 lines
What we are talking about is NTFS semantics and how to integrate it into a posix environment like Linux.
as we are talking here about Unix systems, let's call what we're talking about NFS4 ACLs. See:
https://wiki.samba.org/index.php/NFS4_ACL_overview
Quoted 2 lines
We are not going to implement NTFS semantics in the kernel, that train left the station 20 years ago.
the train of NFS4 ACLs in Linux actually didn't leave the station at all, it's still in the station waiting for lights switching to green :)
Quoted 3 lines
What we can do is to try to emulate. Try to map NTFS onto posix in a way that makes most sense for most
average people.
As mapping the ACLs is too lossy, cifs has the cifsacl mount option, but that is buggy, issues with that don't get a lot of attention.
Quoted 1 line
But that is it. We can never do 100% ntfs.
true, this why Samba started the acl_xattr to manage the ACLs on its own in userspace. This is making it difficult to manage though as you have to do that through the SMB layser then only. Also no interoperability with native file access or different layers like NFS is impossible with that. The acl_xattr modules was born out of pitty that we're in that we lack NFS4 ACLs on Linux.
Quoted 1 line
And we cover the main use cases.
with "cover most use cases" you are still talking generally about POSIX draft ACLs vs. NFS4 ACLs here?
Quoted 2 lines
Are there use cases where the mappings will not work becasue we are not NTFS? Very likely.
lot's of cases. Starting from the concept of ACL inheritence which doesn't exist in POSIX draft ACLs at all (no, POSIX draft default ACLs are not comparable with it).
Quoted 2 lines
Maybe those use cases that require full 100% NTFS semantics should just use windows?
you want to ask people who need NFS4 ACLs to use Windows, seriously? I rather recommend using other Unix systems that support NFS4 ACLs. Actually all other actively developed Unix systems do support NFS4 ACLS.
Customers, who want to use SMB also for their Linux clients, give up quite soon because of the shortcomings of the permission management.. Without native NFS4 ACLs this will probably not change - this is why I ask the cifs vfs and the cifsd people here to help push to get NFS4 ACLs aka richacls in he kernel vfs layer.
You know that POSIX draft ACLs had never been finally standrarized, they were were withdrawn in 1997. However NFS4 ACLs are standarized.
Quoted 1 line
If not, patches sent to the mailinglist are welcome.
Andreas Grünbacher sent working patches long time ago, see the links from the wiki article above.
Björn