- 16 Apr, 2013 8 commits
-
-
Lennart Poettering authored
-
Lennart Poettering authored
-
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 /machine/). libsystemd-login can be used to query the machine name from a process. This patch also includes numerous clean-ups for the cgroup code.
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Michael Biebl authored
This function was removed in v183, so drop it from the symbols versioning file.
-
Kay Sievers authored
-
- 15 Apr, 2013 13 commits
-
-
Kay Sievers authored
-
Kay Sievers authored
-
Auke Kok authored
This bit of code is mostly stolen from coredump.c. We construct a simple journal message and append the bootchart file in the journal automatically. You can extract the latest bootchart from the current boot with something like: $ journalctl -b MESSAGE_ID=9f26aa562cf440c2b16c773d0479b518 --field=BOOTCHART which prints it to stdout. None of the other logic is touched. The journal entry is created even if bootchart was run manually, which is probably wrong.
-
Kay Sievers authored
<fdo-vcs> systemd kay master * b1454bf0 src/libsystemd-bus/ bus-kernel.c kdbus.h <fdo-vcs> systemd bus: catch up with kernel changes <kmacleod> kay: randomly looked at your commit, it looks like in KDBUS_FOREACH_ITEM you missed changing a (d) to an (i) in (uint8_t*) (d) < (uint8_t*) (k) + (k)->size; ? <kay> kmacleod: hah, so there *is* a reason for using _foo in macros :) <kay> kmacleod: thanks!
-
Kay Sievers authored
-
Lennart Poettering authored
audit: since nspawn now sets CAP_AUDIT_CONTROL for containers we cannot user this anymore to skip audit session ID retrieval As audit is still broken in containers we need a reliable way how we can determine whether the audit data we read from 7proc is actually useful. Previously we used CAP_AUDIT_CONTROL for this, since nspawn removed that from the nspawn container. This has changed a while back however, which means we used audit data of host system in the container. This adds an explicit container check to the audit calls, so that all audit data is turned off in containers. This should fix session creation with pam_systemd/logind in nspawn containers.
-
Lennart Poettering authored
-
Lennart Poettering authored
This allows clients to put inotify watches on these trees to watch for state changes, without having to wait until these dirs are created. This introduces the new top-level /machine cgroup dir as canonical location where OS containers and VMs shall be located (as discussed with the libvirt folks).
-
Lennart Poettering authored
-
Harald Hoyer authored
If systemd-vconsole-setup was started with LANG=C (no locale.conf), then it would set the console to non-unicode, which is not what we want.
-
Anatol Pomozov authored
-
Lennart Poettering authored
-
Lennart Poettering authored
Make sure that our library is safe for usage in SUID programs when it comes to env var handling
-
- 14 Apr, 2013 19 commits
-
-
Lennart Poettering authored
-
Lennart Poettering authored
As reported by Sergey Udaltsov.
-
Zbigniew Jędrzejewski-Szmek authored
b8a2b0f7 'use initalization instead of explicit zeroing' introduced a bug where only the first sizeof(uint_t*) bytes would be zeroed out, instead of the whole array.
-
Zbigniew Jędrzejewski-Szmek authored
-
Zbigniew Jędrzejewski-Szmek authored
-
Auke Kok authored
-
Auke Kok authored
-
Zbigniew Jędrzejewski-Szmek authored
Also remove a few casts and use _cleanup_fclose_ to simplify logic.
-
Zbigniew Jędrzejewski-Szmek authored
"__attribute__((always_inline))" does not replace "inline" and they still need to be used together. This fixes "always_inline function might not be inlinable [-Wattributes]" warning in gcc 4.7 Idea-from-patch-by:
Siarhei Siamashka <siarhei.siamashka@gmail.com>
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Kay Sievers authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
Zbigniew Jędrzejewski-Szmek authored
<fcntl.h> is POSIX. On Linux, <sys/fcntl.h> simply includes <fcntl.h>, so there should be on difference. On Android likewise, except that there is some more stuff. QNX has only <fcntl.h>. https://bugs.freedesktop.org/show_bug.cgi?id=63423
-