1. 16 Apr, 2013 1 commit
    • Lennart Poettering's avatar
      nspawn: introduce the new /machine/ tree in the cgroup tree and move containers there · 7027ff61
      Lennart Poettering authored
      Containers will now carry a label (normally derived from the root
      directory name, but configurable by the user), and the container's root
      cgroup is /machine/<label>. This label is called "machine name", and can
      cover both containers and VMs (as soon as libvirt also makes use of
      libsystemd-login can be used to query the machine name from a process.
      This patch also includes numerous clean-ups for the cgroup code.
  2. 02 Apr, 2013 2 commits
  3. 18 Mar, 2013 1 commit
  4. 27 Feb, 2013 1 commit
    • Lennart Poettering's avatar
      unit: rework resource management API · 26d04f86
      Lennart Poettering authored
      This introduces a new static list of known attributes and their special
      semantics. This means that cgroup attribute values can now be
      automatically translated from user to kernel notation for command line
      set settings, too.
      This also adds proper support for multi-line attributes.
  5. 14 Feb, 2013 1 commit
  6. 19 Jan, 2013 1 commit
  7. 18 Jan, 2013 1 commit
  8. 14 Jan, 2013 1 commit
  9. 06 Jan, 2013 1 commit
  10. 02 Oct, 2012 2 commits
  11. 17 Sep, 2012 2 commits
    • Lennart Poettering's avatar
    • Daniel J Walsh's avatar
      selinux: add bus service access control · e2417e41
      Daniel J Walsh authored
      Hash: SHA1
      This patch adds the ability to look at the calling process that is trying to
      do dbus calls into systemd, then it checks with the SELinux policy to see if
      the calling process is allowed to do the activity.
      The basic idea is we want to allow NetworkManager_t to be able to start and
      stop ntpd.service, but not necessarly mysqld.service.
      Similarly we want to allow a root admin webadm_t that can only manage the
      apache environment.  systemctl enable httpd.service, systemctl disable
      iptables.service bad.
      To make this code cleaner, we really need to refactor the dbus-manager.c code.
       This has just become a huge if-then-else blob, which makes doing the correct
      check difficult.
      -----BEGIN PGP SIGNATURE-----
      Version: GnuPG v1.4.12 (GNU/Linux)
      Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
      -----END PGP SIGNATURE-----
  12. 13 Sep, 2012 1 commit
  13. 26 Jul, 2012 1 commit
  14. 19 Jul, 2012 1 commit
  15. 13 Jul, 2012 1 commit
    • Lennart Poettering's avatar
      unit: rename BindTo= to BindsTo= · 7f2cddae
      Lennart Poettering authored
      all other dependencies are in 3rd person. Change BindTo= accordingly to
      Of course, the dependency is widely used, hence we parse the old name
      too for compatibility.
  16. 22 May, 2012 1 commit
  17. 21 May, 2012 2 commits
  18. 30 Apr, 2012 1 commit
  19. 11 Apr, 2012 2 commits
    • Lennart Poettering's avatar
      relicense to LGPLv2.1 (with exceptions) · 5430f7f2
      Lennart Poettering authored
      We finally got the OK from all contributors with non-trivial commits to
      relicense systemd from GPL2+ to LGPL2.1+.
      Some udev bits continue to be GPL2+ for now, but we are looking into
      relicensing them too, to allow free copy/paste of all code within
      The bits that used to be MIT continue to be MIT.
      The big benefit of the relicensing is that closed source code may now
      link against libsystemd-login.so and friends.
    • Kay Sievers's avatar
      move libsystemd_core.la sources into core/ · b30e2f4c
      Kay Sievers authored
  20. 17 Jan, 2012 1 commit
  21. 16 Jan, 2012 2 commits
    • Michal Schmidt's avatar
      dbus: more efficient implementation of properties · d200735e
      Michal Schmidt authored
      The way the various properties[] arrays are initialized is inefficient:
       - only the .data members change at runtime, yet the whole arrays of
         properties with all the fields are constructed on the stack one by
         one by the code.
       - there's duplication, eg. the properties of "org.freedesktop.systemd1.Unit"
         are repeated in several unit types.
      Fix it by moving the information about properties into static const
      sections. Instead of storing the .data directly in the property, store
      a constant offset from a run-time base.
      The small arrays of struct BusBoundProperties bind together the constant
      information with the right runtime information (the base pointer).
      On my system the code shrinks by 60 KB, data increases by 10 KB.
    • Michal Schmidt's avatar
      unit: remove union Unit · ac155bb8
      Michal Schmidt authored
      Now that objects of all unit types are allocated the exact amount of
      memory they need, the Unit union has lost its purpose. Remove it.
      "Unit" is a more natural name for the base unit class than "Meta", so
      rename Meta to Unit.
      Access to members of the base class gets simplified.
  22. 21 Aug, 2011 1 commit
  23. 31 Jul, 2011 2 commits
  24. 13 Jul, 2011 1 commit
  25. 16 Apr, 2011 1 commit
  26. 31 Mar, 2011 1 commit
  27. 09 Mar, 2011 2 commits
    • Andrey Borzenkov's avatar
      dbus: fix dbus assert due to uninitialized error · b8a021c9
      Andrey Borzenkov authored
      Add missing dbus_error_init() in UNKNOWN_OBJECT case. Fixes assertion
      systemd[1]: Caught <ABRT>, dumped core as pid 6256.
      systemd[1]: Freezing execution.
      Core was generated by `/bin/systemd systemd.unit=graphical.target'.
      Program terminated with signal 6, Aborted.
      #0  0x00007f8966ec81db in raise () from /lib64/libpthread.so.0
      (gdb) bt
      #0  0x00007f8966ec81db in raise () from /lib64/libpthread.so.0
      #1  0x000000000040823b in crash (sig=6) at src/main.c:120
      #2  <signal handler called>
      #3  0x00007f896613c075 in raise () from /lib64/libc.so.6
      #4  0x00007f896613d806 in abort () from /lib64/libc.so.6
      #5  0x00007f89672ac8a5 in _dbus_abort () at dbus-sysdeps.c:94
      #6  0x00007f89672a37b5 in _dbus_warn_check_failed (
         format=0x7f89672b35d8 "arguments to %s() were incorrect, assertion
      \"%s\" failed in file %s line %d.\nThis is normally a bug in some
      application using the D-Bus library.\n") at dbus-internals.c:289
      #7  0x0000000000441500 in bus_unit_message_handler (connection=0x21b6090,
         message=0x21b6760, data=0x1f3e870) at src/dbus-unit.c:572
      #8  0x00007f8967299f11 in _dbus_object_tree_dispatch_and_unlock (
         tree=0x219d660, message=0x21b6760) at dbus-object-tree.c:858
      #9  0x00007f896728bca2 in dbus_connection_dispatch (connection=0x21b6090)
         at dbus-connection.c:4688
      #10 0x000000000043befa in bus_dispatch (m=0x1f3e870) at src/dbus.c:547
      #11 0x000000000041056d in manager_loop (m=0x1f3e870) at src/manager.c:2344
      #12 0x0000000000409515 in main (argc=<value optimized out>,
         argv=<value optimized out>) at src/main.c:1229
    • Lennart Poettering's avatar
  28. 08 Mar, 2011 1 commit
  29. 23 Nov, 2010 1 commit
    • Thierry Reding's avatar
      build-sys: allow cross-compilation · 9a60da28
      Thierry Reding authored
      When cross-compiling systemd, the introspection XML files fail to be
      generated because the systemd host binary is not executable. This patch
      works around this by putting the introspection XML data into separate
      ELF sections and extracting them from the binary when generating the XML
      The extracted XML data is passed through the strings utility in order to
      strip the trailing NUL character. A small AWK script is used to prepend
      the doctype and add the opening and closing node tags respectively.
      Finally, the C preprocessor is used to substitute the correct doctype
      information from the D-Bus header files.
  30. 22 Oct, 2010 1 commit
  31. 13 Oct, 2010 1 commit
  32. 30 Aug, 2010 1 commit