|
22 | 22 | #ifndef __LINUX_SECURITY_H |
23 | 23 | #define __LINUX_SECURITY_H |
24 | 24 |
|
25 | | -#include <linux/fs.h> |
26 | | -#include <linux/fsnotify.h> |
27 | | -#include <linux/binfmts.h> |
28 | | -#include <linux/dcache.h> |
29 | | -#include <linux/signal.h> |
30 | | -#include <linux/resource.h> |
31 | | -#include <linux/sem.h> |
32 | | -#include <linux/shm.h> |
33 | | -#include <linux/mm.h> /* PAGE_ALIGN */ |
34 | | -#include <linux/msg.h> |
35 | | -#include <linux/sched.h> |
36 | 25 | #include <linux/key.h> |
37 | | -#include <linux/xfrm.h> |
| 26 | +#include <linux/capability.h> |
38 | 27 | #include <linux/slab.h> |
39 | | -#include <linux/xattr.h> |
40 | | -#include <net/flow.h> |
| 28 | +#include <linux/err.h> |
| 29 | + |
| 30 | +struct linux_binprm; |
| 31 | +struct cred; |
| 32 | +struct rlimit; |
| 33 | +struct siginfo; |
| 34 | +struct sem_array; |
| 35 | +struct sembuf; |
| 36 | +struct kern_ipc_perm; |
| 37 | +struct audit_context; |
| 38 | +struct super_block; |
| 39 | +struct inode; |
| 40 | +struct dentry; |
| 41 | +struct file; |
| 42 | +struct vfsmount; |
| 43 | +struct path; |
| 44 | +struct qstr; |
| 45 | +struct nameidata; |
| 46 | +struct iattr; |
| 47 | +struct fown_struct; |
| 48 | +struct file_operations; |
| 49 | +struct shmid_kernel; |
| 50 | +struct msg_msg; |
| 51 | +struct msg_queue; |
| 52 | +struct xattr; |
| 53 | +struct xfrm_sec_ctx; |
| 54 | +struct mm_struct; |
41 | 55 |
|
42 | 56 | /* Maximum number of letters for an LSM name string */ |
43 | 57 | #define SECURITY_NAME_MAX 10 |
|
49 | 63 | struct ctl_table; |
50 | 64 | struct audit_krule; |
51 | 65 | struct user_namespace; |
| 66 | +struct timezone; |
52 | 67 |
|
53 | 68 | /* |
54 | 69 | * These functions are in security/capability.c and are used |
@@ -131,18 +146,6 @@ struct request_sock; |
131 | 146 | #define LSM_UNSAFE_PTRACE_CAP 4 |
132 | 147 |
|
133 | 148 | #ifdef CONFIG_MMU |
134 | | -/* |
135 | | - * If a hint addr is less than mmap_min_addr change hint to be as |
136 | | - * low as possible but still greater than mmap_min_addr |
137 | | - */ |
138 | | -static inline unsigned long round_hint_to_min(unsigned long hint) |
139 | | -{ |
140 | | - hint &= PAGE_MASK; |
141 | | - if (((void *)hint != NULL) && |
142 | | - (hint < mmap_min_addr)) |
143 | | - return PAGE_ALIGN(mmap_min_addr); |
144 | | - return hint; |
145 | | -} |
146 | 149 | extern int mmap_min_addr_handler(struct ctl_table *table, int write, |
147 | 150 | void __user *buffer, size_t *lenp, loff_t *ppos); |
148 | 151 | #endif |
|
0 commit comments