[lxc-devel] [lxc/lxc] 4a80bb: Initial push of a minimal nih-based dbus service

GitHub noreply at github.com
Mon Dec 2 17:53:36 UTC 2013


  Branch: refs/heads/nov29.1
  Home:   https://github.com/lxc/lxc
  Commit: 4a80bbc6aca5a5babb666136c6072d86b5540f95
      https://github.com/lxc/lxc/commit/4a80bbc6aca5a5babb666136c6072d86b5540f95
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    A .gitignore
    A DEPENDENCIES
    A Makefile
    A cgmanager.c
    A org.linuxcontainers.cgmanager.xml

  Log Message:
  -----------
  Initial push of a minimal nih-based dbus service

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: dd6534304392f9c6820587ce3b6b6c4829c27720
      https://github.com/lxc/lxc/commit/dd6534304392f9c6820587ce3b6b6c4829c27720
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M Makefile
    M cgmanager.c
    M org.linuxcontainers.cgmanager.xml

  Log Message:
  -----------
  Fix dbus path and add more examples

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: d7af32118951a1fad8c3ac3c591fc81cbc237feb
      https://github.com/lxc/lxc/commit/d7af32118951a1fad8c3ac3c591fc81cbc237feb
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M Makefile
    M cgmanager.c

  Log Message:
  -----------
  Add exception example

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: f5361566d0cfee3cc2fa6cbcfb9d353d85c43cfa
      https://github.com/lxc/lxc/commit/f5361566d0cfee3cc2fa6cbcfb9d353d85c43cfa
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M cgmanager.c
    M org.linuxcontainers.cgmanager.xml

  Log Message:
  -----------
  blah

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


  Commit: 679aee922832222883e8ece99574ab198ab3e9fc
      https://github.com/lxc/lxc/commit/679aee922832222883e8ece99574ab198ab3e9fc
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M Makefile
    M cgmanager.c
    M org.linuxcontainers.cgmanager.xml

  Log Message:
  -----------
  mount cgroups

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


  Commit: b5e8d22571cdd045b66b68cdb1fb16387ddac72b
      https://github.com/lxc/lxc/commit/b5e8d22571cdd045b66b68cdb1fb16387ddac72b
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M cgmanager.c

  Log Message:
  -----------
  allow any uid to connect

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


  Commit: d8e181a2463fc951000509ab09038111fd487743
      https://github.com/lxc/lxc/commit/d8e181a2463fc951000509ab09038111fd487743
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

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

  Log Message:
  -----------
  split fs functions into fs.c

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


  Commit: e662e9ce275aeb36c0da1fdb44db6e34f6821f17
      https://github.com/lxc/lxc/commit/e662e9ce275aeb36c0da1fdb44db6e34f6821f17
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

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

  Log Message:
  -----------
  define cgmanager_get_value

Allow a requestor r to ask for value of a cgroup file.

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


  Commit: 098642143bd97cecc330d83b43b206e1fb4025f1
      https://github.com/lxc/lxc/commit/098642143bd97cecc330d83b43b206e1fb4025f1
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

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

  Log Message:
  -----------
  handle 'cwd' paths, and fix cgroup reading

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


  Commit: 7340af99dc32caad16cefa248f26074d1bcf4648
      https://github.com/lxc/lxc/commit/7340af99dc32caad16cefa248f26074d1bcf4648
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  remove debugging info

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


  Commit: 47b78662532a2000b83e7b87ce53c3f3857b66c0
      https://github.com/lxc/lxc/commit/47b78662532a2000b83e7b87ce53c3f3857b66c0
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M Makefile
    M cgmanager.c
    M fs.c
    M fs.h
    M org.linuxcontainers.cgmanager.xml

  Log Message:
  -----------
  add getMyCgroup method

To return the caller's absolute cgroup path.  This may not exist in the
final api, but it's useful now for testing.

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


  Commit: 6eec7df36bf456f04885633608bd2353e224f607
      https://github.com/lxc/lxc/commit/6eec7df36bf456f04885633608bd2353e224f607
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M cgmanager.c

  Log Message:
  -----------
  Don't get uid/gid of requester from /proc/pid/status

We already got them from the socket.

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


  Commit: 3def984dfe950d84eff1516146333b609218cd91
      https://github.com/lxc/lxc/commit/3def984dfe950d84eff1516146333b609218cd91
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M cgmanager.c
    M fs.c
    M org.linuxcontainers.cgmanager.xml

  Log Message:
  -----------
  start to Create method

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


  Commit: fe898ab76b2f905fecedf83f6cb44bef9a0dff4e
      https://github.com/lxc/lxc/commit/fe898ab76b2f905fecedf83f6cb44bef9a0dff4e
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-28 (Thu, 28 Nov 2013)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  set use_hierarchy and clone_children

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


  Commit: 69d8369338f251881be6b8097e156cc6f2c1c6ba
      https://github.com/lxc/lxc/commit/69d8369338f251881be6b8097e156cc6f2c1c6ba
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

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

  Log Message:
  -----------
  fix last two commits

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


  Commit: a00322dee82b36b459e0aa57a41c15cb7165a8e4
      https://github.com/lxc/lxc/commit/a00322dee82b36b459e0aa57a41c15cb7165a8e4
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  Fix bad checks for O_RDWR case in may_access

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


  Commit: 2c99fa736cffb445275788b455a4834eeacf2690
      https://github.com/lxc/lxc/commit/2c99fa736cffb445275788b455a4834eeacf2690
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  inform when initializing cgroups

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


  Commit: 0d8e9dfb5e175e9007c5d644ff068b5f2f1e5bde
      https://github.com/lxc/lxc/commit/0d8e9dfb5e175e9007c5d644ff068b5f2f1e5bde
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M Makefile

  Log Message:
  -----------
  some more tests...  these need to go to a test script

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


  Commit: 65016849eb514f9f91abfd3fcbef710757961539
      https://github.com/lxc/lxc/commit/65016849eb514f9f91abfd3fcbef710757961539
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M cgmanager.c
    M fs.c

  Log Message:
  -----------
  change nih_fatal to nih_warn in most cases

