|
@@ -22,7 +22,7 @@
|
|
#include <linux/pagemap.h>
|
|
#include <linux/pagemap.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/vmalloc.h>
|
|
#include <linux/vmalloc.h>
|
|
-#include <linux/ptrace.h>
|
|
|
|
|
|
+#include <linux/tracehook.h>
|
|
#include <linux/blkdev.h>
|
|
#include <linux/blkdev.h>
|
|
#include <linux/backing-dev.h>
|
|
#include <linux/backing-dev.h>
|
|
#include <linux/mount.h>
|
|
#include <linux/mount.h>
|
|
@@ -745,7 +745,7 @@ static unsigned long determine_vm_flags(struct file *file,
|
|
* it's being traced - otherwise breakpoints set in it may interfere
|
|
* it's being traced - otherwise breakpoints set in it may interfere
|
|
* with another untraced process
|
|
* with another untraced process
|
|
*/
|
|
*/
|
|
- if ((flags & MAP_PRIVATE) && (current->ptrace & PT_PTRACED))
|
|
|
|
|
|
+ if ((flags & MAP_PRIVATE) && tracehook_expect_breakpoints(current))
|
|
vm_flags &= ~VM_MAYSHARE;
|
|
vm_flags &= ~VM_MAYSHARE;
|
|
|
|
|
|
return vm_flags;
|
|
return vm_flags;
|