artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
118353e
)
ld.so wants to make it's own RELRO immutable, which is obviously done
author
deraadt
<deraadt@openbsd.org>
Sun, 6 Nov 2022 11:43:19 +0000
(11:43 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sun, 6 Nov 2022 11:43:19 +0000
(11:43 +0000)
right after it does mprotect PROT_READ.
libexec/ld.so/loader.c
patch
|
blob
|
history
diff --git
a/libexec/ld.so/loader.c
b/libexec/ld.so/loader.c
index
7d52d15
..
c23ea6d
100644
(file)
--- a/
libexec/ld.so/loader.c
+++ b/
libexec/ld.so/loader.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: loader.c,v 1.19
8 2022/11/06 11:38:54
deraadt Exp $ */
+/* $OpenBSD: loader.c,v 1.19
9 2022/11/06 11:43:19
deraadt Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@
-436,6
+436,8
@@
_dl_self_relro(long loff)
case PT_GNU_RELRO:
_dl_mprotect((void *)(phdp->p_vaddr + loff),
phdp->p_memsz, PROT_READ);
+ _dl_mimmutable((void *)(phdp->p_vaddr + loff),
+ phdp->p_memsz);
break;
}
}