Skip to content

Commit 910f4ec

Browse files
author
Al Viro
committed
switch security_path_chmod() to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 49f0a07 commit 910f4ec

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎include/linux/security.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ struct security_operations {
14361436
int (*path_rename) (struct path *old_dir, struct dentry *old_dentry,
14371437
struct path *new_dir, struct dentry *new_dentry);
14381438
int (*path_chmod) (struct dentry *dentry, struct vfsmount *mnt,
1439-
mode_t mode);
1439+
umode_t mode);
14401440
int (*path_chown) (struct path *path, uid_t uid, gid_t gid);
14411441
int (*path_chroot) (struct path *path);
14421442
#endif
@@ -2867,7 +2867,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
28672867
int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
28682868
struct path *new_dir, struct dentry *new_dentry);
28692869
int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
2870-
mode_t mode);
2870+
umode_t mode);
28712871
int security_path_chown(struct path *path, uid_t uid, gid_t gid);
28722872
int security_path_chroot(struct path *path);
28732873
#else /* CONFIG_SECURITY_PATH */
@@ -2921,7 +2921,7 @@ static inline int security_path_rename(struct path *old_dir,
29212921

29222922
static inline int security_path_chmod(struct dentry *dentry,
29232923
struct vfsmount *mnt,
2924-
mode_t mode)
2924+
umode_t mode)
29252925
{
29262926
return 0;
29272927
}

‎security/apparmor/lsm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ static int apparmor_path_rename(struct path *old_dir, struct dentry *old_dentry,
345345
}
346346

347347
static int apparmor_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
348-
mode_t mode)
348+
umode_t mode)
349349
{
350350
if (!mediated_filesystem(dentry->d_inode))
351351
return 0;

‎security/capability.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static int cap_path_truncate(struct path *path)
280280
}
281281

282282
static int cap_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
283-
mode_t mode)
283+
umode_t mode)
284284
{
285285
return 0;
286286
}

‎security/security.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ int security_path_truncate(struct path *path)
455455
}
456456

457457
int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
458-
mode_t mode)
458+
umode_t mode)
459459
{
460460
if (unlikely(IS_PRIVATE(dentry->d_inode)))
461461
return 0;

‎security/tomoyo/tomoyo.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ static int tomoyo_file_ioctl(struct file *file, unsigned int cmd,
360360
* Returns 0 on success, negative value otherwise.
361361
*/
362362
static int tomoyo_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
363-
mode_t mode)
363+
umode_t mode)
364364
{
365365
struct path path = { mnt, dentry };
366366
return tomoyo_path_number_perm(TOMOYO_TYPE_CHMOD, &path,

0 commit comments

Comments
 (0)