Page MenuHomeFreeBSD

D42440.id129623.diff
No OneTemporary

D42440.id129623.diff

diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -1346,6 +1346,9 @@
if (error != 0)
goto ret;
+ if (sv->sv_protect != NULL)
+ sv->sv_protect(imgp);
+
/*
* We load the dynamic linker where a userland call
* to mmap(0, ...) would put it. The rationale behind this
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h
--- a/sys/sys/sysent.h
+++ b/sys/sys/sysent.h
@@ -149,6 +149,7 @@
vm_offset_t sv_fxrng_gen_offset;
void (*sv_onexec_old)(struct thread *td);
int (*sv_onexec)(struct proc *, struct image_params *);
+ void (*sv_protect)(struct image_params *);
void (*sv_onexit)(struct proc *);
void (*sv_ontdexit)(struct thread *td);
int (*sv_setid_allowed)(struct thread *td,

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 28, 8:33 AM (3 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26278701
Default Alt Text
D42440.id129623.diff (775 B)

Event Timeline