Skip to content

Commit 4572bef

Browse files
author
Al Viro
committed
switch ->path_mkdir() to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent d179333 commit 4572bef

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
@@ -1424,7 +1424,7 @@ struct security_operations {
14241424

14251425
#ifdef CONFIG_SECURITY_PATH
14261426
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);
14281428
int (*path_rmdir) (struct path *dir, struct dentry *dentry);
14291429
int (*path_mknod) (struct path *dir, struct dentry *dentry, int mode,
14301430
unsigned int dev);
@@ -2855,7 +2855,7 @@ static inline void security_skb_classify_flow(struct sk_buff *skb, struct flowi
28552855

28562856
#ifdef CONFIG_SECURITY_PATH
28572857
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);
28592859
int security_path_rmdir(struct path *dir, struct dentry *dentry);
28602860
int security_path_mknod(struct path *dir, struct dentry *dentry, int mode,
28612861
unsigned int dev);
@@ -2877,7 +2877,7 @@ static inline int security_path_unlink(struct path *dir, struct dentry *dentry)
28772877
}
28782878

28792879
static inline int security_path_mkdir(struct path *dir, struct dentry *dentry,
2880-
int mode)
2880+
umode_t mode)
28812881
{
28822882
return 0;
28832883
}

‎security/apparmor/lsm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static int apparmor_path_unlink(struct path *dir, struct dentry *dentry)
262262
}
263263

264264
static int apparmor_path_mkdir(struct path *dir, struct dentry *dentry,
265-
int mode)
265+
umode_t mode)
266266
{
267267
return common_perm_create(OP_MKDIR, dir, dentry, AA_MAY_CREATE,
268268
S_IFDIR);

‎security/capability.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static int cap_path_mknod(struct path *dir, struct dentry *dentry, int mode,
241241
return 0;
242242
}
243243

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)
245245
{
246246
return 0;
247247
}

‎security/security.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ int security_path_mknod(struct path *dir, struct dentry *dentry, int mode,
397397
}
398398
EXPORT_SYMBOL(security_path_mknod);
399399

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)
401401
{
402402
if (unlikely(IS_PRIVATE(dir->dentry->d_inode)))
403403
return 0;

‎security/tomoyo/tomoyo.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static int tomoyo_path_unlink(struct path *parent, struct dentry *dentry)
186186
* Returns 0 on success, negative value otherwise.
187187
*/
188188
static int tomoyo_path_mkdir(struct path *parent, struct dentry *dentry,
189-
int mode)
189+
umode_t mode)
190190
{
191191
struct path path = { parent->mnt, dentry };
192192
return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path,

0 commit comments

Comments
 (0)