1
2
3
4
5
6
7 #ifndef _SS_SERVICES_H_
8 #define _SS_SERVICES_H_
9
10 #include "policydb.h"
11 #include "sidtab.h"
12
13
14 struct selinux_mapping {
15 u16 value;
16 unsigned int num_perms;
17 u32 perms[sizeof(u32) * 8];
18 };
19
20
21 struct selinux_map {
22 struct selinux_mapping *mapping;
23 u16 size;
24 };
25
26 struct selinux_ss {
27 struct sidtab *sidtab;
28 struct policydb policydb;
29 rwlock_t policy_rwlock;
30 u32 latest_granting;
31 struct selinux_map map;
32 struct page *status_page;
33 struct mutex status_lock;
34 };
35
36 void services_compute_xperms_drivers(struct extended_perms *xperms,
37 struct avtab_node *node);
38
39 void services_compute_xperms_decision(struct extended_perms_decision *xpermd,
40 struct avtab_node *node);
41
42 #endif