[cgmanager-devel] [cgmanager/cgmanager] 40cd3f: may_access: fix a disrepency with fs behavior

GitHub noreply at github.com
Sun Jan 26 17:38:27 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: 40cd3f7d5fdb8fd73b56839888ae5f249676a4c6
      https://github.com/cgmanager/cgmanager/commit/40cd3f7d5fdb8fd73b56839888ae5f249676a4c6
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-26 (Sun, 26 Jan 2014)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  may_access: fix a disrepency with fs behavior

If requestor's uid matches the victim uid, and the user perms are
not sufficient for the action, return false rather than going on
to check the group perms.

Also remove a duplicate check for requestor to be root in the
victim's namespace.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 731ddc68dc2984235083fe1cb287ac9af31fc1e9
      https://github.com/cgmanager/cgmanager/commit/731ddc68dc2984235083fe1cb287ac9af31fc1e9
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-26 (Sun, 26 Jan 2014)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  compute_pid_cgroup: show errno if realpath fails

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 046fe122c2a040878883162320e5de1ffeba2d00
      https://github.com/cgmanager/cgmanager/commit/046fe122c2a040878883162320e5de1ffeba2d00
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-26 (Sun, 26 Jan 2014)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  file_read_pids: reallocate in chunks of 256 pids rather than 1

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: b51d366ae09cb3d7e582e9a0cf2504a12408a9e6
      https://github.com/cgmanager/cgmanager/commit/b51d366ae09cb3d7e582e9a0cf2504a12408a9e6
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-26 (Sun, 26 Jan 2014)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  get_pid_creds: read the right type for uid_t/gid_t

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 05db96789caf896eb7808655ddd3fc5e032833bb
      https://github.com/cgmanager/cgmanager/commit/05db96789caf896eb7808655ddd3fc5e032833bb
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-26 (Sun, 26 Jan 2014)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  chown_cgroup_path: move nih_local fpath down in scope

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 6ffc8ff9b6ec7f0e43ec0f33bec317cb280f31d6
      https://github.com/cgmanager/cgmanager/commit/6ffc8ff9b6ec7f0e43ec0f33bec317cb280f31d6
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-26 (Sun, 26 Jan 2014)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  read_pid_ns_link and read_user_ns_link: remove dead return

And exit if they fail.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


Compare: https://github.com/cgmanager/cgmanager/compare/146652a0e5ac...6ffc8ff9b6ec


More information about the cgmanager-devel mailing list