1. 30 Mar, 2020 1 commit
    • cgroups: handle older kernels (e.g. v4.9) · d1783ef4
      Christian Brauner authored
      On olders kernels the restrictions to move processes between cgroups are
      different than they are on newer kernels. Specifically, we're running into the
      following check:
      
      if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) &&
          !uid_eq(cred->euid, tcred->uid) &&
          !uid_eq(cred->euid, tcred->suid))
              ret = -EACCES;
      
      which dictates that in order to move a process into a cgroup one either needs
      to be global root (no restrictions apply) or the effective uid of the process
      trying to move the process and the {saved}uid of the process that is supposed
      to be moved need to be identical. The new attaching logic we did didn't
      fulfill this criterion for because it's not present on new kernels.
      
      Closes https://github.com/lxc/lxd/issues/7104.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
  2. 28 Mar, 2020 7 commits
  3. 27 Mar, 2020 18 commits
  4. 26 Mar, 2020 6 commits
  5. 25 Mar, 2020 4 commits
  6. 24 Mar, 2020 4 commits