From d4a5279ed518cf6bc538aa77a15c6a88f6a5f538 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Fri, 2 Sep 2005 10:42:52 +1000 Subject: [PATCH] --- yaml --- r: 6829 b: refs/heads/master c: 213b24c93b6c43d96973b9db453bf845c97bbe18 h: refs/heads/master i: 6827: 1e0b43c62602bd40f230f6a91f0fe6d2a0f8f55c v: v3 --- [refs] | 2 +- trunk/fs/binfmt_flat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 8aa8df87bf44..b71623c8f825 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 03a002e783b71517a5203e681f84a2719e9cec0e +refs/heads/master: 213b24c93b6c43d96973b9db453bf845c97bbe18 diff --git a/trunk/fs/binfmt_flat.c b/trunk/fs/binfmt_flat.c index c8998dc66882..7974efa107bc 100644 --- a/trunk/fs/binfmt_flat.c +++ b/trunk/fs/binfmt_flat.c @@ -520,7 +520,7 @@ static int load_flat_file(struct linux_binprm * bprm, DBG_FLT("BINFMT_FLAT: ROM mapping of file (we hope)\n"); down_write(¤t->mm->mmap_sem); - textpos = do_mmap(bprm->file, 0, text_len, PROT_READ|PROT_EXEC, MAP_SHARED, 0); + textpos = do_mmap(bprm->file, 0, text_len, PROT_READ|PROT_EXEC, MAP_PRIVATE, 0); up_write(¤t->mm->mmap_sem); if (!textpos || textpos >= (unsigned long) -4096) { if (!textpos)