Lennart Poettering
74df0fca09
util: unify reading of /proc/cmdline
...
Instead of individually checking for containers in each user do this
once in a new call proc_cmdline() that read the file only if we are not
in a container.
2013-11-06 03:15:16 +01:00
Lennart Poettering
1f0cd86b3d
nspawn: explicitly terminate machines when we exit nspawn
...
https://bugs.freedesktop.org/show_bug.cgi?id=68370
https://bugzilla.redhat.com/show_bug.cgi?id=988883
2013-11-06 02:31:35 +01:00
Lennart Poettering
d3e84ddb88
machined: keep track of the initial leader PID of a machine
...
This way we can without races always determine the machine for a leader
PID. This allows machine managers to query the machine for a forked off
container/VM without a race where the child might already have died
before we could read the cgroup information from /proc/$PID/cgroup.
2013-11-06 02:31:35 +01:00
Lennart Poettering
cd6f997f71
bus: handle serialization of NULL strings
...
Instead of simply crashing be somewhat nicer and serialize a NULL string
into the empty string and generate an error on signature and object path
strings.
2013-11-06 02:31:35 +01:00
Lennart Poettering
41f85451d3
shutdown: trim the cgroup tree on loop iteration
...
This way we leave the cgroup empty before exiting in a container which
makes sure the container manager will get cgroup notification event
https://bugs.freedesktop.org/show_bug.cgi?id=68370
https://bugzilla.redhat.com/show_bug.cgi?id=988883
2013-11-06 02:31:22 +01:00
Lennart Poettering
15c60e99a9
cgroup: run PID 1 in the root cgroup
...
This way cleaning up the cgroup tree on shutdown is a lot easier since
we are in the root dir. Also PID 1 was previously artificially placed in
system.slice, even though our rule actually was not to have processes in
slices. The root slice otoh is magic anyway, so having PID 1 in there
sounds less surprising.
Of course, this means that PID is scheduled against the three top-level
slices.
2013-11-06 02:12:21 +01:00
Kay Sievers
2270309471
bus: test-bus-marshal - make dbus-1 optional
2013-11-06 02:03:05 +01:00
Thomas Hindoe Paaboel Andersen
95b015de38
hostnamed: prevent it from crashing if the chassis is unknown
...
When fallback_chassis would return null it led to a crash and an
empty result in hostnamectl. Only seen after the sd-port.
2013-11-06 00:30:29 +01:00
Thomas Hindoe Paaboel Andersen
82de16f92c
bootctl: typo fix in help message
2013-11-06 00:29:49 +01:00
Kay Sievers
d91ed6423b
build-sys: remove CFLAGS default assignment
2013-11-05 21:35:20 +01:00
Kay Sievers
97169d6cad
man: do not use <term> in <para>
...
Element term in namespace '' encountered in para, but no template matches.
2013-11-05 21:34:50 +01:00
Kay Sievers
997d4ae7f2
login: port test-inhibit to libsystemd-bus
2013-11-05 21:34:42 +01:00
Lennart Poettering
5d66866d96
bus: never report nodes as children that do not have the right prefix
2013-11-05 21:24:33 +01:00
Lennart Poettering
ce6d4630c1
update TODO
2013-11-05 20:55:14 +01:00
Lennart Poettering
927b164944
logind: add virtual object paths that always can be used to refer to the callers session, user, seat or machine object
...
This way clients can skip invoking GetSessionByPID() for their own PID
or a similar call to access these objects.
2013-11-05 20:52:39 +01:00
Lennart Poettering
d16bd05561
update TODO
2013-11-05 20:52:20 +01:00
Lennart Poettering
affff0b6f2
bus: add sd_bus_get_current() bus call to determine message that is currently being dispatched
2013-11-05 20:51:49 +01:00
Lennart Poettering
4e724d9c5a
logind: automatically determine client side PID if GetSessionByPID() is called with a PID == 0
2013-11-05 20:44:27 +01:00
Ronny Chevalier
2614202b51
man: fix typo
2013-11-05 20:00:08 +01:00
Oleksii Shevchuk
1f19a534ea
Configurable Timeouts/Restarts default values
...
https://bugs.freedesktop.org/show_bug.cgi?id=71132
Patch adds DefaultTimeoutStartSec, DefaultTimeoutStopSec, DefaultRestartSec
configuration options to manager configuration file.
2013-11-05 19:57:22 +01:00
Lennart Poettering
7b05894275
bus: add new bus API call sd_bus_message_at_end()
...
This may be used to determine whether we are at the end of a container
ot the entire message.
2013-11-05 19:36:05 +01:00
Lennart Poettering
9d6c7c821c
bus: make use of assert_return() in all API calls that don't use it yet
2013-11-05 19:14:58 +01:00
Marc-Antoine Perennou
4686d1b6ee
bus: add sd_bus_message_read_strv()
...
It will be useful to have that in the public API.
2013-11-05 18:12:18 +01:00
Djalal Harouni
b3451bed41
nspawn: log out of memory errors
2013-11-05 18:06:44 +01:00
Lennart Poettering
dd9f052591
logind: fix serialization for PrepareForSleep boolean
2013-11-05 17:59:55 +01:00
Lennart Poettering
dbfa3fbbe4
logind: fix serialization of ListInhibitors() request
2013-11-05 17:47:15 +01:00
Lennart Poettering
313333b403
bus: fix deserialization of polkit response
2013-11-05 17:45:46 +01:00
Lennart Poettering
ced4d06784
update TODO
2013-11-05 03:07:39 +01:00
Lennart Poettering
b8b7e4060f
bus: delete some now used dbus1 code
2013-11-05 03:07:39 +01:00
Lennart Poettering
275b39fe4b
bus: support entering containers without specifying the type
...
On request om Tom Gundersen...
2013-11-05 03:07:39 +01:00
Kay Sievers
9f6eb1cd58
bus: update bus_map_all_properties()
2013-11-05 02:57:49 +01:00
Lennart Poettering
9b07511d65
bus: add sd_bus_message_skip() to skip over multiple fields
2013-11-05 02:26:48 +01:00
Lennart Poettering
0dcd14b940
bus: allow that if the destination pointer in sd_bus_message_read_basic() is NULL we skip over a field
2013-11-05 02:26:48 +01:00
Tom Gundersen
b3e0131486
net-util: don't use libudev
...
Should fix linking with old toolchain.
2013-11-05 01:39:46 +01:00
Lennart Poettering
3a9f7a30ce
logind: expose linger state on User object
2013-11-05 01:27:27 +01:00
Lennart Poettering
b8358bce14
logind: fix serialization of ListSeats() bus call
2013-11-05 01:20:52 +01:00
Lennart Poettering
cc37738108
logind: port logind to libsystemd-bus
2013-11-05 01:13:05 +01:00
Lennart Poettering
6d1bd3b2bb
localed: mark bus properties as change emitting
...
Otherwise sd_bus_emit_properties_changed() will refuse sending out
change signals
2013-11-05 01:13:05 +01:00
Lennart Poettering
fe5af61253
user-sessions: modernizations
2013-11-05 01:13:05 +01:00
Lennart Poettering
a658cafa98
machined: simplifications
2013-11-05 01:13:05 +01:00
Lennart Poettering
6ee69bab11
event: add some well-defined priority values of event sources
2013-11-05 01:13:05 +01:00
Lennart Poettering
e650403069
bus: make it easy to serialize C99 bools and uids/gids/pids via vtable properties
2013-11-05 01:13:05 +01:00
Lennart Poettering
c13c7de3bf
bus: support implicit serialization of strv string arrays within vtables
2013-11-05 01:13:05 +01:00
Lennart Poettering
c9b6cb28c3
bus: dbus-daemons' access messages are a bit too verbose
2013-11-05 01:13:05 +01:00
Lennart Poettering
90e071d1d5
update TODO
2013-11-05 01:13:05 +01:00
Tom Gundersen
03d7e632c0
rtnl: add support for routes
2013-11-04 23:00:48 +01:00
Tom Gundersen
be32eb9b7f
net-config: start split out matching and parsing logic
...
Move this to src/share/net-util.c, so it can be used elsewhere.
2013-11-04 23:00:12 +01:00
Thomas Hindoe Paaboel Andersen
fc7689bc9c
hostnamectl: H requires an argument, P is no longer used
2013-11-04 17:32:50 +01:00
Kay Sievers
5c11fbe3a7
udev: udevd - rules can be NULL when reloading
2013-11-04 15:54:33 +01:00
Martin Pitt
b151ca9933
udev-builtin-keyboard: Fix large scan codes on 32 bit architectures
...
Use strtoul(), as scan codes are always positive. On 32 bit architectures
strtol gives wrong results:
strtol("fffffff0", &endptr, 16)
returns 2147483647 instead of 4294967280.
https://launchpad.net/bugs/1247676
2013-11-04 07:25:45 +01:00