All of lore.kernel.org
 help / color / mirror / Atom feed
* Observed unexpected behavior of BTRFS in d_instantiate
@ 2011-04-27  3:15 Casey Schaufler
  2011-04-28 13:30 ` Stephen Smalley
  0 siblings, 1 reply; 7+ messages in thread
From: Casey Schaufler @ 2011-04-27  3:15 UTC (permalink / raw)
  To: LSM, linux-btrfs; +Cc: Casey Schaufler



I have been tracking down an problem that we've been seeing
with Smack on top of btrfs and have narrowed it down to a check
in smack_d_instantiate() that checks to see if the underlying
filesystem supports extended attributes by looking at

    inode->i_op->getxattr

If the filesystem has no entry for getxattr it is assumed that
it does not support extended attributes. The Smack code clearly
finds this value to be NULL for btrfs and uses a fallback value.
Clearly something is amiss, as other code paths clearly find the
i_op->getxattr function and use it to effect. The btrfs code
quite obviously includes getxattr functions.

So, what is btrfs up to such that the inode ops does not include
getxattr when security_d_instantiate is called? I am led to
understand that SELinux has worked around this, but looking at
the SELinux code I expect that there is a problem there as well.

Thank you.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-28 17:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-27  3:15 Observed unexpected behavior of BTRFS in d_instantiate Casey Schaufler
2011-04-28 13:30 ` Stephen Smalley
2011-04-28 17:03   ` Casey Schaufler
2011-04-28 17:13     ` Stephen Smalley
2011-04-28 17:23       ` Stephen Smalley
2011-04-28 17:27         ` Chris Mason
2011-04-28 17:52           ` Casey Schaufler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.