diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-11-10 03:16:27 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-11-10 03:16:27 -0500 |
| commit | 4ecd33d930591d41fe356160593a9076467b961c (patch) | |
| tree | b9051a334540bbce38db1b2b03cebb4cf1d51f73 /include/linux/security.h | |
| parent | 7d5a78cd98c3a5eb83bd6a061c5ea6ef1e9b8fcb (diff) | |
| parent | f7160c7573615ec82c691e294cf80d920b5d588d (diff) | |
Merge commit 'v2.6.28-rc4' into x86/apic
Diffstat (limited to 'include/linux/security.h')
| -rw-r--r-- | include/linux/security.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index f5c4a51eb42e..c13f1cec9abb 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
| @@ -1585,6 +1585,7 @@ int security_syslog(int type); | |||
| 1585 | int security_settime(struct timespec *ts, struct timezone *tz); | 1585 | int security_settime(struct timespec *ts, struct timezone *tz); |
| 1586 | int security_vm_enough_memory(long pages); | 1586 | int security_vm_enough_memory(long pages); |
| 1587 | int security_vm_enough_memory_mm(struct mm_struct *mm, long pages); | 1587 | int security_vm_enough_memory_mm(struct mm_struct *mm, long pages); |
| 1588 | int security_vm_enough_memory_kern(long pages); | ||
| 1588 | int security_bprm_alloc(struct linux_binprm *bprm); | 1589 | int security_bprm_alloc(struct linux_binprm *bprm); |
| 1589 | void security_bprm_free(struct linux_binprm *bprm); | 1590 | void security_bprm_free(struct linux_binprm *bprm); |
| 1590 | void security_bprm_apply_creds(struct linux_binprm *bprm, int unsafe); | 1591 | void security_bprm_apply_creds(struct linux_binprm *bprm, int unsafe); |
| @@ -1820,6 +1821,11 @@ static inline int security_vm_enough_memory(long pages) | |||
| 1820 | return cap_vm_enough_memory(current->mm, pages); | 1821 | return cap_vm_enough_memory(current->mm, pages); |
| 1821 | } | 1822 | } |
| 1822 | 1823 | ||
| 1824 | static inline int security_vm_enough_memory_kern(long pages) | ||
| 1825 | { | ||
| 1826 | return cap_vm_enough_memory(current->mm, pages); | ||
| 1827 | } | ||
| 1828 | |||
| 1823 | static inline int security_vm_enough_memory_mm(struct mm_struct *mm, long pages) | 1829 | static inline int security_vm_enough_memory_mm(struct mm_struct *mm, long pages) |
| 1824 | { | 1830 | { |
| 1825 | return cap_vm_enough_memory(mm, pages); | 1831 | return cap_vm_enough_memory(mm, pages); |
