git: e89841f89318 - main - Revert "mac_ddb: Make db_show_vnet_valid() handle !VIMAGE"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Jul 2022 14:27:38 UTC
The branch main has been updated by allanjude:
URL: https://cgit.FreeBSD.org/src/commit/?id=e89841f893181fc2539b741418202ab3a2155eba
commit e89841f893181fc2539b741418202ab3a2155eba
Author: Allan Jude <allanjude@FreeBSD.org>
AuthorDate: 2022-07-21 14:26:54 +0000
Commit: Allan Jude <allanjude@FreeBSD.org>
CommitDate: 2022-07-21 14:26:54 +0000
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.
---
sys/security/mac_ddb/mac_ddb.c | 4 ----
1 file changed, 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