]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemd,nspawn: use extended attributes to store metadata
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Apr 2013 00:25:01 +0000 (20:25 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Apr 2013 01:43:43 +0000 (21:43 -0400)
commita383724e4202ee9681bd31cb668c44bdbbf83638
treec770133a8de1794fd4fe6d43374e7a5770f3d378
parent9097fe299f22c46316979356d945ebb494e85814
systemd,nspawn: use extended attributes to store metadata

All attributes are stored as text, since root_directory is already
text, and it seems easier to have all of them in text format.

Attributes are written in the trusted. namespace, because the kernel
currently does not allow user. attributes on cgroups. This is a PITA,
and CAP_SYS_ADMIN is required to *read* the attributes. Alas.

A second pipe is opened for the child to signal the parent that the
cgroup hierarchy has been set up.
TODO
src/core/mount-setup.c
src/nspawn/nspawn.c