mailing list of musl libc
 help / color / mirror / code / Atom feed
0a1f97ad865cb31f52be0a521a1feac391b3c0d2 blob 333 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#define _GNU_SOURCE 1
#include <sys/mman.h>
#include <errno.h>
#include "syscall.h"

int pkey_mprotect(void *addr, size_t len, int prot, int pkey)
{
	if (pkey == -1)
		return mprotect(addr, len, prot);
#ifdef SYS_pkey_mprotect
	return syscall(SYS_pkey_mprotect, addr, len, prot, pkey);
#else
	return __syscall_ret(-ENOSYS);
#endif
}
debug log:

solving 0a1f97ad ...
found 0a1f97ad in https://inbox.vuxu.org/musl/20180428213958.GV4418@port70.net/ ||
	https://inbox.vuxu.org/musl/20180614230337.GR4418@port70.net/

applying [1/2] https://inbox.vuxu.org/musl/20180428213958.GV4418@port70.net/
diff --git a/src/linux/pkey_mprotect.c b/src/linux/pkey_mprotect.c
new file mode 100644
index 00000000..0a1f97ad

Checking patch src/linux/pkey_mprotect.c...
Applied patch src/linux/pkey_mprotect.c cleanly.

skipping https://inbox.vuxu.org/musl/20180614230337.GR4418@port70.net/ for 0a1f97ad
index at:
100644 0a1f97ad865cb31f52be0a521a1feac391b3c0d2	src/linux/pkey_mprotect.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).