[lxc-devel] [lxc/lxc] c8bf51: Allow full path in lxc.devices.allow

GitHub noreply at github.com
Sat Jul 29 03:31:56 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: c8bf519d7ec4a6e0aa996f8828b5b319b93d0483
      https://github.com/lxc/lxc/commit/c8bf519d7ec4a6e0aa996f8828b5b319b93d0483
  Author: aeris <aeris at imirhil.fr>
  Date:   2017-07-26 (Wed, 26 Jul 2017)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  Allow full path in lxc.devices.allow

Some devices like LVM or cryptsetup entries have no stable major/minor, changing between host reboots.
In this case, hardcoded numbers are not usable in config file and there is currently no way to use hook with lxc-device to do the link at guest startup :

    * `pre-start`/`autodev` hook runs in host context but has the guest in stopped state and so lxc-device not usable
    * `start` hook is in running state but runs in guest context and so lxc-device not available

This patch converts fullpath in lxc.devices.allow to current major/minor numbers to address those changing numbers.

Signed-off-by: aeris <aeris at imirhil.fr>


  Commit: da7a897ee2143b440b175029cfaad256727fd038
      https://github.com/lxc/lxc/commit/da7a897ee2143b440b175029cfaad256727fd038
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2017-07-28 (Fri, 28 Jul 2017)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  Merge pull request #1708 from aeris/master

Allow full path in lxc.devices.allow


Compare: https://github.com/lxc/lxc/compare/5fddde036cbd...da7a897ee214


More information about the lxc-devel mailing list