diff options
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 24fc29540aa..5bcb395a49d 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -471,8 +471,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) | |||
471 | * @path_truncate: | 471 | * @path_truncate: |
472 | * Check permission before truncating a file. | 472 | * Check permission before truncating a file. |
473 | * @path contains the path structure for the file. | 473 | * @path contains the path structure for the file. |
474 | * @length is the new length of the file. | ||
475 | * @time_attrs is the flags passed to do_truncate(). | ||
476 | * Return 0 if permission is granted. | 474 | * Return 0 if permission is granted. |
477 | * @inode_getattr: | 475 | * @inode_getattr: |
478 | * Check permission before obtaining file attributes. | 476 | * Check permission before obtaining file attributes. |
@@ -1413,8 +1411,7 @@ struct security_operations { | |||
1413 | int (*path_rmdir) (struct path *dir, struct dentry *dentry); | 1411 | int (*path_rmdir) (struct path *dir, struct dentry *dentry); |
1414 | int (*path_mknod) (struct path *dir, struct dentry *dentry, int mode, | 1412 | int (*path_mknod) (struct path *dir, struct dentry *dentry, int mode, |
1415 | unsigned int dev); | 1413 | unsigned int dev); |
1416 | int (*path_truncate) (struct path *path, loff_t length, | 1414 | int (*path_truncate) (struct path *path); |
1417 | unsigned int time_attrs); | ||
1418 | int (*path_symlink) (struct path *dir, struct dentry *dentry, | 1415 | int (*path_symlink) (struct path *dir, struct dentry *dentry, |
1419 | const char *old_name); | 1416 | const char *old_name); |
1420 | int (*path_link) (struct dentry *old_dentry, struct path *new_dir, | 1417 | int (*path_link) (struct dentry *old_dentry, struct path *new_dir, |
@@ -2807,8 +2804,7 @@ int security_path_mkdir(struct path *dir, struct dentry *dentry, int mode); | |||
2807 | int security_path_rmdir(struct path *dir, struct dentry *dentry); | 2804 | int security_path_rmdir(struct path *dir, struct dentry *dentry); |
2808 | int security_path_mknod(struct path *dir, struct dentry *dentry, int mode, | 2805 | int security_path_mknod(struct path *dir, struct dentry *dentry, int mode, |
2809 | unsigned int dev); | 2806 | unsigned int dev); |
2810 | int security_path_truncate(struct path *path, loff_t length, | 2807 | int security_path_truncate(struct path *path); |
2811 | unsigned int time_attrs); | ||
2812 | int security_path_symlink(struct path *dir, struct dentry *dentry, | 2808 | int security_path_symlink(struct path *dir, struct dentry *dentry, |
2813 | const char *old_name); | 2809 | const char *old_name); |
2814 | int security_path_link(struct dentry *old_dentry, struct path *new_dir, | 2810 | int security_path_link(struct dentry *old_dentry, struct path *new_dir, |
@@ -2842,8 +2838,7 @@ static inline int security_path_mknod(struct path *dir, struct dentry *dentry, | |||
2842 | return 0; | 2838 | return 0; |
2843 | } | 2839 | } |
2844 | 2840 | ||
2845 | static inline int security_path_truncate(struct path *path, loff_t length, | 2841 | static inline int security_path_truncate(struct path *path) |
2846 | unsigned int time_attrs) | ||
2847 | { | 2842 | { |
2848 | return 0; | 2843 | return 0; |
2849 | } | 2844 | } |