~ubuntu-branches/ubuntu/trusty/aide/trusty

« back to all changes in this revision

Viewing changes to src/conf_yacc.y

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-10-12 16:10:31 UTC
  • mfrom: (1.1.7 upstream) (5.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101012161031-42m31lgd5d6yngt0
Tags: 0.15.1-1ubuntu1
* Merge with Debian unstable; remaining Ubuntu changes:
  - debian/aide.conf.d/70_aide_dev: escape another special character in
    filenames. (LP #456710)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%{ 
2
2
 
3
3
/*      
4
 
 * Copyright (C) 1999,2000,2001,2002 Rami Lehti, Pablo Virolainen
 
4
 * Copyright (C) 1999-2006,2010 Rami Lehti, Pablo Virolainen,
 
5
 * Richard van den Berg, Hannes von Haugwitz
5
6
 * $Header$
6
7
 * This program is free software; you can redistribute it and/or
7
8
 * modify it under the terms of the GNU General Public License as
70
71
 
71
72
%token TACLNOSYMLINKFOLLOW
72
73
%token TWARNDEADSYMLINKS
 
74
%token TGROUPED
73
75
%token TSUMMARIZECHANGES
74
76
%token TNEWLINE
75
77
%token TVERBOSE
99
101
%token <i> TGROUP
100
102
%token <i> TINODE
101
103
%token <i> TLINKCOUNT
 
104
%token <i> TFTYPE
102
105
%token <i> TSIZE
103
106
%token <i> TGROWINGSIZE
104
107
%token <i> TATIME
107
110
%token <i> TACL
108
111
%token <i> TXATTRS
109
112
%token <i> TSELINUX
 
113
%token <i> TE2FSATTRS
110
114
 
111
115
/* hash funktions */
112
116
 
146
150
line : rule | equrule | negrule | definestmt | undefstmt
147
151
       | ifdefstmt | ifndefstmt | ifhoststmt | ifnhoststmt
148
152
       | groupdef | db_in | db_out | db_new | verbose | config_version 
149
 
       | report | gzipdbout | recursion_stopper | warn_dead_symlinks
 
153
       | report | gzipdbout | recursion_stopper | warn_dead_symlinks | grouped
150
154
       | summarize_changes | acl_no_symlink_follow | beginconfigstmt | endconfigstmt
151
155
       | TEOF {
152
156
            newlinelastinconfig=1;
204
208
 
205
209
other : TRIGHTS { $$ =$1 ;} | TUSER {$$ =$1 ;} 
206
210
        | TGROUP {$$ =$1 ;} | TINODE {$$ =$1 ;}
207
 
        | TLINKCOUNT {$$ =$1 ;} | TSIZE {$$ =$1 ;} 
 
211
        | TLINKCOUNT {$$ =$1 ;} | TFTYPE {$$ =$1 ;} | TSIZE {$$ =$1 ;}
208
212
        | TGROWINGSIZE {$$ =$1 ;} | TATIME {$$ =$1 ;} 
209
213
        | TCTIME {$$ =$1 ;} | TMTIME {$$ =$1 ;} | TL {$$ = $1;}
210
214
        | TR {$$ = $1;} | TACL {$$ =$1 ;} | TXATTRS {$$ =$1 ;}
211
 
        | TSELINUX {$$ =$1 ;};
 
215
        | TSELINUX {$$ =$1 ;} | TE2FSATTRS {$$ =$1 ;};
212
216
 
213
217
hash : TTIGER { $$ =$1 ;} | TSHA1 { $$ =$1 ;} | TRMD160 { $$ =$1 ;}
214
218
        | TMD5 {$$ =$1 ;} | TSHA256 { $$ =$1 ;} | TSHA512 { $$ =$1 ;}
296
300
  conf->warn_dead_symlinks=0;
297
301
} ;
298
302
 
 
303
grouped : TGROUPED TTRUE {
 
304
  conf->grouped=1;
 
305
} ;
 
306
 
 
307
grouped : TGROUPED TFALSE {
 
308
  conf->grouped=0;
 
309
} ;
 
310
 
299
311
summarize_changes : TSUMMARIZECHANGES TTRUE {
300
312
  conf->summarize_changes=1;
301
313
} ;