[lkml]   [2007]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] remove GPL restriction from set_dumpable()
From: Jiri Kosina <>

remove GPL restriction from set_dumpable()

Commit 6c5d5238 introduced a set_dumpable() function that replaced the
direct access to mm_struct->dumpable. I don't think there is any reason to
restrict this function to EXPORT_SYMBOL_GPL() -- previously any module
could modify current->mm->dumpable without any resitrictions, so it makes
a little sense to turn this into 'internal interface' at once.

There in fact are 3rd party modules that modify the dumpable flag, and
this patch should fix the situation for them once again (for example

Signed-off-by: Jiri Kosina <>

diff --git a/fs/exec.c b/fs/exec.c
index 073b0b8..a204720 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1699,7 +1699,7 @@ void set_dumpable(struct mm_struct *mm, int value)

int get_dumpable(struct mm_struct *mm)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2007-10-14 13:07    [W:0.047 / U:2.800 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site