lkml.org 
[lkml]   [2018]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch v3 06/13] mm: Pass task instead of task->mm as argument to set_dumpable
On Wed, Oct 17, 2018 at 10:59:34AM -0700, Tim Chen wrote:
> Change the argument to set_dumpable from task->mm to task. This allows us
> to later add hooks to modify a task's property according to whether it is
> a non-dumpable task. Non dumpable tasks demand a higher level of security.
> Changes the dumpable value from in to unsigned int as negative number is
> not allowed.

Per task dumpable doesn't make any kind of sense. Dumpable is about
coredumps, that's an mm property.

If you want to introduce other (per task) state; give that a new name
and check for that explicitly. Don't create confusion like this.

\
 
 \ /
  Last update: 2018-10-19 22:03    [W:0.253 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site