1 /* A Bison parser, made by GNU Bison 3.8.2.  */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5    Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
6    Inc.
7 
8    This program is free software: you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation, either version 3 of the License, or
11    (at your option) any later version.
12 
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17 
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
20 
21 /* As a special exception, you may create a larger work that contains
22    part or all of the Bison parser skeleton and distribute that work
23    under terms of your choice, so long as that work isn't itself a
24    parser generator using the skeleton or a modified version thereof
25    as a parser skeleton.  Alternatively, if you modify or redistribute
26    the parser skeleton itself, you may (at your option) remove this
27    special exception, which will cause the skeleton and the resulting
28    Bison output files to be licensed under the GNU General Public
29    License without this special exception.
30 
31    This special exception was added by the Free Software Foundation in
32    version 2.2 of Bison.  */
33 
34 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35    especially those whose name start with YY_ or yy_.  They are
36    private implementation details that can be changed or removed.  */
37 
38 #ifndef YY_YY_OUT_SOONG_TEMP_SBOX_288F4549ADF4444E35FCFFAF10E314760461EC2F_OUT_EXTERNAL_SELINUX_CHECKPOLICY_POLICY_PARSE_H_INCLUDED
39 # define YY_YY_OUT_SOONG_TEMP_SBOX_288F4549ADF4444E35FCFFAF10E314760461EC2F_OUT_EXTERNAL_SELINUX_CHECKPOLICY_POLICY_PARSE_H_INCLUDED
40 /* Debug traces.  */
41 #ifndef YYDEBUG
42 # define YYDEBUG 0
43 #endif
44 #if YYDEBUG
45 extern int yydebug;
46 #endif
47 
48 /* Token kinds.  */
49 #ifndef YYTOKENTYPE
50 # define YYTOKENTYPE
51   enum yytokentype
52   {
53     YYEMPTY = -2,
54     YYEOF = 0,                     /* "end of file"  */
55     YYerror = 256,                 /* error  */
56     YYUNDEF = 257,                 /* "invalid token"  */
57     PATH = 258,                    /* PATH  */
58     QPATH = 259,                   /* QPATH  */
59     FILENAME = 260,                /* FILENAME  */
60     COMMON = 261,                  /* COMMON  */
61     CLASS = 262,                   /* CLASS  */
62     CONSTRAIN = 263,               /* CONSTRAIN  */
63     VALIDATETRANS = 264,           /* VALIDATETRANS  */
64     INHERITS = 265,                /* INHERITS  */
65     SID = 266,                     /* SID  */
66     ROLE = 267,                    /* ROLE  */
67     ROLEATTRIBUTE = 268,           /* ROLEATTRIBUTE  */
68     ATTRIBUTE_ROLE = 269,          /* ATTRIBUTE_ROLE  */
69     ROLES = 270,                   /* ROLES  */
70     TYPEALIAS = 271,               /* TYPEALIAS  */
71     TYPEATTRIBUTE = 272,           /* TYPEATTRIBUTE  */
72     TYPEBOUNDS = 273,              /* TYPEBOUNDS  */
73     TYPE = 274,                    /* TYPE  */
74     TYPES = 275,                   /* TYPES  */
75     ALIAS = 276,                   /* ALIAS  */
76     ATTRIBUTE = 277,               /* ATTRIBUTE  */
77     EXPANDATTRIBUTE = 278,         /* EXPANDATTRIBUTE  */
78     BOOL = 279,                    /* BOOL  */
79     TUNABLE = 280,                 /* TUNABLE  */
80     IF = 281,                      /* IF  */
81     ELSE = 282,                    /* ELSE  */
82     TYPE_TRANSITION = 283,         /* TYPE_TRANSITION  */
83     TYPE_MEMBER = 284,             /* TYPE_MEMBER  */
84     TYPE_CHANGE = 285,             /* TYPE_CHANGE  */
85     ROLE_TRANSITION = 286,         /* ROLE_TRANSITION  */
86     RANGE_TRANSITION = 287,        /* RANGE_TRANSITION  */
87     SENSITIVITY = 288,             /* SENSITIVITY  */
88     DOMINANCE = 289,               /* DOMINANCE  */
89     DOM = 290,                     /* DOM  */
90     DOMBY = 291,                   /* DOMBY  */
91     INCOMP = 292,                  /* INCOMP  */
92     CATEGORY = 293,                /* CATEGORY  */
93     LEVEL = 294,                   /* LEVEL  */
94     RANGE = 295,                   /* RANGE  */
95     MLSCONSTRAIN = 296,            /* MLSCONSTRAIN  */
96     MLSVALIDATETRANS = 297,        /* MLSVALIDATETRANS  */
97     USER = 298,                    /* USER  */
98     NEVERALLOW = 299,              /* NEVERALLOW  */
99     ALLOW = 300,                   /* ALLOW  */
100     AUDITALLOW = 301,              /* AUDITALLOW  */
101     AUDITDENY = 302,               /* AUDITDENY  */
102     DONTAUDIT = 303,               /* DONTAUDIT  */
103     ALLOWXPERM = 304,              /* ALLOWXPERM  */
104     AUDITALLOWXPERM = 305,         /* AUDITALLOWXPERM  */
105     DONTAUDITXPERM = 306,          /* DONTAUDITXPERM  */
106     NEVERALLOWXPERM = 307,         /* NEVERALLOWXPERM  */
107     SOURCE = 308,                  /* SOURCE  */
108     TARGET = 309,                  /* TARGET  */
109     SAMEUSER = 310,                /* SAMEUSER  */
110     FSCON = 311,                   /* FSCON  */
111     PORTCON = 312,                 /* PORTCON  */
112     NETIFCON = 313,                /* NETIFCON  */
113     NODECON = 314,                 /* NODECON  */
114     IBPKEYCON = 315,               /* IBPKEYCON  */
115     IBENDPORTCON = 316,            /* IBENDPORTCON  */
116     PIRQCON = 317,                 /* PIRQCON  */
117     IOMEMCON = 318,                /* IOMEMCON  */
118     IOPORTCON = 319,               /* IOPORTCON  */
119     PCIDEVICECON = 320,            /* PCIDEVICECON  */
120     DEVICETREECON = 321,           /* DEVICETREECON  */
121     FSUSEXATTR = 322,              /* FSUSEXATTR  */
122     FSUSETASK = 323,               /* FSUSETASK  */
123     FSUSETRANS = 324,              /* FSUSETRANS  */
124     GENFSCON = 325,                /* GENFSCON  */
125     U1 = 326,                      /* U1  */
126     U2 = 327,                      /* U2  */
127     U3 = 328,                      /* U3  */
128     R1 = 329,                      /* R1  */
129     R2 = 330,                      /* R2  */
130     R3 = 331,                      /* R3  */
131     T1 = 332,                      /* T1  */
132     T2 = 333,                      /* T2  */
133     T3 = 334,                      /* T3  */
134     L1 = 335,                      /* L1  */
135     L2 = 336,                      /* L2  */
136     H1 = 337,                      /* H1  */
137     H2 = 338,                      /* H2  */
138     NOT = 339,                     /* NOT  */
139     AND = 340,                     /* AND  */
140     OR = 341,                      /* OR  */
141     XOR = 342,                     /* XOR  */
142     CTRUE = 343,                   /* CTRUE  */
143     CFALSE = 344,                  /* CFALSE  */
144     IDENTIFIER = 345,              /* IDENTIFIER  */
145     NUMBER = 346,                  /* NUMBER  */
146     EQUALS = 347,                  /* EQUALS  */
147     NOTEQUAL = 348,                /* NOTEQUAL  */
148     IPV4_ADDR = 349,               /* IPV4_ADDR  */
149     IPV4_CIDR = 350,               /* IPV4_CIDR  */
150     IPV6_ADDR = 351,               /* IPV6_ADDR  */
151     IPV6_CIDR = 352,               /* IPV6_CIDR  */
152     MODULE = 353,                  /* MODULE  */
153     VERSION_IDENTIFIER = 354,      /* VERSION_IDENTIFIER  */
154     REQUIRE = 355,                 /* REQUIRE  */
155     OPTIONAL = 356,                /* OPTIONAL  */
156     POLICYCAP = 357,               /* POLICYCAP  */
157     PERMISSIVE = 358,              /* PERMISSIVE  */
158     FILESYSTEM = 359,              /* FILESYSTEM  */
159     DEFAULT_USER = 360,            /* DEFAULT_USER  */
160     DEFAULT_ROLE = 361,            /* DEFAULT_ROLE  */
161     DEFAULT_TYPE = 362,            /* DEFAULT_TYPE  */
162     DEFAULT_RANGE = 363,           /* DEFAULT_RANGE  */
163     LOW_HIGH = 364,                /* LOW_HIGH  */
164     LOW = 365,                     /* LOW  */
165     HIGH = 366,                    /* HIGH  */
166     GLBLUB = 367,                  /* GLBLUB  */
167     INVALID_CHAR = 368             /* INVALID_CHAR  */
168   };
169   typedef enum yytokentype yytoken_kind_t;
170 #endif
171 
172 /* Value type.  */
173 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
174 union YYSTYPE
175 {
176 #line 67 "external/selinux/checkpolicy/policy_parse.y"
177 
178 	unsigned int val;
179 	uint64_t val64;
180 	uintptr_t valptr;
181 	void *ptr;
182         require_func_t require_func;
183 
184 #line 185 "out/soong/.intermediates/external/selinux/checkpolicy/checkpolicy/linux_glibc_x86_64/gen/yacc/external/selinux/checkpolicy/policy_parse.h"
185 
186 };
187 typedef union YYSTYPE YYSTYPE;
188 # define YYSTYPE_IS_TRIVIAL 1
189 # define YYSTYPE_IS_DECLARED 1
190 #endif
191 
192 
193 extern YYSTYPE yylval;
194 
195 
196 int yyparse (void);
197 
198 
199 #endif /* !YY_YY_OUT_SOONG_TEMP_SBOX_288F4549ADF4444E35FCFFAF10E314760461EC2F_OUT_EXTERNAL_SELINUX_CHECKPOLICY_POLICY_PARSE_H_INCLUDED  */
200