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/linux/security.h | |
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/linux/security.h')
-rw-r--r-- | include/linux/security.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 | } |