1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-15 07:24:00 +03:00
Commit Graph

12659 Commits

Author SHA1 Message Date
Lennart Poettering
8bdbb8d9cb machinectl: we need glibc's socket.h, not our own 2013-11-07 00:53:19 +01:00
Lennart Poettering
d1529c9ea0 pam: externally our booleans are ints, not unsigneds 2013-11-07 00:20:11 +01:00
Lennart Poettering
30374ebe5e activate: port to use new getpeername_pretty()/getsockname_pretty() calls 2013-11-07 00:13:58 +01:00
Lennart Poettering
4d49b48c60 socket: rework things to have only one sockaddr formatter 2013-11-07 00:13:58 +01:00
Lennart Poettering
b7484e2a58 event: make sure we keep a reference to all events we dispatch while we do so. 2013-11-07 00:13:58 +01:00
Lennart Poettering
5b84559a76 activate: fix uninitialized memory 2013-11-07 00:13:58 +01:00
Kay Sievers
5a0d49a47c pam_systemd: pass 'unsigned' instead of 'bool' to sd_bus_message_read() 2013-11-07 00:05:03 +01:00
Kay Sievers
fdd6816f7d build-sys: add sd-event to socket-proxyd 2013-11-06 23:28:07 +01:00
Lennart Poettering
f4ef809c7e mkdir: modernize header ifdefs 2013-11-06 23:03:12 +01:00
Lennart Poettering
8569a77629 socket-proxyd: rework to support multiple sockets and splice()-based zero-copy network IO
This also drops --ignore-env, which can't really work anymore if we
allow multiple fds. Also adds support for pretty printing of peer
identities for debug purposes, and abstract namespace UNIX sockets. Also
ensures that we never take more connections than a certain limit.
2013-11-06 23:03:12 +01:00
Lennart Poettering
175a3d25d0 active: rework make_socket_fd() to be based on socket_address_listen()
Among other things this makes sure we set SO_REUSEADDR which is
immensely useful.
2013-11-06 23:03:12 +01:00
Lennart Poettering
eceb8483e5 activate: reduce log settings to normal 2013-11-06 23:03:12 +01:00
Lennart Poettering
29a5ca9baa activate: get rid of redundant definiton of fd_cloexec() 2013-11-06 23:03:12 +01:00
Zbigniew Jędrzejewski-Szmek
ffcfcb6b2c pam_systemd: port to libsystemd-bus 2013-11-06 14:56:47 -05:00
Zbigniew Jędrzejewski-Szmek
05a049cc44 systemd_pam: treat debug as debug=1 and parse all params
systemd_pam would ignore all params after the first invalid one.
Instead ignore just this one, and parse the rest. There's just
one now, but as a matter of principle ;)

Also, allow debug as an alias for debug=1, and don't treat
invalid debug= options as fatal.
2013-11-06 14:56:47 -05:00
Zbigniew Jędrzejewski-Szmek
f7262a9f28 bus: add public libsystemd-event 2013-11-06 14:56:47 -05:00
Zbigniew Jędrzejewski-Szmek
d9f644e2cd bus: export libsystemd-bus as a public library
Old static libsystemd-bus.la becomes libsystemd-bus-internal.la.
memfd functions are also exported in the same library.

(Best viewed with --color-words -U0).
2013-11-06 14:56:47 -05:00
Zbigniew Jędrzejewski-Szmek
34a6778fb9 machinectl: use initialization instead of zeroing 2013-11-06 14:56:47 -05:00
Zbigniew Jędrzejewski-Szmek
97123e532d efi-boot-generator: simplify 2013-11-06 14:56:47 -05:00
Lennart Poettering
5f7e83e8ad socket-proxy: clean-up indenting 2013-11-06 18:29:24 +01:00
Lennart Poettering
eb9da376d7 clients: unify how we invoke getopt_long()
Among other things this makes sure we always expose a --version command
and show it in the help texts.
2013-11-06 18:28:39 +01:00
Lennart Poettering
4087cb9e8f path-util: paths_check_timestamp() opimizations 2013-11-06 17:34:54 +01:00
Lennart Poettering
45a7c6b5d3 inhibit: don't return error code on --help 2013-11-06 17:33:44 +01:00
Lennart Poettering
d75edbd619 busctl: port over to use bus_open_transport() 2013-11-06 17:33:24 +01:00
Lennart Poettering
84f6181c2a clients: various simplifications 2013-11-06 17:32:51 +01:00
Lennart Poettering
66b1e74605 run: support --system to match other commands, even if redundant 2013-11-06 17:31:20 +01:00
Lennart Poettering
3cd26e7cb2 analyze: port over to use bus_open_transport() 2013-11-06 17:30:39 +01:00
Lennart Poettering
d3eba116d1 analyze: simplify things 2013-11-06 16:38:53 +01:00
Lennart Poettering
07d0eaa017 analyze: fix indentation 2013-11-06 16:38:53 +01:00
Kay Sievers
6c8ea34fd9 Revert "hostnamed: prevent it from crashing if the chassis is unknown"
This reverts commit 95b015de38.

"bus: handle serialization of NULL strings" (cd6f997f71)
should fix this issue.
2013-11-06 13:38:28 +01:00
David Strauss
f366954523 Comment spelling fixes. 2013-11-06 20:03:18 +10:00
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