Page MenuHomeFreeBSD

D30918.id91413.diff
No OneTemporary

D30918.id91413.diff

Index: sys/kern/imgact_elf.c
===================================================================
--- sys/kern/imgact_elf.c
+++ sys/kern/imgact_elf.c
@@ -1248,6 +1248,7 @@
map = &vmspace->vm_map;
imgp->proc->p_sysent = sv;
+ imgp->proc->brand_info = brand_info;
maxv = vm_map_max(map) - lim_max(td, RLIMIT_STACK);
if (et_dyn_addr == ET_DYN_ADDR_RAND) {
Index: sys/sys/imgact_elf.h
===================================================================
--- sys/sys/imgact_elf.h
+++ sys/sys/imgact_elf.h
@@ -89,6 +89,7 @@
Elf_Brandnote *brand_note;
boolean_t (*header_supported)(struct image_params *,
int32_t *, uint32_t *);
+ /* High 8 bits of flags is private to the ABI */
#define BI_CAN_EXEC_DYN 0x0001
#define BI_BRAND_NOTE 0x0002 /* May have note.ABI-tag section. */
#define BI_BRAND_NOTE_MANDATORY 0x0004 /* Must have note.ABI-tag section. */
Index: sys/sys/proc.h
===================================================================
--- sys/sys/proc.h
+++ sys/sys/proc.h
@@ -734,6 +734,7 @@
LIST_HEAD(, proc) p_orphans; /* (e) Pointer to list of orphans. */
TAILQ_HEAD(, kq_timer_cb_data) p_kqtim_stop; /* (c) */
+ void *brand_info; /* Elf_brandinfo, NULL for non Elf binaries */
};
#define p_session p_pgrp->pg_session

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 22, 2:49 PM (20 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28938770
Default Alt Text
D30918.id91413.diff (1 KB)

Event Timeline