Lennart Poettering
7027ff61a3
nspawn: introduce the new /machine/ tree in the cgroup tree and move containers there
...
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.
2013-04-16 04:41:21 +02:00
Lennart Poettering
6c03089c32
bus: handle env vars safely
...
Make sure that our library is safe for usage in SUID programs when it
comes to env var handling
2013-04-15 14:05:03 +02:00
Lennart Poettering
2d76d14ea3
cgroup: clean-ups
2013-04-08 20:35:25 +02:00
Lennart Poettering
974efc4658
cgroup: always keep access mode of 'tasks' and 'cgroup.procs' files in cgroup directories in sync
2013-04-08 18:22:47 +02:00
Lennart Poettering
574d5f2dfc
util: rename write_one_line_file() to write_string_file()
...
You can write much more than just one line with this call (and we
frequently do), so let's correct the naming.
2013-04-03 20:12:56 +02:00
Harald Hoyer
a5c32cff1f
honor SELinux labels, when creating and writing config files
...
Also split out some fileio functions to fileio.c and provide a SELinux
aware pendant in fileio-label.c
see https://bugzilla.redhat.com/show_bug.cgi?id=881577
2013-02-14 16:19:38 +01:00
Thomas Hindoe Paaboel Andersen
641906e936
use strneq instead of strncmp
2013-02-13 00:56:13 +01:00
Lennart Poettering
e884315e3d
cgroup: additional validity checks for cgroup attribute names
2013-01-19 01:02:30 +01:00
Zbigniew Jędrzejewski-Szmek
96cde13ace
core/cgroup-util: simplify functions and add tests
2013-01-18 11:14:00 -05:00
Zbigniew Jędrzejewski-Szmek
3f98659cce
core/group-util: merge two functions
2013-01-18 11:14:00 -05:00
Mirco Tischler
ef1673d169
journal: log _SYSTEMD_USER_UNIT for user session units
2013-01-18 11:14:00 -05:00
Lennart Poettering
246aa6dd9d
core: add bus API and systemctl commands for altering cgroup parameters during runtime
2013-01-14 21:24:57 +01:00
Lennart Poettering
b08121d004
systemctl: don't show cgroup field for a unit if cgroup is empty
2012-12-24 00:29:39 +01:00
Lennart Poettering
b7def68494
util: rename join() to strjoin()
...
This is to match strappend() and the other string related functions.
2012-07-13 13:41:01 +02:00
Lennart Poettering
ba1261bc02
build-sys: fix built with --disable-logind
2012-05-30 22:25:01 +02:00
Kay Sievers
9eb977db5b
util: split-out path-util.[ch]
2012-05-08 02:33:10 +02:00
Lennart Poettering
37099707e2
cgroup: fix alloca() misuse in cg_shorten_controllers()
2012-05-03 23:23:38 +02:00
Kay Sievers
018ef268b1
silence a bunch of gcc warnings
2012-04-17 18:42:09 +02:00
Lennart Poettering
b59e246565
logind: remove redundant entries from logind's default controller lists too
2012-04-16 19:15:00 +02:00
Lennart Poettering
b69d29ce04
systemctl: show main and control PID explicitly in cgroup-show
...
In some cases the main/control PID of a service can be outside of the
services cgroups (for example, if logind readjusts the processes'
cgroup). In order to clarify this for the user show the main/control PID
in the cgroup tree nonetheless, but mark them specially.
2012-04-16 18:59:40 +02:00
Lennart Poettering
c3175a7f40
cgls: don't show empty cgroups by default
2012-04-16 18:59:08 +02:00
Lennart Poettering
3474ae3c7e
cgroup: if a controller is not available don't try to create cgroups in its hierarchy
2012-04-16 18:59:07 +02:00
Lennart Poettering
5430f7f2bc
relicense to LGPLv2.1 (with exceptions)
...
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
systemd.
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.
2012-04-12 00:24:39 +02:00
Kay Sievers
cc527a4734
split selinux label operations out of cgroup-util, socket-util
...
This prevents linking of selinux and libdl for another 15 binaries.
2012-04-11 12:49:00 +02:00
Kay Sievers
49e942b2bc
rename basic.la to shared.la and put selinux deps in shared-selinx.la
...
Only 34 of 74 tools need libselinux linked, and libselinux is a pain
with its unconditional library constructor.
2012-04-10 22:43:05 +02:00
Kay Sievers
77d47be64f
move cgroup-util.[ch] to shared/
2012-04-10 18:46:51 +02:00