]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: Copy up lower inode attrs after setting lower xattr
authorTyler Hicks <tyhicks@canonical.com>
Tue, 7 Feb 2012 23:55:40 +0000 (17:55 -0600)
committerTyler Hicks <tyhicks@canonical.com>
Thu, 16 Feb 2012 22:06:27 +0000 (16:06 -0600)
commit83c475f8ef7d4f4b28f1bf77ae389c96c661f8f6
treec2cb3c9cfbee7c041d137296b72f311179a41f0c
parentf8e01398aaa2883858a0d34e4db361f4509dc79c
eCryptfs: Copy up lower inode attrs after setting lower xattr

After passing through a ->setxattr() call, eCryptfs needs to copy the
inode attributes from the lower inode to the eCryptfs inode, as they
may have changed in the lower filesystem's ->setxattr() path.

One example is if an extended attribute containing a POSIX Access
Control List is being set. The new ACL may cause the lower filesystem to
modify the mode of the lower inode and the eCryptfs inode would need to
be updated to reflect the new mode.

https://launchpad.net/bugs/926292

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Reported-by: Sebastien Bacher <seb128@ubuntu.com>
Cc: John Johansen <john.johansen@canonical.com>
Cc: <stable@vger.kernel.org>
fs/ecryptfs/inode.c