summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-da9055.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2021-07-28 15:47:33 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2021-08-13 07:41:05 +0300
commit7bb698f09bdd01fbb6d48c14bb1dde556dc1af00 (patch)
treeea8c59e2b72ecbc9fcacc0ecf91f349f1a480989 /drivers/rtc/rtc-da9055.c
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
downloadlinux-7bb698f09bdd01fbb6d48c14bb1dde556dc1af00.tar.xz
fs: Move notify_change permission checks into may_setattr
Move the permission checks in notify_change into a separate function to make them available to filesystems. When notify_change is called, the vfs performs those checks before calling into iop->setattr. However, a filesystem like gfs2 can only lock and revalidate the inode inside ->setattr, and it must then repeat those checks to err on the safe side. It would be nice to get rid of the double checking, but moving the permission check into iop->setattr altogether isn't really an option. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/rtc/rtc-da9055.c')
0 files changed, 0 insertions, 0 deletions