On Mon, Apr 02, 2012 at 04:48:21PM +0200, Oleg Nesterov wrote:So it leads to the same question -- do we *really* need the PR_SET_MM_EXE_FILE
> On 04/02, Konstantin Khlebnikov wrote:
> > In this patch I leave mm->exe_file lockless.
> > something like this:
> > task_lock(current);
> OK, this protects against the race with get_task_mm()
> > if (atomic_read(¤t->mm->mm_users) == 1)
> this means PR_SET_MM_EXE_FILE can fail simply because someone did
to be one-shot action? Yeah, I know, we agreed that one-shot is better than
anything else from sysadmin perspective and such, but maybe I could introduce
a special capability bit for c/r and allow a program which has such cap to modify
exe-file without checkin mm_users?
Sure, it was just "something like" as Konstantin stated, thanks anyway ;)
> > set_mm_exe_file(current->mm, new_file);
> No, fput() can sleep.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.