diff options
Diffstat (limited to 'include/linux/security.h')
| -rw-r--r-- | include/linux/security.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 0c8819170463..a22219afff09 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #define __LINUX_SECURITY_H | 23 | #define __LINUX_SECURITY_H |
| 24 | 24 | ||
| 25 | #include <linux/fs.h> | 25 | #include <linux/fs.h> |
| 26 | #include <linux/fsnotify.h> | ||
| 26 | #include <linux/binfmts.h> | 27 | #include <linux/binfmts.h> |
| 27 | #include <linux/signal.h> | 28 | #include <linux/signal.h> |
| 28 | #include <linux/resource.h> | 29 | #include <linux/resource.h> |
| @@ -470,8 +471,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) | |||
| 470 | * @path_truncate: | 471 | * @path_truncate: |
| 471 | * Check permission before truncating a file. | 472 | * Check permission before truncating a file. |
| 472 | * @path contains the path structure for the file. | 473 | * @path contains the path structure for the file. |
| 473 | * @length is the new length of the file. | ||
| 474 | * @time_attrs is the flags passed to do_truncate(). | ||
| 475 | * Return 0 if permission is granted. | 474 | * Return 0 if permission is granted. |
| 476 | * @inode_getattr: | 475 | * @inode_getattr: |
| 477 | * Check permission before obtaining file attributes. | 476 | * Check permission before obtaining file attributes. |
| @@ -1412,8 +1411,7 @@ struct security_operations { | |||
| 1412 | int (*path_rmdir) (struct path *dir, struct dentry *dentry); | 1411 | int (*path_rmdir) (struct path *dir, struct dentry *dentry); |
| 1413 | int (*path_mknod) (struct path *dir, struct dentry *dentry, int mode, | 1412 | int (*path_mknod) (struct path *dir, struct dentry *dentry, int mode, |
| 1414 | unsigned int dev); | 1413 | unsigned int dev); |
| 1415 | int (*path_truncate) (struct path *path, loff_t length, | 1414 | int (*path_truncate) (struct path *path); |
| 1416 | unsigned int time_attrs); | ||
| 1417 | int (*path_symlink) (struct path *dir, struct dentry *dentry, | 1415 | int (*path_symlink) (struct path *dir, struct dentry *dentry, |
| 1418 | const char *old_name); | 1416 | const char *old_name); |
| 1419 | int (*path_link) (struct dentry *old_dentry, struct path *new_dir, | 1417 | int (*path_link) (struct dentry *old_dentry, struct path *new_dir, |
| @@ -1501,7 +1499,8 @@ struct security_operations { | |||
| 1501 | int (*task_setnice) (struct task_struct *p, int nice); | 1499 | int (*task_setnice) (struct task_struct *p, int nice); |
| 1502 | int (*task_setioprio) (struct task_struct *p, int ioprio); | 1500 | int (*task_setioprio) (struct task_struct *p, int ioprio); |
| 1503 | int (*task_getioprio) (struct task_struct *p); | 1501 | int (*task_getioprio) (struct task_struct *p); |
| 1504 | int (*task_setrlimit) (unsigned int resource, struct rlimit *new_rlim); | 1502 | int (*task_setrlimit) (struct task_struct *p, unsigned int resource, |
| 1503 | struct rlimit *new_rlim); | ||
| 1505 | int (*task_setscheduler) (struct task_struct *p, int policy, | 1504 | int (*task_setscheduler) (struct task_struct *p, int policy, |
| 1506 | struct sched_param *lp); | 1505 | struct sched_param *lp); |
| 1507 | int (*task_getscheduler) (struct task_struct *p); | 1506 | int (*task_getscheduler) (struct task_struct *p); |
| @@ -1751,7 +1750,8 @@ void security_task_getsecid(struct task_struct *p, u32 *secid); | |||
| 1751 | int security_task_setnice(struct task_struct *p, int nice); | 1750 | int security_task_setnice(struct task_struct *p, int nice); |
| 1752 | int security_task_setioprio(struct task_struct *p, int ioprio); | 1751 | int security_task_setioprio(struct task_struct *p, int ioprio); |
| 1753 | int security_task_getioprio(struct task_struct *p); | 1752 | int security_task_getioprio(struct task_struct *p); |
| 1754 | int security_task_setrlimit(unsigned int resource, struct rlimit *new_rlim); | 1753 | int security_task_setrlimit(struct task_struct *p, unsigned int resource, |
| 1754 | struct rlimit *new_rlim); | ||
| 1755 | int security_task_setscheduler(struct task_struct *p, | 1755 | int security_task_setscheduler(struct task_struct *p, |
| 1756 | int policy, struct sched_param *lp); | 1756 | int policy, struct sched_param *lp); |
| 1757 | int security_task_getscheduler(struct task_struct *p); | 1757 | int security_task_getscheduler(struct task_struct *p); |
| @@ -2313,7 +2313,8 @@ static inline int security_task_getioprio(struct task_struct *p) | |||
| 2313 | return 0; | 2313 | return 0; |
| 2314 | } | 2314 | } |
| 2315 | 2315 | ||
| 2316 | static inline int security_task_setrlimit(unsigned int resource, | 2316 | static inline int security_task_setrlimit(struct task_struct *p, |
| 2317 | unsigned int resource, | ||
| 2317 | struct rlimit *new_rlim) | 2318 | struct rlimit *new_rlim) |
| 2318 | { | 2319 | { |
| 2319 | return 0; | 2320 | return 0; |
| @@ -2806,8 +2807,7 @@ int security_path_mkdir(struct path *dir, struct dentry *dentry, int mode); | |||
| 2806 | int security_path_rmdir(struct path *dir, struct dentry *dentry); | 2807 | int security_path_rmdir(struct path *dir, struct dentry *dentry); |
| 2807 | int security_path_mknod(struct path *dir, struct dentry *dentry, int mode, | 2808 | int security_path_mknod(struct path *dir, struct dentry *dentry, int mode, |
| 2808 | unsigned int dev); | 2809 | unsigned int dev); |
| 2809 | int security_path_truncate(struct path *path, loff_t length, | 2810 | int security_path_truncate(struct path *path); |
| 2810 | unsigned int time_attrs); | ||
| 2811 | int security_path_symlink(struct path *dir, struct dentry *dentry, | 2811 | int security_path_symlink(struct path *dir, struct dentry *dentry, |
| 2812 | const char *old_name); | 2812 | const char *old_name); |
| 2813 | int security_path_link(struct dentry *old_dentry, struct path *new_dir, | 2813 | int security_path_link(struct dentry *old_dentry, struct path *new_dir, |
| @@ -2841,8 +2841,7 @@ static inline int security_path_mknod(struct path *dir, struct dentry *dentry, | |||
| 2841 | return 0; | 2841 | return 0; |
| 2842 | } | 2842 | } |
| 2843 | 2843 | ||
| 2844 | static inline int security_path_truncate(struct path *path, loff_t length, | 2844 | static inline int security_path_truncate(struct path *path) |
| 2845 | unsigned int time_attrs) | ||
| 2846 | { | 2845 | { |
| 2847 | return 0; | 2846 | return 0; |
| 2848 | } | 2847 | } |
