Bug 90031
Summary: | can not cd DIRECTORY, can not cat SymbolicLink, when client refer file directly. | ||
---|---|---|---|
Product: | File System | Reporter: | Nakajima Akira (nakajima.akira) |
Component: | CIFS | Assignee: | fs_cifs (fs_cifs) |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.18.0 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
patch__if different file type, then return error
patch__if different file type, then overwrite inode cache |
Description
Nakajima Akira
2014-12-18 09:03:04 UTC
Created attachment 161171 [details]
patch__if different file type, then overwrite inode cache
To avoid sending same SMB request,
I tried to overwrite inode cache.
This is this way patch. (for UNIX)
004-cifs-fix-different-mode-overwrite-inodecache_WhenDirectRefer.patch
Before make modules, Maybe we need copy
security/selinux/flask.h and security/selinux/av_permissions.h
to
security/selinux/include/
I posted new patch (attachment 161301 [details]) to https://bugzilla.kernel.org/show_bug.cgi?id=90021 With above patch, this problem is limited at the time of the "same inode number". ===================================================== Reproducible sample: 3. create and list file at CIFS client client# cd /mnt/share client# touch a; ls -li total 0 2400376 -rw-r--r--. 1 root root 0 Dec 19 11:53 a 4. remove and create DIR as same name, "same inode number" at samba server (**Repeat rm and mkdir 4 times until same inode number is made**) (When server is RHEL6.6 , always same inode number is made) server# rm -rf a; mkdir a; ls -li total 0 2400376 drwxr-xr-x. 2 root root 6 Dec 19 11:53 a 5. list file "directly" at CIFS client client# ls -li a ls: cannot open directory a: Not a directory ===================================================== But patch (attachment 161161 [details]) is effective. |