[Peter Samuelson] > > Race -- you need to make sure the task_struct doesn't disappear out > > from under you. > > > > Anyway, why not use the interface 'chown uid /proc/pid'? No new > > syscall, no arch-dependent part, no user-space tool, etc. [Martin Dalecki] > Becouse of exactly the same race condition as above maybe? OK then, what is the right way to make sure a task doesn't disappear? I assumed 'read_lock (&tasklist_lock)' was enough, from reading other code. Peter - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
References:
- Re: [PATCH] new setprocuid syscallPeter Samuelson <peter _at_ cadcamlab.org>
- Re: [PATCH] new setprocuid syscallMartin Dalecki <dalecki _at_ evision-ventures.com>
- Prev by Date: kernel params
- Next by Date: Re: [PATCH] new setprocuid syscall
- Prev by thread: Re: [PATCH] new setprocuid syscall
- Next by thread: Re: [PATCH] new setprocuid syscall
- Indexes:[Main][Thread]