diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/security.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 0c881917046..1a3eb5ff435 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -1501,7 +1501,8 @@ struct security_operations { | |||
1501 | int (*task_setnice) (struct task_struct *p, int nice); | 1501 | int (*task_setnice) (struct task_struct *p, int nice); |
1502 | int (*task_setioprio) (struct task_struct *p, int ioprio); | 1502 | int (*task_setioprio) (struct task_struct *p, int ioprio); |
1503 | int (*task_getioprio) (struct task_struct *p); | 1503 | int (*task_getioprio) (struct task_struct *p); |
1504 | int (*task_setrlimit) (unsigned int resource, struct rlimit *new_rlim); | 1504 | int (*task_setrlimit) (struct task_struct *p, unsigned int resource, |
1505 | struct rlimit *new_rlim); | ||
1505 | int (*task_setscheduler) (struct task_struct *p, int policy, | 1506 | int (*task_setscheduler) (struct task_struct *p, int policy, |
1506 | struct sched_param *lp); | 1507 | struct sched_param *lp); |
1507 | int (*task_getscheduler) (struct task_struct *p); | 1508 | int (*task_getscheduler) (struct task_struct *p); |
@@ -1751,7 +1752,8 @@ void security_task_getsecid(struct task_struct *p, u32 *secid); | |||
1751 | int security_task_setnice(struct task_struct *p, int nice); | 1752 | int security_task_setnice(struct task_struct *p, int nice); |
1752 | int security_task_setioprio(struct task_struct *p, int ioprio); | 1753 | int security_task_setioprio(struct task_struct *p, int ioprio); |
1753 | int security_task_getioprio(struct task_struct *p); | 1754 | int security_task_getioprio(struct task_struct *p); |
1754 | int security_task_setrlimit(unsigned int resource, struct rlimit *new_rlim); | 1755 | int security_task_setrlimit(struct task_struct *p, unsigned int resource, |
1756 | struct rlimit *new_rlim); | ||
1755 | int security_task_setscheduler(struct task_struct *p, | 1757 | int security_task_setscheduler(struct task_struct *p, |
1756 | int policy, struct sched_param *lp); | 1758 | int policy, struct sched_param *lp); |
1757 | int security_task_getscheduler(struct task_struct *p); | 1759 | int security_task_getscheduler(struct task_struct *p); |
@@ -2313,7 +2315,8 @@ static inline int security_task_getioprio(struct task_struct *p) | |||
2313 | return 0; | 2315 | return 0; |
2314 | } | 2316 | } |
2315 | 2317 | ||
2316 | static inline int security_task_setrlimit(unsigned int resource, | 2318 | static inline int security_task_setrlimit(struct task_struct *p, |
2319 | unsigned int resource, | ||
2317 | struct rlimit *new_rlim) | 2320 | struct rlimit *new_rlim) |
2318 | { | 2321 | { |
2319 | return 0; | 2322 | return 0; |