diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:46:48 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:46:48 -0400 |
| commit | bb50cbbd4beacd5ceda76c32fcb116c67fe8c66c (patch) | |
| tree | d57fe1a7c4214afbaacbcc5fb62ea6a5e9169b3f /include/linux | |
| parent | 702ed6ef375c19d65f2eeeefd3851476f2c4cee4 (diff) | |
| parent | d4cf291526a74cc33d33700a35b74395eec812fd (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
security: unexport mmap_min_addr
SELinux: use SECINITSID_NETMSG instead of SECINITSID_UNLABELED for NetLabel
security: Protection for exploiting null dereference using mmap
SELinux: Use %lu for inode->i_no when printing avc
SELinux: allow preemption between transition permission checks
selinux: introduce schedule points in policydb_destroy()
selinux: add selinuxfs structure for object class discovery
selinux: change sel_make_dir() to specify inode counter.
selinux: rename sel_remove_bools() for more general usage.
selinux: add support for querying object classes and permissions from the running policy
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/security.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 9eb9e0fe0331..c11dc8aa0351 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
| @@ -71,6 +71,7 @@ struct xfrm_user_sec_ctx; | |||
| 71 | extern int cap_netlink_send(struct sock *sk, struct sk_buff *skb); | 71 | extern int cap_netlink_send(struct sock *sk, struct sk_buff *skb); |
| 72 | extern int cap_netlink_recv(struct sk_buff *skb, int cap); | 72 | extern int cap_netlink_recv(struct sk_buff *skb, int cap); |
| 73 | 73 | ||
| 74 | extern unsigned long mmap_min_addr; | ||
| 74 | /* | 75 | /* |
| 75 | * Values used in the task_security_ops calls | 76 | * Values used in the task_security_ops calls |
| 76 | */ | 77 | */ |
| @@ -1241,8 +1242,9 @@ struct security_operations { | |||
| 1241 | int (*file_ioctl) (struct file * file, unsigned int cmd, | 1242 | int (*file_ioctl) (struct file * file, unsigned int cmd, |
| 1242 | unsigned long arg); | 1243 | unsigned long arg); |
| 1243 | int (*file_mmap) (struct file * file, | 1244 | int (*file_mmap) (struct file * file, |
| 1244 | unsigned long reqprot, | 1245 | unsigned long reqprot, unsigned long prot, |
| 1245 | unsigned long prot, unsigned long flags); | 1246 | unsigned long flags, unsigned long addr, |
| 1247 | unsigned long addr_only); | ||
| 1246 | int (*file_mprotect) (struct vm_area_struct * vma, | 1248 | int (*file_mprotect) (struct vm_area_struct * vma, |
| 1247 | unsigned long reqprot, | 1249 | unsigned long reqprot, |
| 1248 | unsigned long prot); | 1250 | unsigned long prot); |
| @@ -1814,9 +1816,12 @@ static inline int security_file_ioctl (struct file *file, unsigned int cmd, | |||
| 1814 | 1816 | ||
| 1815 | static inline int security_file_mmap (struct file *file, unsigned long reqprot, | 1817 | static inline int security_file_mmap (struct file *file, unsigned long reqprot, |
| 1816 | unsigned long prot, | 1818 | unsigned long prot, |
| 1817 | unsigned long flags) | 1819 | unsigned long flags, |
| 1820 | unsigned long addr, | ||
| 1821 | unsigned long addr_only) | ||
| 1818 | { | 1822 | { |
| 1819 | return security_ops->file_mmap (file, reqprot, prot, flags); | 1823 | return security_ops->file_mmap (file, reqprot, prot, flags, addr, |
| 1824 | addr_only); | ||
| 1820 | } | 1825 | } |
| 1821 | 1826 | ||
| 1822 | static inline int security_file_mprotect (struct vm_area_struct *vma, | 1827 | static inline int security_file_mprotect (struct vm_area_struct *vma, |
| @@ -2489,7 +2494,9 @@ static inline int security_file_ioctl (struct file *file, unsigned int cmd, | |||
| 2489 | 2494 | ||
| 2490 | static inline int security_file_mmap (struct file *file, unsigned long reqprot, | 2495 | static inline int security_file_mmap (struct file *file, unsigned long reqprot, |
| 2491 | unsigned long prot, | 2496 | unsigned long prot, |
| 2492 | unsigned long flags) | 2497 | unsigned long flags, |
| 2498 | unsigned long addr, | ||
| 2499 | unsigned long addr_only) | ||
| 2493 | { | 2500 | { |
| 2494 | return 0; | 2501 | return 0; |
| 2495 | } | 2502 | } |