Also don't return error on mkdir of an existing cgroup.
(But don't chown to the caller)

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


  Commit: 1359b5869ab6b7ca3449233f9f6f7de5dd95e25e
      https://github.com/lxc/lxc/commit/1359b5869ab6b7ca3449233f9f6f7de5dd95e25e
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M cgmanager.c

  Log Message:
  -----------
  change asserts to simple checks

we don't want the daemon to exit out due to bad client output,
just to not go on and choke on it.

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


  Commit: 405c5b653988b7f4baaf8d730600866317c1fec3
      https://github.com/lxc/lxc/commit/405c5b653988b7f4baaf8d730600866317c1fec3
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    A test.sh

  Log Message:
  -----------
  add test script

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


  Commit: 71a19fc1969392d8f2c910484d51934e54fe6e8b
      https://github.com/lxc/lxc/commit/71a19fc1969392d8f2c910484d51934e54fe6e8b
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M fs.c

  Log Message:
  -----------
  may_access: allow root on host all perms

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


  Commit: a8110c0ff8776edd6a4e5d0fd3a4eebac25a9357
      https://github.com/lxc/lxc/commit/a8110c0ff8776edd6a4e5d0fd3a4eebac25a9357
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M test.sh

  Log Message:
  -----------
  remove bogus test

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


  Commit: 9fdcc16b59967b98a7693a1bd1a47f265e350772
      https://github.com/lxc/lxc/commit/9fdcc16b59967b98a7693a1bd1a47f265e350772
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M cgmanager.c
    M fs.c

  Log Message:
  -----------
  make sure to always raise an error before returning -1

Else daemon will exit with an assert.

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


  Commit: 0dbeff35904ca987c95239b4e9acfb86c459ad4a
      https://github.com/lxc/lxc/commit/0dbeff35904ca987c95239b4e9acfb86c459ad4a
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M .gitignore
    M Makefile
    M cgmanager.c
    A movepid.c
    M org.linuxcontainers.cgmanager.xml

  Log Message:
  -----------
  add movepid
Add movepid to gitignore.
Makefile: make cgmanager depend on cgmanager.c for obvious reasons.

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


  Commit: 72fca6cff6ea7e851a056809c6ea715bf63e5ee7
      https://github.com/lxc/lxc/commit/72fca6cff6ea7e851a056809c6ea715bf63e5ee7
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-11-29 (Fri, 29 Nov 2013)

  Changed paths:
    M movepid.c

  Log Message:
  -----------
  gotta setsockkopt before sending a passcred

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


  Commit: 09e4e976245447ace29bd7ccdd95e06aa7e30ba6
      https://github.com/lxc/lxc/commit/09e4e976245447ace29bd7ccdd95e06aa7e30ba6
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-12-01 (Sun, 01 Dec 2013)

  Changed paths:
    M cgmanager.c
    M movepid.c
    M org.linuxcontainers.cgmanager.xml

  Log Message:
  -----------
  movepid: send a plain int pid

Detect whether the caller is in the same pidns as us.  If so, then
we accept the victim pid as a plain integer.  If not, then the
caller must send the pid as an SCM_CREDENTIAL so we can convert
it.

We jump through these hoops because non-root users cannot send
SCM_CREDENTIAL pids for tasks other than themselves.  A root-owned
proxy in their own pidns can convert the  int pid to an SCM_CREDENTIAL
for us.  But for performance's sake we'd rather not do that for the
initial pidns.

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


  Commit: 76a48fa0b94018441d047f439b4f28a980395427
      https://github.com/lxc/lxc/commit/76a48fa0b94018441d047f439b4f28a980395427
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-12-01 (Sun, 01 Dec 2013)

  Changed paths:
    M cgmanager.c

  Log Message:
  -----------
  add comments and flesh out some of the movepid code

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


  Commit: d280814187897dba41b97627137094c184da4ea0
      https://github.com/lxc/lxc/commit/d280814187897dba41b97627137094c184da4ea0
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-12-01 (Sun, 01 Dec 2013)

  Changed paths:
    M cgmanager.c

  Log Message:
  -----------
  movepid: flesh out the pid-to-pid permission check

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


  Commit: 4adab3b033a4ab3c02cf61ef663394a042986626
      https://github.com/lxc/lxc/commit/4adab3b033a4ab3c02cf61ef663394a042986626
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-12-02 (Mon, 02 Dec 2013)

  Changed paths:
    M cgmanager.c

  Log Message:
  -----------
  fix typo

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


  Commit: dc635e7445ff63fe080652af7bc4c6f6d2bdb584
      https://github.com/lxc/lxc/commit/dc635e7445ff63fe080652af7bc4c6f6d2bdb584
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2013-12-02 (Mon, 02 Dec 2013)

  Changed paths:
    M test.sh

  Log Message:
  -----------
  add two movepid tests

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


Compare: https://github.com/lxc/lxc/compare/4a80bbc6aca5^...dc635e7445ff


More information about the lxc-devel mailing list