xref: /aosp_15_r20/external/selinux/libsepol/cil/src/cil_deny.h (revision 2d543d20722ada2425b5bdab9d0d1d29470e7bba)
1*2d543d20SAndroid Build Coastguard Worker /*
2*2d543d20SAndroid Build Coastguard Worker  * This file is public domain software, i.e. not copyrighted.
3*2d543d20SAndroid Build Coastguard Worker  *
4*2d543d20SAndroid Build Coastguard Worker  * Warranty Exclusion
5*2d543d20SAndroid Build Coastguard Worker  * ------------------
6*2d543d20SAndroid Build Coastguard Worker  * You agree that this software is a non-commercially developed program
7*2d543d20SAndroid Build Coastguard Worker  * that may contain "bugs" (as that term is used in the industry) and
8*2d543d20SAndroid Build Coastguard Worker  * that it may not function as intended. The software is licensed
9*2d543d20SAndroid Build Coastguard Worker  * "as is". NSA makes no, and hereby expressly disclaims all, warranties,
10*2d543d20SAndroid Build Coastguard Worker  * express, implied, statutory, or otherwise with respect to the software,
11*2d543d20SAndroid Build Coastguard Worker  * including noninfringement and the implied warranties of merchantability
12*2d543d20SAndroid Build Coastguard Worker  * and fitness for a particular purpose.
13*2d543d20SAndroid Build Coastguard Worker  *
14*2d543d20SAndroid Build Coastguard Worker  * Limitation of Liability
15*2d543d20SAndroid Build Coastguard Worker  *-----------------------
16*2d543d20SAndroid Build Coastguard Worker  * In no event will NSA be liable for any damages, including loss of data,
17*2d543d20SAndroid Build Coastguard Worker  * lost profits, cost of cover, or other special, incidental, consequential,
18*2d543d20SAndroid Build Coastguard Worker  * direct or indirect damages arising from the software or the use thereof,
19*2d543d20SAndroid Build Coastguard Worker  * however caused and on any theory of liability. This limitation will apply
20*2d543d20SAndroid Build Coastguard Worker  * even if NSA has been advised of the possibility of such damage. You
21*2d543d20SAndroid Build Coastguard Worker  * acknowledge that this is a reasonable allocation of risk.
22*2d543d20SAndroid Build Coastguard Worker  *
23*2d543d20SAndroid Build Coastguard Worker  * Original author: James Carter
24*2d543d20SAndroid Build Coastguard Worker  */
25*2d543d20SAndroid Build Coastguard Worker 
26*2d543d20SAndroid Build Coastguard Worker #ifndef CIL_DENY_H_
27*2d543d20SAndroid Build Coastguard Worker #define CIL_DENY_H_
28*2d543d20SAndroid Build Coastguard Worker 
29*2d543d20SAndroid Build Coastguard Worker int cil_classperms_list_match_any(const struct cil_list *cpl1, const struct cil_list *cpl2);
30*2d543d20SAndroid Build Coastguard Worker int cil_classperms_list_match_all(const struct cil_list *cpl1, const struct cil_list *cpl2);
31*2d543d20SAndroid Build Coastguard Worker void cil_classperms_list_copy(struct cil_list **new, const struct cil_list *old);
32*2d543d20SAndroid Build Coastguard Worker void cil_classperms_list_and(struct cil_list **result, const struct cil_list *cpl1, const struct cil_list *cpl2);
33*2d543d20SAndroid Build Coastguard Worker void cil_classperms_list_andnot(struct cil_list **result, const struct cil_list *cpl1, const struct cil_list *cpl2);
34*2d543d20SAndroid Build Coastguard Worker int cil_process_deny_rules_in_ast(struct cil_db *db);
35*2d543d20SAndroid Build Coastguard Worker 
36*2d543d20SAndroid Build Coastguard Worker #endif /* CIL_DENY_H_ */
37