From 8576a4ebaa313addc9415078d2610ae6f52247ba Mon Sep 17 00:00:00 2001 From: dchagin Date: Sun, 17 Jul 2016 15:07:33 +0000 Subject: MFC r302515: Implement Linux personality() system call mainly due to READ_IMPLIES_EXEC flag. In Linux if this flag is set, PROT_READ implies PROT_EXEC for mmap(). Linux/i386 set this flag automatically if the binary requires executable stack. READ_IMPLIES_EXEC flag will be used in the next Linux mmap() commit. --- sys/amd64/linux/syscalls.master | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/amd64/linux') diff --git a/sys/amd64/linux/syscalls.master b/sys/amd64/linux/syscalls.master index 50ddd92..a2c4a0b 100644 --- a/sys/amd64/linux/syscalls.master +++ b/sys/amd64/linux/syscalls.master @@ -270,7 +270,7 @@ 133 AUE_MKNOD STD { int linux_mknod(char *path, l_int mode, \ l_dev_t dev); } 134 AUE_USELIB UNIMPL uselib -135 AUE_PERSONALITY STD { int linux_personality(l_ulong per); } +135 AUE_PERSONALITY STD { int linux_personality(l_uint per); } 136 AUE_NULL STD { int linux_ustat(l_dev_t dev, \ struct l_ustat *ubuf); } 137 AUE_STATFS STD { int linux_statfs(char *path, \ -- cgit v1.1