Bug 14454 - cannot get symlink file attributes and target with cifsacl mount option
Summary: cannot get symlink file attributes and target with cifsacl mount option
Status: NEW
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 3.x
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Steve French
QA Contact: cifs QA contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-03 12:19 UTC by Aurélien Aptel
Modified: 2020-08-03 12:21 UTC (History)
1 user (show)

See Also:


Attachments
dmesg smb3.0 with cifsacl (26.71 KB, text/x-log)
2020-08-03 12:19 UTC, Aurélien Aptel
no flags Details
capture smb3.0 with cifsacl (54.50 KB, application/vnd.tcpdump.pcap)
2020-08-03 12:20 UTC, Aurélien Aptel
no flags Details
dmesg smb3.0 without cifsacl (17.58 KB, text/x-log)
2020-08-03 12:21 UTC, Aurélien Aptel
no flags Details
capture smb3.0 without cifsacl (15.80 KB, application/vnd.tcpdump.pcap)
2020-08-03 12:21 UTC, Aurélien Aptel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien Aptel 2020-08-03 12:19:20 UTC
On a Windows Server 2019 share with symlinks:

    C:\shares\data> dir
    ...
    12/16/2019  08:04 AM    <SYMLINKD>     DIR [sub\dir]
    12/16/2019  08:04 AM    <SYMLINK>      foolink.txt [sub\dir\foo.txt]
    ...

Mounting without cifsacl kind of works (still missing mode bits):

    # mount //nuc.test/data /mnt -o username=user1,password=user1,vers=3.0
    # ls -la /mnt
    total 3148410
    ...
    l---------  1 root root          0 Dec 16  2019 DIR -> sub/dir
    l---------  1 root root          0 Dec 16  2019 foolink.txt -> sub/dir/foo.txt

Mounting with cifsacl (with working idmap):

    # mount //nuc.test/data /mnt -o username=user1,password=user1,vers=3.0,cifsacl
    # ls -la /mnt
    ls: cannot access '/mnt/DIR': Operation not supported
    ls: cannot access '/mnt/foolink.txt': Operation not supported
    ...
    d?????????  ? ?         ?                         ?            ? DIR
    -?????????  ? ?         ?                         ?            ? foolink.txt
Comment 1 Aurélien Aptel 2020-08-03 12:19:57 UTC
Created attachment 16158 [details]
dmesg smb3.0 with cifsacl
Comment 2 Aurélien Aptel 2020-08-03 12:20:38 UTC
Created attachment 16159 [details]
capture smb3.0 with cifsacl
Comment 3 Aurélien Aptel 2020-08-03 12:21:09 UTC
Created attachment 16160 [details]
dmesg smb3.0 without cifsacl
Comment 4 Aurélien Aptel 2020-08-03 12:21:28 UTC
Created attachment 16161 [details]
capture smb3.0 without cifsacl