nspawn-mount: rework get_controllers() a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 12:35:56 +0000 (13:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Nov 2017 10:54:08 +0000 (11:54 +0100)
commitd7c9693a3e792a43d27f78ec5ccf37e4738c7902
tree039371877319b6cba9eab7c963a667c54b7f5ae8
parentea9053c5f8eaae748683848ed807e7dbf30d85a7
nspawn-mount: rework get_controllers() a bit

Let's rename get_controllers() → get_process_controllers(), in order to
underline the difference to cg_kernel_controllers(). After all, one
returns the controllers available to the process, the other the
controllers enabled in the kernel at all).

Let's also update the code to use read_line() and set_put_strdup() to
shorten the code a bit, and make it more robust.
src/nspawn/nspawn-mount.c