From c0347e182cc23853aaca05004d2da9b4d7e47e4a Mon Sep 17 00:00:00 2001
From: Ed Maste <emaste@FreeBSD.org>
Date: Mon, 18 Feb 2019 03:49:16 +0000
Subject: [PATCH] kdump: expand comment on reasons for CAPFAIL_LOOKUP

Comment for CAPFAIL_LOOKUP refered only to paths containing ".." but
it is returned for other restricted VFS lookup cases, such as absolute
paths or openat(AT_FDCWD, ...).
---
 usr.bin/kdump/kdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 354b717e4889..25b2508f862f 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -2006,7 +2006,7 @@ ktrcapfail(struct ktr_cap_fail *ktr)
 		printf("disallowed system call");
 		break;
 	case CAPFAIL_LOOKUP:
-		/* used ".." in strict-relative mode */
+		/* absolute or AT_FDCWD path, ".." path, etc. */
 		printf("restricted VFS lookup");
 		break;
 	default: