mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
switch security_path_chmod() to struct path *
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
d8c9584ea2
commit
cdcf116d44
6 changed files with 15 additions and 25 deletions
|
|
@ -353,17 +353,14 @@ static int tomoyo_file_ioctl(struct file *file, unsigned int cmd,
|
|||
/**
|
||||
* tomoyo_path_chmod - Target for security_path_chmod().
|
||||
*
|
||||
* @dentry: Pointer to "struct dentry".
|
||||
* @mnt: Pointer to "struct vfsmount".
|
||||
* @mode: DAC permission mode.
|
||||
* @path: Pointer to "struct path".
|
||||
* @mode: DAC permission mode.
|
||||
*
|
||||
* Returns 0 on success, negative value otherwise.
|
||||
*/
|
||||
static int tomoyo_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
|
||||
umode_t mode)
|
||||
static int tomoyo_path_chmod(struct path *path, umode_t mode)
|
||||
{
|
||||
struct path path = { mnt, dentry };
|
||||
return tomoyo_path_number_perm(TOMOYO_TYPE_CHMOD, &path,
|
||||
return tomoyo_path_number_perm(TOMOYO_TYPE_CHMOD, path,
|
||||
mode & S_IALLUGO);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue