[lkml]   [2001]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] new setprocuid syscall

    On Mon, 19 Feb 2001, Peter Samuelson wrote:

    > [BERECZ Szabolcs]
    > > + p = find_task_by_pid(pid);
    > > + p->fsuid = p->euid = p->suid = p->uid = uid;
    > Race -- you need to make sure the task_struct doesn't disappear out
    > from under you.

    Yes, but we need a write_lock, not a read_lock.

    > Anyway, why not use the interface 'chown uid /proc/pid'? No new
    > syscall, no arch-dependent part, no user-space tool, etc.

    We need a userspace tool, because we must check if the user, who want to
    change the uid, knows the other user's passwd.
    Or what if user1 want to change user2's process to user3 uid?


    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: 2005-03-22 13:17    [W:0.021 / U:16.892 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site