aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2021-07-20 06:56:25 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2021-07-20 06:56:25 +0000
commit5fd9cd53d256e08c601548c425bfcb3472f2d09b (patch)
tree45d0b3de45512eb42eee2c0b19db571dc17bed3e /sys/sys
parent62ba4cd340670e901fbaab98766bd5490b4334bd (diff)
downloadsrc-5fd9cd53d256e08c601548c425bfcb3472f2d09b.tar.gz
src-5fd9cd53d256e08c601548c425bfcb3472f2d09b.zip
linux(4): Modify sv_onexec hook to return an error.
Temporary add stubs to the Linux emulation layer which calls the existing hook. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D30911 MFC after: 2 weeks
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/sysent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h
index f0bb084d59dc..1b43e9692153 100644
--- a/sys/sys/sysent.h
+++ b/sys/sys/sysent.h
@@ -151,7 +151,7 @@ struct sysentvec {
const char *(*sv_machine_arch)(struct proc *);
vm_offset_t sv_fxrng_gen_base;
void (*sv_onexec_old)(struct thread *td);
- void (*sv_onexec)(struct proc *, struct image_params *);
+ int (*sv_onexec)(struct proc *, struct image_params *);
void (*sv_onexit)(struct proc *);
void (*sv_ontdexit)(struct thread *td);
int (*sv_setid_allowed)(struct thread *td,