Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

switch ->path_mkdir() to umode_t

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 4572befe d179333f

+7 -7
+3 -3
include/linux/security.h
··· 1424 1424 1425 1425 #ifdef CONFIG_SECURITY_PATH 1426 1426 int (*path_unlink) (struct path *dir, struct dentry *dentry); 1427 - int (*path_mkdir) (struct path *dir, struct dentry *dentry, int mode); 1427 + int (*path_mkdir) (struct path *dir, struct dentry *dentry, umode_t mode); 1428 1428 int (*path_rmdir) (struct path *dir, struct dentry *dentry); 1429 1429 int (*path_mknod) (struct path *dir, struct dentry *dentry, int mode, 1430 1430 unsigned int dev); ··· 2855 2855 2856 2856 #ifdef CONFIG_SECURITY_PATH 2857 2857 int security_path_unlink(struct path *dir, struct dentry *dentry); 2858 - int security_path_mkdir(struct path *dir, struct dentry *dentry, int mode); 2858 + int security_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode); 2859 2859 int security_path_rmdir(struct path *dir, struct dentry *dentry); 2860 2860 int security_path_mknod(struct path *dir, struct dentry *dentry, int mode, 2861 2861 unsigned int dev); ··· 2877 2877 } 2878 2878 2879 2879 static inline int security_path_mkdir(struct path *dir, struct dentry *dentry, 2880 - int mode) 2880 + umode_t mode) 2881 2881 { 2882 2882 return 0; 2883 2883 }
+1 -1
security/apparmor/lsm.c
··· 262 262 } 263 263 264 264 static int apparmor_path_mkdir(struct path *dir, struct dentry *dentry, 265 - int mode) 265 + umode_t mode) 266 266 { 267 267 return common_perm_create(OP_MKDIR, dir, dentry, AA_MAY_CREATE, 268 268 S_IFDIR);
+1 -1
security/capability.c
··· 241 241 return 0; 242 242 } 243 243 244 - static int cap_path_mkdir(struct path *dir, struct dentry *dentry, int mode) 244 + static int cap_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode) 245 245 { 246 246 return 0; 247 247 }
+1 -1
security/security.c
··· 397 397 } 398 398 EXPORT_SYMBOL(security_path_mknod); 399 399 400 - int security_path_mkdir(struct path *dir, struct dentry *dentry, int mode) 400 + int security_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode) 401 401 { 402 402 if (unlikely(IS_PRIVATE(dir->dentry->d_inode))) 403 403 return 0;
+1 -1
security/tomoyo/tomoyo.c
··· 186 186 * Returns 0 on success, negative value otherwise. 187 187 */ 188 188 static int tomoyo_path_mkdir(struct path *parent, struct dentry *dentry, 189 - int mode) 189 + umode_t mode) 190 190 { 191 191 struct path path = { parent->mnt, dentry }; 192 192 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path,