Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2015 17:00:31 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r291597 - head/sys/kern
Message-ID:  <201512011700.tB1H0VWf017372@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Tue Dec  1 17:00:31 2015
New Revision: 291597
URL: https://svnweb.freebsd.org/changeset/base/291597

Log:
  Missed header_supported call from r291020: make really, really sure the brand
  likes the executable.

Modified:
  head/sys/kern/imgact_elf.c

Modified: head/sys/kern/imgact_elf.c
==============================================================================
--- head/sys/kern/imgact_elf.c	Tue Dec  1 16:42:39 2015	(r291596)
+++ head/sys/kern/imgact_elf.c	Tue Dec  1 17:00:31 2015	(r291597)
@@ -273,6 +273,9 @@ __elfN(get_brandinfo)(struct image_param
 		if (hdr->e_machine == bi->machine && (bi->flags &
 		    (BI_BRAND_NOTE|BI_BRAND_NOTE_MANDATORY)) != 0) {
 			ret = __elfN(check_note)(imgp, bi->brand_note, osrel);
+			/* Give brand a chance to veto check_note's guess */
+			if (ret && bi->header_supported)
+				ret = bi->header_supported(imgp);
 			if (ret)
 				return (bi);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512011700.tB1H0VWf017372>