diff options
author | Casey Schaufler <casey@schaufler-ca.com> | 2011-12-15 10:09:07 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-12-15 10:50:38 -0500 |
commit | ad19db71f498fd858dd84ce603efcf97e321f184 (patch) | |
tree | 2e78aa71cf3108ce34fc3e97ca1fecfad63047d2 /fs/hfs | |
parent | 8f3b65a3d66bcc086e1eb040b7545e70681f2ed1 (diff) | |
download | linux-ad19db71f498fd858dd84ce603efcf97e321f184.tar.bz2 |
BTRFS: Establish i_ops before calling d_instantiate
The Smack LSM hook for security_d_instantiate checks
the inode's i_op->getxattr value to determine if the
containing filesystem supports extended attributes.
The BTRFS filesystem sets the inode's i_op value only
after it has instantiated the inode. This results in
Smack incorrectly giving new BTRFS inodes attributes
from the filesystem defaults on the assumption that
values can't be stored on the filesystem. This patch
moves the assignment of inode operation vectors ahead
of the calls to d_instantiate, letting Smack know that
the filesystem supports extended attributes. There
should be no impact on the performance or behavior of
BTRFS.
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions