aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2022-07-21 14:26:54 +0000
committerAllan Jude <allanjude@FreeBSD.org>2022-07-21 14:26:54 +0000
commite89841f893181fc2539b741418202ab3a2155eba (patch)
tree093cfa66b2c32c3a1f500a9de13919a7911061cf
parent3810b37903220af1a369d3c4032ae25fb2d7949d (diff)
downloadsrc-e89841f893181fc2539b741418202ab3a2155eba.tar.gz
src-e89841f893181fc2539b741418202ab3a2155eba.zip
Revert "mac_ddb: Make db_show_vnet_valid() handle !VIMAGE"
jhb@ already fixed this in a different way Reported by: andrew This reverts commit 3810b37903220af1a369d3c4032ae25fb2d7949d.
-rw-r--r--sys/security/mac_ddb/mac_ddb.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/security/mac_ddb/mac_ddb.c b/sys/security/mac_ddb/mac_ddb.c
index 8f2f0d78bb07..847be4997226 100644
--- a/sys/security/mac_ddb/mac_ddb.c
+++ b/sys/security/mac_ddb/mac_ddb.c
@@ -196,7 +196,6 @@ db_show_rman_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
static int
db_show_vnet_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
{
-#ifdef VIMAGE
VNET_ITERATOR_DECL(vnet);
if (!have_addr)
@@ -208,9 +207,6 @@ db_show_vnet_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
}
return (EACCES);
-#else
- return (EOPNOTSUPP);
-#endif
}
#endif