summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/parse.y
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2020-09-23 19:18:19 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2020-09-23 19:18:19 +0000
commitb9803ed67cabb8ea791aed9467ce7bf0ecd9b68c (patch)
tree2f1da6899b7230330eba3f4f0a42bcdd89bd9412 /usr.sbin/vmd/parse.y
parent5bab0a2cf61ab1d512b1ad0060cb179bea6845d3 (diff)
Revert agentx support for now, we're too close to release.
requested by deraadt@
Diffstat (limited to 'usr.sbin/vmd/parse.y')
-rw-r--r--usr.sbin/vmd/parse.y50
1 files changed, 2 insertions, 48 deletions
diff --git a/usr.sbin/vmd/parse.y b/usr.sbin/vmd/parse.y
index d44a02c60a1..bc2b4b50534 100644
--- a/usr.sbin/vmd/parse.y
+++ b/usr.sbin/vmd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.55 2020/09/23 15:52:06 martijn Exp $ */
+/* $OpenBSD: parse.y,v 1.56 2020/09/23 19:18:18 martijn Exp $ */
/*
* Copyright (c) 2007-2016 Reyk Floeter <reyk@openbsd.org>
@@ -48,7 +48,6 @@
#include <fcntl.h>
#include <pwd.h>
#include <grp.h>
-#include <subagentx.h>
#include "proc.h"
#include "vmd.h"
@@ -121,8 +120,7 @@ typedef struct {
%token INCLUDE ERROR
-%token ADD AGENTX ALLOW BOOT CDROM CONTEXT DEVICE DISABLE DISK DOWN ENABLE
-%token FORMAT GROUP
+%token ADD ALLOW BOOT CDROM DEVICE DISABLE DISK DOWN ENABLE FORMAT GROUP
%token INET6 INSTANCE INTERFACE LLADDR LOCAL LOCKED MEMORY NET NIFS OWNER
%token PATH PREFIX RDOMAIN SIZE SOCKET SWITCH UP VM VMID STAGGERED START
%token PARALLEL DELAY
@@ -220,14 +218,6 @@ main : LOCAL INET6 {
env->vmd_ps.ps_csock.cs_uid = $3.uid;
env->vmd_ps.ps_csock.cs_gid = $3.gid == -1 ? 0 : $3.gid;
}
- | AGENTX {
- env->vmd_cfg.cfg_agentx.enabled = 1;
- } agentxopts {
- if (env->vmd_cfg.cfg_agentx.path[0] == '\0')
- strlcpy(env->vmd_cfg.cfg_agentx.path,
- SUBAGENTX_AGENTX_MASTER,
- sizeof(env->vmd_cfg.cfg_agentx.path));
- }
| STAGGERED START PARALLEL NUMBER DELAY NUMBER {
env->vmd_cfg.cfg_flags |= VMD_CFG_STAGGERED_START;
env->vmd_cfg.delay.tv_sec = $6;
@@ -606,35 +596,6 @@ owner_id : NUMBER {
}
;
-agentxopt : CONTEXT STRING {
- if (strlcpy(env->vmd_cfg.cfg_agentx.context, $2,
- sizeof(env->vmd_cfg.cfg_agentx.context)) >=
- sizeof(env->vmd_cfg.cfg_agentx.context)) {
- yyerror("agentx context too large");
- free($2);
- YYERROR;
- }
- free($2);
- }
- | PATH STRING {
- if (strlcpy(env->vmd_cfg.cfg_agentx.path, $2,
- sizeof(env->vmd_cfg.cfg_agentx.path)) >=
- sizeof(env->vmd_cfg.cfg_agentx.path)) {
- yyerror("agentx path too large");
- free($2);
- YYERROR;
- }
- free($2);
- if (env->vmd_cfg.cfg_agentx.path[0] != '/') {
- yyerror("agentx path is not absolute");
- YYERROR;
- }
- }
-
-agentxopts : /* none */
- | agentxopts agentxopt
- ;
-
image_format : /* none */ {
$$ = 0;
}
@@ -806,11 +767,9 @@ lookup(char *s)
/* this has to be sorted always */
static const struct keywords keywords[] = {
{ "add", ADD },
- { "agentx", AGENTX },
{ "allow", ALLOW },
{ "boot", BOOT },
{ "cdrom", CDROM },
- { "context", CONTEXT},
{ "delay", DELAY },
{ "device", DEVICE },
{ "disable", DISABLE },
@@ -832,7 +791,6 @@ lookup(char *s)
{ "net", NET },
{ "owner", OWNER },
{ "parallel", PARALLEL },
- { "path", PATH },
{ "prefix", PREFIX },
{ "rdomain", RDOMAIN },
{ "size", SIZE },
@@ -1189,10 +1147,6 @@ parse_config(const char *filename)
/* Set the default switch type */
(void)strlcpy(vsw_type, VMD_SWITCH_TYPE, sizeof(vsw_type));
- env->vmd_cfg.cfg_agentx.enabled = 0;
- env->vmd_cfg.cfg_agentx.context[0] = '\0';
- env->vmd_cfg.cfg_agentx.path[0] = '\0';
-
yyparse();
errors = file->errors;
popfile();