diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 01:41:39 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:53 -0500 |
commit | 18bb1db3e7607e4a997d50991a6f9fa5b0f8722c (patch) | |
tree | 4ee4e584bc9a67f3ec14ce159d2d7d4a27e68d4a /security | |
parent | 8208a22bb8bd3c52ef634b4ff194f14892ab1713 (diff) |
switch vfs_mkdir() and ->mkdir() to umode_t
vfs_mkdir() gets int, but immediately drops everything that might not
fit into umode_t and that's the only caller of ->mkdir()...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r-- | security/capability.c | 2 | ||||
-rw-r--r-- | security/security.c | 2 | ||||
-rw-r--r-- | security/selinux/hooks.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/security/capability.c b/security/capability.c index 2984ea4f776f..ddd17892826a 100644 --- a/security/capability.c +++ b/security/capability.c | |||
@@ -148,7 +148,7 @@ static int cap_inode_symlink(struct inode *inode, struct dentry *dentry, | |||
148 | } | 148 | } |
149 | 149 | ||
150 | static int cap_inode_mkdir(struct inode *inode, struct dentry *dentry, | 150 | static int cap_inode_mkdir(struct inode *inode, struct dentry *dentry, |
151 | int mask) | 151 | umode_t mask) |
152 | { | 152 | { |
153 | return 0; | 153 | return 0; |
154 | } | 154 | } |
diff --git a/security/security.c b/security/security.c index e2f684aeb70c..be49eb5768bc 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -506,7 +506,7 @@ int security_inode_symlink(struct inode *dir, struct dentry *dentry, | |||
506 | return security_ops->inode_symlink(dir, dentry, old_name); | 506 | return security_ops->inode_symlink(dir, dentry, old_name); |
507 | } | 507 | } |
508 | 508 | ||
509 | int security_inode_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 509 | int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
510 | { | 510 | { |
511 | if (unlikely(IS_PRIVATE(dir))) | 511 | if (unlikely(IS_PRIVATE(dir))) |
512 | return 0; | 512 | return 0; |
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 1126c10a5e82..ad74ad24ce2a 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2618,7 +2618,7 @@ static int selinux_inode_symlink(struct inode *dir, struct dentry *dentry, const | |||
2618 | return may_create(dir, dentry, SECCLASS_LNK_FILE); | 2618 | return may_create(dir, dentry, SECCLASS_LNK_FILE); |
2619 | } | 2619 | } |
2620 | 2620 | ||
2621 | static int selinux_inode_mkdir(struct inode *dir, struct dentry *dentry, int mask) | 2621 | static int selinux_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mask) |
2622 | { | 2622 | { |
2623 | return may_create(dir, dentry, SECCLASS_DIR); | 2623 | return may_create(dir, dentry, SECCLASS_DIR); |
2624 | } | 2624 | } |