[cgmanager-devel] [lxc/cgmanager] 78e4da: Fix subdirectory check

GitHub noreply at github.com
Thu Feb 12 01:10:10 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/lxc/cgmanager
  Commit: 78e4dab5cfc9c8a07e93ba5caf1b9c492b1da332
      https://github.com/lxc/cgmanager/commit/78e4dab5cfc9c8a07e93ba5caf1b9c492b1da332
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2015-02-11 (Wed, 11 Feb 2015)

  Changed paths:
    M cgmanager.c
    M fs.c
    M fs.h

  Log Message:
  -----------
  Fix subdirectory check

Commit 6a30adc22cc05b5 was not quite complete.  If the task is in
/xxx then it may act on /xxx or /xxx/a, but not /xxx2.  This commit
fixes the check to disallow /xxx2.  It also commonizes the check,
cleaning up the code a bit.

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




More information about the cgmanager-devel mailing list