[PATCH RFC] s3: smbd: Consistently map EAs to user namespace

Daniel Kobras kobras at puzzle-itc.de
Fri Oct 21 15:23:05 UTC 2022


Hi all!

Am 03.10.22 um 20:32 schrieb Jeremy Allison:
> On Mon, Oct 03, 2022 at 11:29:17AM -0700, Jeremy Allison via 
> samba-technical wrote:
>> On Thu, Sep 29, 2022 at 02:17:57PM +0200, Ralph Boehme wrote:
>>> On 9/27/22 13:10, Daniel Kobras via samba-technical wrote:
>>>> The issues can be avoided with a consistent mapping between Windows EAs
>>>> and the 'user' namespace in both directions, ie. no longer present EAs
>>>> outside of 'user' as Windows EAs in SMB_INFO_QUERY_ALL_EAS and friends.
>>>> Do you agree with this approach? Are there applications that rely on
>>>> the current mapping of non-user EAs? Please let me know if I should
>>>> submit the patch as a proper MR.
>>> before jumping to action can we also please briefly consider the 
>>> Linux kernel mount case with SMB3 Unix Extensions and mount over SMB?
>>>
>>> The proposed approach makes sense for Windows clients, maybe be 
>>> should incorporate exposing the raw namespace when UNIX extensions 
>>> are negotiated. In the end this is likely going to be a made via a 
>>> later MR in the future, but I'd like to see both cases considered now 
>>> that we're making changes.
>>
>> The SMB3 Unix Extensions can be fixed later via a new MR.
>>
>> The behavior for SMB3 Unix Extensions should be that GetEA/SetEA
>> calls on a SMB3 Unix Extensions file handle should not hide the
>> namespace from the client. From my experiments as root on Linux,
>> the ListEA call only ever returns names from the user. namespace
> 
> Ah, that's not the case :-). I now checked with strace getfattr,
> not just looking at it's output, and the listxattr() call on
> Linux does return non user. namespace names, it's just the
> getfattr tool that doesn't print them.
> 
> Still, that doesn't change the underlying fix for now.

Ok, I've just submitted the fix in 
<https://gitlab.com/samba-team/samba/-/merge_requests/2763>.

Kind regards,

Daniel
-- 
Daniel Kobras
Principal Architect
Puzzle ITC Deutschland
+49 7071 14316 0
www.puzzle-itc.de


-- 
Puzzle ITC Deutschland GmbH
Sitz der Gesellschaft: Eisenbahnstraße 1, 72072 
Tübingen

Eingetragen am Amtsgericht Stuttgart HRB 765802
Geschäftsführer: 
Lukas Kallies, Daniel Kobras, Mark Pröhl




More information about the samba-technical mailing list