File: grlearn2_config.y

package info (click to toggle)
gradm2 3.1~201709030627-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 852 kB
  • sloc: ansic: 10,798; lex: 1,248; yacc: 1,212; makefile: 1,178; sh: 15; cs: 9
file content (83 lines) | stat: -rw-r--r-- 1,790 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
%{
/*
 * Copyright (C) 2002-2014 Bradley Spengler, Open Source Security, Inc.
 *        http://www.grsecurity.net spender@grsecurity.net
 *
 * This file is part of gradm.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 2
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

#include "gradm.h"
extern int grlearn_configlex(void);
extern void add_always_reduce(char *str);
extern void grlearn_configerror(const char *s);

#define grlearn2_configerror grlearn_configerror
#define grlearn2_configlex grlearn_configlex
%}

%union {
	char * string;
	unsigned long num;
}

%token <string> FILENAME NOLEARN INHERITLEARN INHERITNOLEARN DONTREDUCE 
%token <string> PROTECTED HIGHPROTECTED HIGHREDUCE ALWAYSREDUCE NOALLOWEDIPS
%token <string> READPROTECTED SPLITROLES
%token <num> NUM

%%

learn_config_file:	learn_config
		|	learn_config_file learn_config
		;

learn_config:
		NOLEARN FILENAME
		{
		}
	|	INHERITLEARN FILENAME
		{
		}
	|	INHERITNOLEARN FILENAME
		{
		}
	|	DONTREDUCE FILENAME
		{
		}
	|	PROTECTED FILENAME
		{
		}
	|	READPROTECTED FILENAME
		{
		}
	|	HIGHREDUCE FILENAME
		{
		}
	|	ALWAYSREDUCE FILENAME
		{
			add_always_reduce($2);
		}
	|	HIGHPROTECTED FILENAME
		{
		}
	|	NOALLOWEDIPS
		{
		}
	|	SPLITROLES
		{
		}
	;
%%