diff options
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 65b32a0c6207..d2c17bd91a29 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -601,6 +601,10 @@ struct swap_info_struct; | |||
601 | * @p. | 601 | * @p. |
602 | * @p contains the task_struct for process. | 602 | * @p contains the task_struct for process. |
603 | * Return 0 if permission is granted. | 603 | * Return 0 if permission is granted. |
604 | * @task_movememory | ||
605 | * Check permission before moving memory owned by process @p. | ||
606 | * @p contains the task_struct for process. | ||
607 | * Return 0 if permission is granted. | ||
604 | * @task_kill: | 608 | * @task_kill: |
605 | * Check permission before sending signal @sig to @p. @info can be NULL, | 609 | * Check permission before sending signal @sig to @p. @info can be NULL, |
606 | * the constant 1, or a pointer to a siginfo structure. If @info is 1 or | 610 | * the constant 1, or a pointer to a siginfo structure. If @info is 1 or |
@@ -1220,6 +1224,7 @@ struct security_operations { | |||
1220 | int (*task_setscheduler) (struct task_struct * p, int policy, | 1224 | int (*task_setscheduler) (struct task_struct * p, int policy, |
1221 | struct sched_param * lp); | 1225 | struct sched_param * lp); |
1222 | int (*task_getscheduler) (struct task_struct * p); | 1226 | int (*task_getscheduler) (struct task_struct * p); |
1227 | int (*task_movememory) (struct task_struct * p); | ||
1223 | int (*task_kill) (struct task_struct * p, | 1228 | int (*task_kill) (struct task_struct * p, |
1224 | struct siginfo * info, int sig); | 1229 | struct siginfo * info, int sig); |
1225 | int (*task_wait) (struct task_struct * p); | 1230 | int (*task_wait) (struct task_struct * p); |
@@ -1865,6 +1870,11 @@ static inline int security_task_getscheduler (struct task_struct *p) | |||
1865 | return security_ops->task_getscheduler (p); | 1870 | return security_ops->task_getscheduler (p); |
1866 | } | 1871 | } |
1867 | 1872 | ||
1873 | static inline int security_task_movememory (struct task_struct *p) | ||
1874 | { | ||
1875 | return security_ops->task_movememory (p); | ||
1876 | } | ||
1877 | |||
1868 | static inline int security_task_kill (struct task_struct *p, | 1878 | static inline int security_task_kill (struct task_struct *p, |
1869 | struct siginfo *info, int sig) | 1879 | struct siginfo *info, int sig) |
1870 | { | 1880 | { |
@@ -2512,6 +2522,11 @@ static inline int security_task_getscheduler (struct task_struct *p) | |||
2512 | return 0; | 2522 | return 0; |
2513 | } | 2523 | } |
2514 | 2524 | ||
2525 | static inline int security_task_movememory (struct task_struct *p) | ||
2526 | { | ||
2527 | return 0; | ||
2528 | } | ||
2529 | |||
2515 | static inline int security_task_kill (struct task_struct *p, | 2530 | static inline int security_task_kill (struct task_struct *p, |
2516 | struct siginfo *info, int sig) | 2531 | struct siginfo *info, int sig) |
2517 | { | 2532 | { |