1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Implementation of the security services.
5 * Author : Stephen Smalley, <sds@tycho.nsa.gov>
7 #ifndef _SS_SERVICES_H_
8 #define _SS_SERVICES_H_
12 /* Mapping for a single class */
13 struct selinux_mapping {
14 u16 value; /* policy value for class */
15 unsigned int num_perms; /* number of permissions in class */
16 u32 perms[sizeof(u32) * 8]; /* policy values for permissions */
19 /* Map for all of the classes, with array size */
21 struct selinux_mapping *mapping; /* indexed by class */
22 u16 size; /* array size of mapping */
25 struct selinux_policy {
26 struct sidtab *sidtab;
27 struct policydb policydb;
28 struct selinux_map map;
32 void services_compute_xperms_drivers(struct extended_perms *xperms,
33 struct avtab_node *node);
35 void services_compute_xperms_decision(struct extended_perms_decision *xpermd,
36 struct avtab_node *node);
38 #endif /* _SS_SERVICES_H_ */