mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ANDROID: vfs: Add setattr2 for filesystems with per mount permissions
This allows filesystems to use their mount private data to
influence the permssions they use in setattr2. It has
been separated into a new call to avoid disrupting current
setattr users.
Test: HiKey/X15 + Pie + android-mainline,
and HiKey + AOSP Maser + android-mainline,
directories under /sdcard created,
output of mount is right,
CTS test collecting device infor works
Change-Id: I19959038309284448f1b7f232d579674ef546385
Signed-off-by: Daniel Rosenberg <[email protected]>
Signed-off-by: Yongqin Liu <[email protected]>
This commit is contained in:
parent
c0dbfed5ff
commit
044366659c
7 changed files with 37 additions and 16 deletions
|
|
@ -59,7 +59,7 @@ static int utimes_common(const struct path *path, struct timespec64 *times)
|
|||
}
|
||||
retry_deleg:
|
||||
inode_lock(inode);
|
||||
error = notify_change(path->dentry, &newattrs, &delegated_inode);
|
||||
error = notify_change2(path->mnt, path->dentry, &newattrs, &delegated_inode);
|
||||
inode_unlock(inode);
|
||||
if (delegated_inode) {
|
||||
error = break_deleg_wait(&delegated_inode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue