Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
hallyn committed Dec 2, 2013
1 parent d280814 commit 4adab3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cgmanager.c
Expand Up @@ -111,6 +111,8 @@ static pid_t get_scm_pid(int sock)
/*
* Tiny helper to read the /proc/pid/ns/pid link for a given pid.
* @pid: the pid whose link name to look up
*
* TODO - switch to using stat() to get inode # ?
*/
static bool read_pid_ns_link(int pid, char *linkname)
{
Expand Down Expand Up @@ -163,7 +165,7 @@ bool may_move_pid(pid_t r, uid_t r_uid, pid_t v)
if (r_uid == 0)
return true;
get_pid_creds(v, &uid, &gid);
if (r_uid == uid)
if (r_uid == v_uid)
return true;
if (hostuid_to_ns(r_uid, r) == 0 && hostuid_to_ns(v_uid, r) != -1)
return true;
Expand Down

0 comments on commit 4adab3b

Please sign in to comment.