Author: emaste
Date: Mon Feb 18 03:49:16 2019
New Revision: 344246
URL: https://svnweb.freebsd.org/changeset/base/344246

Log:
  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, ...).

Modified:
  head/usr.bin/kdump/kdump.c

Modified: head/usr.bin/kdump/kdump.c
==============================================================================
--- head/usr.bin/kdump/kdump.c  Mon Feb 18 03:23:10 2019        (r344245)
+++ head/usr.bin/kdump/kdump.c  Mon Feb 18 03:49:16 2019        (r344246)
@@ -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:
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to