.. | .. |
---|
8 | 8 | #define _SS_SERVICES_H_ |
---|
9 | 9 | |
---|
10 | 10 | #include "policydb.h" |
---|
11 | | -#include "context.h" |
---|
12 | 11 | |
---|
13 | 12 | /* Mapping for a single class */ |
---|
14 | 13 | struct selinux_mapping { |
---|
.. | .. |
---|
23 | 22 | u16 size; /* array size of mapping */ |
---|
24 | 23 | }; |
---|
25 | 24 | |
---|
26 | | -struct selinux_ss { |
---|
| 25 | +struct selinux_policy { |
---|
27 | 26 | struct sidtab *sidtab; |
---|
28 | 27 | struct policydb policydb; |
---|
29 | | - rwlock_t policy_rwlock; |
---|
30 | | - u32 latest_granting; |
---|
31 | 28 | struct selinux_map map; |
---|
32 | | - struct page *status_page; |
---|
33 | | - struct mutex status_lock; |
---|
34 | | -}; |
---|
| 29 | + u32 latest_granting; |
---|
| 30 | +} __randomize_layout; |
---|
35 | 31 | |
---|
36 | 32 | void services_compute_xperms_drivers(struct extended_perms *xperms, |
---|
37 | 33 | struct avtab_node *node); |
---|
38 | 34 | |
---|
39 | 35 | void services_compute_xperms_decision(struct extended_perms_decision *xpermd, |
---|
40 | 36 | struct avtab_node *node); |
---|
41 | | - |
---|
42 | | -int context_add_hash(struct policydb *policydb, struct context *context); |
---|
43 | 37 | |
---|
44 | 38 | #endif /* _SS_SERVICES_H_ */ |
---|