mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Merge branch 'for-linus' of git://git.infradead.org/users/eparis/notify
* 'for-linus' of git://git.infradead.org/users/eparis/notify: (132 commits) fanotify: use both marks when possible fsnotify: pass both the vfsmount mark and inode mark fsnotify: walk the inode and vfsmount lists simultaneously fsnotify: rework ignored mark flushing fsnotify: remove global fsnotify groups lists fsnotify: remove group->mask fsnotify: remove the global masks fsnotify: cleanup should_send_event fanotify: use the mark in handler functions audit: use the mark in handler functions dnotify: use the mark in handler functions inotify: use the mark in handler functions fsnotify: send fsnotify_mark to groups in event handling functions fsnotify: Exchange list heads instead of moving elements fsnotify: srcu to protect read side of inode and vfsmount locks fsnotify: use an explicit flag to indicate fsnotify_destroy_mark has been called fsnotify: use _rcu functions for mark list traversal fsnotify: place marks on object in order of group memory address vfs/fsnotify: fsnotify_close can delay the final work in fput fsnotify: store struct file not struct path ... Fix up trivial delete/modify conflict in fs/notify/inotify/inotify.c.
This commit is contained in:
commit
8c8946f509
58 changed files with 3208 additions and 2389 deletions
|
@ -619,7 +619,13 @@ void security_inode_getsecid(const struct inode *inode, u32 *secid)
|
|||
|
||||
int security_file_permission(struct file *file, int mask)
|
||||
{
|
||||
return security_ops->file_permission(file, mask);
|
||||
int ret;
|
||||
|
||||
ret = security_ops->file_permission(file, mask);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return fsnotify_perm(file, mask);
|
||||
}
|
||||
|
||||
int security_file_alloc(struct file *file)
|
||||
|
@ -683,7 +689,13 @@ int security_file_receive(struct file *file)
|
|||
|
||||
int security_dentry_open(struct file *file, const struct cred *cred)
|
||||
{
|
||||
return security_ops->dentry_open(file, cred);
|
||||
int ret;
|
||||
|
||||
ret = security_ops->dentry_open(file, cred);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return fsnotify_perm(file, MAY_OPEN);
|
||||
}
|
||||
|
||||
int security_task_create(unsigned long clone_flags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue