From: Xiaoli Feng <xifeng@redhat.com>
To: Steve French <smfrench@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>,
fstests@vger.kernel.org, Ronnie Sahlberg <lsahlber@redhat.com>,
CIFS <linux-cifs@vger.kernel.org>
Subject: Re: [PATCH v1] xfstests: filter the default EA
Date: Thu, 20 Dec 2018 23:01:35 -0500 (EST) [thread overview]
Message-ID: <845013525.61641054.1545364895874.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAH2r5mtXj75Cv-wb9=FsbOkw1Lx3ZrrYpJkEh4tJD2zQC-D4PA@mail.gmail.com>
----- Original Message -----
> From: "Steve French" <smfrench@gmail.com>
> To: "Xiaoli Feng" <xifeng@redhat.com>
> Cc: "Christoph Hellwig" <hch@infradead.org>, fstests@vger.kernel.org, "Ronnie Sahlberg" <lsahlber@redhat.com>, "CIFS"
> <linux-cifs@vger.kernel.org>
> Sent: Thursday, December 20, 2018 1:37:57 PM
> Subject: Re: [PATCH v1] xfstests: filter the default EA
>
> On Wed, Dec 19, 2018 at 11:23 PM Xiaoli Feng <xifeng@redhat.com> wrote:
> >
> > Hello,
> >
> > ----- Original Message -----
> > > From: "Steve French" <smfrench@gmail.com>
> > > To: "Xiaoli Feng" <xifeng@redhat.com>
> > > Cc: "Christoph Hellwig" <hch@infradead.org>, fstests@vger.kernel.org,
> > > "Ronnie Sahlberg" <lsahlber@redhat.com>, "CIFS"
> > > <linux-cifs@vger.kernel.org>
> > > Sent: Thursday, December 20, 2018 11:53:09 AM
> > > Subject: Re: [PATCH v1] xfstests: filter the default EA
> > >
> > > What server type (presumably Samba if mounting to localhost)? What
> >
> > Yes, it's Samba.
> <snip>
> > The dialect is smb3.02.
>
> Since cifs.ko does not know about or special case this attribute, the
> next step is to figure out who is returning this attribute - Samba
> server or something above the client.
> Typically I approach this by doing a quick wireshark trace (or follow
> the process described at
> https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting#Wire_Captures),
> that will very quickly allow you to determine if it even came from the
> server. If it came from the server, follow the normal process for
> enabling Samba logging (setting log level in smb.conf and looking at
> why the xattr is being returned by examining the corresponding log
> file in /var/log/samba/). If you don't see it coming from the
> server, then enabling the usual dynamic trace (trace-cmd) of the
> syscall may be helpful.
> Note that there are a fairly large number of xattr related trace
> points (see /sys/kernel/tracing/events/syscalls). Looking at this
> does remind me that I should add dynamic trace points to cifs.ko for
> smb3_get/set xattrs (for the error and success cases) although it
> probably wouldn't be needed in this case - it would have allowed us to
> more quickly rule out Samba returning this.
This EA information is returned from Samba server.
GetInfo Response (0x10)
[Class: FILE_INFO (0x01)]
[InfoLevel: SMB2_FILE_FULL_EA_INFO (0x0f)]
StructureSize: 0x0009
0000 0000 0000 100. = Fixed Part Length: 4
.... .... .... ...1 = Dynamic Part: True
Blob Offset: 0x00000048
Blob Length: 56
SMB2_FILE_FULL_EA_INFO
EA: security.selinux := unconfined_u:object_r:mnt_t:s0
Next Offset: 0
EA Flags: 0x00
EA Name Length: 16
EA Data Length: 31
EA Name: security.selinux
EA Data: 756e636f6e66696e65645f753a6f626a6563745f723a6d6e...
>
> > > What does the getfattr on the local path show as the attributes?
> >
> > It shows nothing for local path on xfs filesystem.
> >
> > # touch /file
> > # getfattr /file
> > #
>
next prev parent reply other threads:[~2018-12-21 4:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-19 3:44 [PATCH v1] xfstests: filter the default EA XiaoLi Feng
2018-12-19 7:18 ` Christoph Hellwig
2018-12-20 2:17 ` Xiaoli Feng
2018-12-20 2:24 ` Steve French
2018-12-20 3:03 ` Xiaoli Feng
2018-12-20 3:53 ` Steve French
2018-12-20 5:23 ` Xiaoli Feng
2018-12-20 5:37 ` Steve French
2018-12-21 4:01 ` Xiaoli Feng [this message]
2018-12-21 4:14 ` Steve French
2018-12-20 7:41 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=845013525.61641054.1545364895874.JavaMail.zimbra@redhat.com \
--to=xifeng@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=hch@infradead.org \
--cc=linux-cifs@vger.kernel.org \
--cc=lsahlber@redhat.com \
--cc=smfrench@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox