diff options
author | kib <kib@FreeBSD.org> | 2007-12-04 12:28:07 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2007-12-04 12:28:07 +0000 |
commit | feb2aba5b692eb1c9cb8275d405791736ea1067e (patch) | |
tree | 4d1748985bcd82a072eb1a920c2920cda339e7cd /sys/kern/kern_exec.c | |
parent | dbef1afd93ab22bb7408d3258ee59494af7dc2ac (diff) | |
download | FreeBSD-src-feb2aba5b692eb1c9cb8275d405791736ea1067e.zip FreeBSD-src-feb2aba5b692eb1c9cb8275d405791736ea1067e.tar.gz |
Implement fetching of the __FreeBSD_version from the ELF ABI-tag note.
The value is read into the p_osrel member of the struct proc. p_osrel
is set to 0 for the binaries without the note.
MFC after: 3 days
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index ddeac60..2878b37 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -391,6 +391,7 @@ interpret: if (error) goto exec_fail_dealloc; + imgp->proc->p_osrel = 0; /* * If the current process has a special image activator it * wants to try first, call it. For example, emulating shell |