1. 26 Jan, 2018 3 commits
    • better check for lock dir · 9650c735
      Tycho Andersen authored
      Consider the case where we're running in a user namespace but in the host's
      mount ns with the host's filesystem (something like
      lxc-usernsexec ... lxc-execute ...), in this case, we'll be euid 0, but we
      can't actually write to /run. Let's improve this locking check to make sure
      we can actually write to /run before we decide to actually use it as our
      locking dir.
      Signed-off-by: 's avatarTycho Andersen <tycho@tycho.ws>
    • Merge pull request #2109 from duguhaotian/new · 3fdb1cf4
      Christian Brauner authored
      [cgfsng] show wrong errno
    • [cgfsng] show wrong errno · d1953b26
      duguhaotian authored
      lxc_cgroup_set_data: h = get_hierarchy(controller);
      if h is NULL, now errno is old, it donot set new one.
      And then,
      cgfsng_setup_limits:
      
          if (lxc_cgroup_set_data(cg->subsystem, cg->value, d)) {
      		if (do_devices && (errno == EACCES ||
      			errno == EPERM)) {
      			WARN("Error setting %s to %s for %s",
      				cg->subsystem, cg->value,
      				d->name);
      			continue;
      		}
      		SYSERROR("Error setting %s to %s for
      			 %s",
      			 cg->subsystem, cg->value,
      			 d->name);
      		goto out;
      	}
      
      SYSERROR will show old errno, make me confused.
      Signed-off-by: 's avatarduguhaotian <duguhaotian@gmail.com>
  2. 24 Jan, 2018 1 commit
  3. 23 Jan, 2018 2 commits
  4. 22 Jan, 2018 6 commits
  5. 21 Jan, 2018 5 commits
  6. 20 Jan, 2018 9 commits
  7. 19 Jan, 2018 14 commits