Skip to content

Commit 04fc66e

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

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎include/linux/security.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ struct security_operations {
14261426
int (*path_unlink) (struct path *dir, struct dentry *dentry);
14271427
int (*path_mkdir) (struct path *dir, struct dentry *dentry, umode_t mode);
14281428
int (*path_rmdir) (struct path *dir, struct dentry *dentry);
1429-
int (*path_mknod) (struct path *dir, struct dentry *dentry, int mode,
1429+
int (*path_mknod) (struct path *dir, struct dentry *dentry, umode_t mode,
14301430
unsigned int dev);
14311431
int (*path_truncate) (struct path *path);
14321432
int (*path_symlink) (struct path *dir, struct dentry *dentry,
@@ -2857,7 +2857,7 @@ static inline void security_skb_classify_flow(struct sk_buff *skb, struct flowi
28572857
int security_path_unlink(struct path *dir, struct dentry *dentry);
28582858
int security_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode);
28592859
int security_path_rmdir(struct path *dir, struct dentry *dentry);
2860-
int security_path_mknod(struct path *dir, struct dentry *dentry, int mode,
2860+
int security_path_mknod(struct path *dir, struct dentry *dentry, umode_t mode,
28612861
unsigned int dev);
28622862
int security_path_truncate(struct path *path);
28632863
int security_path_symlink(struct path *dir, struct dentry *dentry,
@@ -2888,7 +2888,7 @@ static inline int security_path_rmdir(struct path *dir, struct dentry *dentry)
28882888
}
28892889

28902890
static inline int security_path_mknod(struct path *dir, struct dentry *dentry,
2891-
int mode, unsigned int dev)
2891+
umode_t mode, unsigned int dev)
28922892
{
28932893
return 0;
28942894
}

‎net/unix/af_unix.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
847847
atomic_set(&addr->refcnt, 1);
848848

849849
if (sun_path[0]) {
850-
unsigned int mode;
850+
umode_t mode;
851851
err = 0;
852852
/*
853853
* Get the parent directory, calculate the hash for last

‎security/apparmor/lsm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static int apparmor_path_rmdir(struct path *dir, struct dentry *dentry)
274274
}
275275

276276
static int apparmor_path_mknod(struct path *dir, struct dentry *dentry,
277-
int mode, unsigned int dev)
277+
umode_t mode, unsigned int dev)
278278
{
279279
return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode);
280280
}

‎security/capability.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static void cap_inode_getsecid(const struct inode *inode, u32 *secid)
235235
}
236236

237237
#ifdef CONFIG_SECURITY_PATH
238-
static int cap_path_mknod(struct path *dir, struct dentry *dentry, int mode,
238+
static int cap_path_mknod(struct path *dir, struct dentry *dentry, umode_t mode,
239239
unsigned int dev)
240240
{
241241
return 0;

‎security/security.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ int security_old_inode_init_security(struct inode *inode, struct inode *dir,
388388
EXPORT_SYMBOL(security_old_inode_init_security);
389389

390390
#ifdef CONFIG_SECURITY_PATH
391-
int security_path_mknod(struct path *dir, struct dentry *dentry, int mode,
391+
int security_path_mknod(struct path *dir, struct dentry *dentry, umode_t mode,
392392
unsigned int dev)
393393
{
394394
if (unlikely(IS_PRIVATE(dir->dentry->d_inode)))

‎security/tomoyo/tomoyo.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static int tomoyo_path_symlink(struct path *parent, struct dentry *dentry,
234234
* Returns 0 on success, negative value otherwise.
235235
*/
236236
static int tomoyo_path_mknod(struct path *parent, struct dentry *dentry,
237-
int mode, unsigned int dev)
237+
umode_t mode, unsigned int dev)
238238
{
239239
struct path path = { parent->mnt, dentry };
240240
int type = TOMOYO_TYPE_CREATE;

0 commit comments

Comments
 (0)