switch security_path_chmod() to umode_t
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jul 2011 08:25:58 +0000 (04:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:55:13 +0000 (22:55 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/security.h
security/apparmor/lsm.c
security/capability.c
security/security.c
security/tomoyo/tomoyo.c

index 0e5aeb86dfc402c661c5e94fa0f446a586634657..f2c1fd7978a5ee63be2c1338bceebde916919180 100644 (file)
@@ -1436,7 +1436,7 @@ struct security_operations {
        int (*path_rename) (struct path *old_dir, struct dentry *old_dentry,
                            struct path *new_dir, struct dentry *new_dentry);
        int (*path_chmod) (struct dentry *dentry, struct vfsmount *mnt,
-                          mode_t mode);
+                          umode_t mode);
        int (*path_chown) (struct path *path, uid_t uid, gid_t gid);
        int (*path_chroot) (struct path *path);
 #endif
@@ -2867,7 +2867,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
 int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
                         struct path *new_dir, struct dentry *new_dentry);
 int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
-                       mode_t mode);
+                       umode_t mode);
 int security_path_chown(struct path *path, uid_t uid, gid_t gid);
 int security_path_chroot(struct path *path);
 #else  /* CONFIG_SECURITY_PATH */
@@ -2921,7 +2921,7 @@ static inline int security_path_rename(struct path *old_dir,
 
 static inline int security_path_chmod(struct dentry *dentry,
                                      struct vfsmount *mnt,
-                                     mode_t mode)
+                                     umode_t mode)
 {
        return 0;
 }
index 37832026e58a234c249b44959f6cba5aa1dacbb5..afbe49822bed796c4abf677a08527d5d790eb614 100644 (file)
@@ -345,7 +345,7 @@ static int apparmor_path_rename(struct path *old_dir, struct dentry *old_dentry,
 }
 
 static int apparmor_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
-                              mode_t mode)
+                              umode_t mode)
 {
        if (!mediated_filesystem(dentry->d_inode))
                return 0;
index 9def035cd572c8fdbe228f5dfd447f9cdc25d5a4..4f24bee49f260a061ac581315a965b49464f9b55 100644 (file)
@@ -280,7 +280,7 @@ static int cap_path_truncate(struct path *path)
 }
 
 static int cap_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
-                         mode_t mode)
+                         umode_t mode)
 {
        return 0;
 }
index 8cc0f0caa640702c0ccbe00d273bae7bfaebe7de..3635a13cd4ab0567ed010cce3ac40686abb73048 100644 (file)
@@ -455,7 +455,7 @@ int security_path_truncate(struct path *path)
 }
 
 int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
-                       mode_t mode)
+                       umode_t mode)
 {
        if (unlikely(IS_PRIVATE(dentry->d_inode)))
                return 0;
index 4b327b6917451bbe8f4ad2fc2cccad113a9cbf46..a4b840ea00788ec639efaff183bfc52963269bab 100644 (file)
@@ -360,7 +360,7 @@ static int tomoyo_file_ioctl(struct file *file, unsigned int cmd,
  * Returns 0 on success, negative value otherwise.
  */
 static int tomoyo_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
-                            mode_t mode)
+                            umode_t mode)
 {
        struct path path = { mnt, dentry };
        return tomoyo_path_number_perm(TOMOYO_TYPE_CHMOD, &path,