/* -*-c-*-
*
- * $Id: parser.y,v 1.6 1998/04/23 13:26:49 mdw Exp $
+ * $Id: parser.y,v 1.8 2003/10/12 00:14:55 mdw Exp $
*
* Parser for `become.conf' files
*
/*----- Revision history --------------------------------------------------*
*
* $Log: parser.y,v $
+ * Revision 1.8 2003/10/12 00:14:55 mdw
+ * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
+ * encrypt-and-hope thing. Integrated with mLib and Catacomb.
+ *
+ * Revision 1.7 1999/03/26 15:25:22 mdw
+ * Insert some missing semicolons. Bison didn't seem to care, but other
+ * programs like `yyextract' do, so it's worth fixing.
+ *
* Revision 1.6 1998/04/23 13:26:49 mdw
* New `parse' interface to configuration file parser; informs caller
* whether parsing encountered any errors. Also support no-network
#include <pwd.h>
#include <unistd.h>
+/* --- mLib headers --- */
+
+#include <mLib/report.h>
+#include <mLib/sym.h>
+
/* --- Local headers --- */
#include "class.h"
#include "lexer.h"
#include "name.h"
#include "rule.h"
-#include "sym.h"
#include "userdb.h"
-#include "utils.h"
%}
/*----- Stack type --------------------------------------------------------*/
yynerrs++; YYERROR;
#endif
}
+ ;
/* --- Parsing allow specifications --- */
user_class_opt command_class_opt ';' {
rule_add($2, $3, $5, $6);
}
+ ;
host_class_opt : /* empty */ { $$ = class_all; }
| '[' host_class ']' { $$ = $2; }
n->c = 0;
$$ = n;
}
+ ;
/*----- Various class expression types ------------------------------------*
*