diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 01:42:34 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:53 -0500 |
commit | 4acdaf27ebe2034c342f3be57ef49aed1ad885ef (patch) | |
tree | d89a876ee19cd88609a587f8aa6c464a52ee6d98 /include | |
parent | 18bb1db3e7607e4a997d50991a6f9fa5b0f8722c (diff) |
switch ->create() to umode_t
vfs_create() ignores everything outside of 16bit subset of its
mode argument; switching it to umode_t is obviously equivalent
and it's the only caller of the method
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 4 | ||||
-rw-r--r-- | include/linux/security.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 3f7bd8b12e37..e40321a6e239 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1516,7 +1516,7 @@ extern void unlock_super(struct super_block *); | |||
1516 | /* | 1516 | /* |
1517 | * VFS helper functions.. | 1517 | * VFS helper functions.. |
1518 | */ | 1518 | */ |
1519 | extern int vfs_create(struct inode *, struct dentry *, int, struct nameidata *); | 1519 | extern int vfs_create(struct inode *, struct dentry *, umode_t, struct nameidata *); |
1520 | extern int vfs_mkdir(struct inode *, struct dentry *, umode_t); | 1520 | extern int vfs_mkdir(struct inode *, struct dentry *, umode_t); |
1521 | extern int vfs_mknod(struct inode *, struct dentry *, int, dev_t); | 1521 | extern int vfs_mknod(struct inode *, struct dentry *, int, dev_t); |
1522 | extern int vfs_symlink(struct inode *, struct dentry *, const char *); | 1522 | extern int vfs_symlink(struct inode *, struct dentry *, const char *); |
@@ -1619,7 +1619,7 @@ struct inode_operations { | |||
1619 | int (*readlink) (struct dentry *, char __user *,int); | 1619 | int (*readlink) (struct dentry *, char __user *,int); |
1620 | void (*put_link) (struct dentry *, struct nameidata *, void *); | 1620 | void (*put_link) (struct dentry *, struct nameidata *, void *); |
1621 | 1621 | ||
1622 | int (*create) (struct inode *,struct dentry *,int, struct nameidata *); | 1622 | int (*create) (struct inode *,struct dentry *,umode_t,struct nameidata *); |
1623 | int (*link) (struct dentry *,struct inode *,struct dentry *); | 1623 | int (*link) (struct dentry *,struct inode *,struct dentry *); |
1624 | int (*unlink) (struct inode *,struct dentry *); | 1624 | int (*unlink) (struct inode *,struct dentry *); |
1625 | int (*symlink) (struct inode *,struct dentry *,const char *); | 1625 | int (*symlink) (struct inode *,struct dentry *,const char *); |
diff --git a/include/linux/security.h b/include/linux/security.h index 16cbc58cb13b..8fc22373db34 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -1447,7 +1447,7 @@ struct security_operations { | |||
1447 | const struct qstr *qstr, char **name, | 1447 | const struct qstr *qstr, char **name, |
1448 | void **value, size_t *len); | 1448 | void **value, size_t *len); |
1449 | int (*inode_create) (struct inode *dir, | 1449 | int (*inode_create) (struct inode *dir, |
1450 | struct dentry *dentry, int mode); | 1450 | struct dentry *dentry, umode_t mode); |
1451 | int (*inode_link) (struct dentry *old_dentry, | 1451 | int (*inode_link) (struct dentry *old_dentry, |
1452 | struct inode *dir, struct dentry *new_dentry); | 1452 | struct inode *dir, struct dentry *new_dentry); |
1453 | int (*inode_unlink) (struct inode *dir, struct dentry *dentry); | 1453 | int (*inode_unlink) (struct inode *dir, struct dentry *dentry); |
@@ -1716,7 +1716,7 @@ int security_inode_init_security(struct inode *inode, struct inode *dir, | |||
1716 | int security_old_inode_init_security(struct inode *inode, struct inode *dir, | 1716 | int security_old_inode_init_security(struct inode *inode, struct inode *dir, |
1717 | const struct qstr *qstr, char **name, | 1717 | const struct qstr *qstr, char **name, |
1718 | void **value, size_t *len); | 1718 | void **value, size_t *len); |
1719 | int security_inode_create(struct inode *dir, struct dentry *dentry, int mode); | 1719 | int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode); |
1720 | int security_inode_link(struct dentry *old_dentry, struct inode *dir, | 1720 | int security_inode_link(struct dentry *old_dentry, struct inode *dir, |
1721 | struct dentry *new_dentry); | 1721 | struct dentry *new_dentry); |
1722 | int security_inode_unlink(struct inode *dir, struct dentry *dentry); | 1722 | int security_inode_unlink(struct inode *dir, struct dentry *dentry); |
@@ -2061,7 +2061,7 @@ static inline int security_old_inode_init_security(struct inode *inode, | |||
2061 | 2061 | ||
2062 | static inline int security_inode_create(struct inode *dir, | 2062 | static inline int security_inode_create(struct inode *dir, |
2063 | struct dentry *dentry, | 2063 | struct dentry *dentry, |
2064 | int mode) | 2064 | umode_t mode) |
2065 | { | 2065 | { |
2066 | return 0; | 2066 | return 0; |
2067 | } | 2067 | } |