diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/security/security.c b/security/security.c index e2f684aeb70c..214502c772ab 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -388,7 +388,7 @@ int security_old_inode_init_security(struct inode *inode, struct inode *dir, | |||
388 | EXPORT_SYMBOL(security_old_inode_init_security); | 388 | EXPORT_SYMBOL(security_old_inode_init_security); |
389 | 389 | ||
390 | #ifdef CONFIG_SECURITY_PATH | 390 | #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, |
392 | unsigned int dev) | 392 | unsigned int dev) |
393 | { | 393 | { |
394 | if (unlikely(IS_PRIVATE(dir->dentry->d_inode))) | 394 | if (unlikely(IS_PRIVATE(dir->dentry->d_inode))) |
@@ -397,7 +397,7 @@ int security_path_mknod(struct path *dir, struct dentry *dentry, int mode, | |||
397 | } | 397 | } |
398 | EXPORT_SYMBOL(security_path_mknod); | 398 | EXPORT_SYMBOL(security_path_mknod); |
399 | 399 | ||
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) |
401 | { | 401 | { |
402 | if (unlikely(IS_PRIVATE(dir->dentry->d_inode))) | 402 | if (unlikely(IS_PRIVATE(dir->dentry->d_inode))) |
403 | return 0; | 403 | return 0; |
@@ -454,12 +454,11 @@ int security_path_truncate(struct path *path) | |||
454 | return security_ops->path_truncate(path); | 454 | return security_ops->path_truncate(path); |
455 | } | 455 | } |
456 | 456 | ||
457 | int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt, | 457 | int security_path_chmod(struct path *path, umode_t mode) |
458 | mode_t mode) | ||
459 | { | 458 | { |
460 | if (unlikely(IS_PRIVATE(dentry->d_inode))) | 459 | if (unlikely(IS_PRIVATE(path->dentry->d_inode))) |
461 | return 0; | 460 | return 0; |
462 | return security_ops->path_chmod(dentry, mnt, mode); | 461 | return security_ops->path_chmod(path, mode); |
463 | } | 462 | } |
464 | 463 | ||
465 | int security_path_chown(struct path *path, uid_t uid, gid_t gid) | 464 | int security_path_chown(struct path *path, uid_t uid, gid_t gid) |
@@ -475,7 +474,7 @@ int security_path_chroot(struct path *path) | |||
475 | } | 474 | } |
476 | #endif | 475 | #endif |
477 | 476 | ||
478 | int security_inode_create(struct inode *dir, struct dentry *dentry, int mode) | 477 | int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode) |
479 | { | 478 | { |
480 | if (unlikely(IS_PRIVATE(dir))) | 479 | if (unlikely(IS_PRIVATE(dir))) |
481 | return 0; | 480 | return 0; |
@@ -506,7 +505,7 @@ int security_inode_symlink(struct inode *dir, struct dentry *dentry, | |||
506 | return security_ops->inode_symlink(dir, dentry, old_name); | 505 | return security_ops->inode_symlink(dir, dentry, old_name); |
507 | } | 506 | } |
508 | 507 | ||
509 | int security_inode_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 508 | int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) |
510 | { | 509 | { |
511 | if (unlikely(IS_PRIVATE(dir))) | 510 | if (unlikely(IS_PRIVATE(dir))) |
512 | return 0; | 511 | return 0; |
@@ -521,7 +520,7 @@ int security_inode_rmdir(struct inode *dir, struct dentry *dentry) | |||
521 | return security_ops->inode_rmdir(dir, dentry); | 520 | return security_ops->inode_rmdir(dir, dentry); |
522 | } | 521 | } |
523 | 522 | ||
524 | int security_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) | 523 | int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) |
525 | { | 524 | { |
526 | if (unlikely(IS_PRIVATE(dir))) | 525 | if (unlikely(IS_PRIVATE(dir))) |
527 | return 0; | 526 | return 0; |