Lennart Poettering
c1b9d93572
bus: add support for serializing to gvariant
...
(deserialization is still missing, hence this is not hooked up to kdbus)
2013-12-05 02:47:36 +01:00
Kay Sievers
65dae17a2f
bus: switch to multiple KDBUS_ITEM_NAME including the flags
2013-12-05 00:22:28 +01:00
Alex Jia
a8053f197e
man.systemd-cgls: Fix an option typo
...
The option 'M' is inconsistent between help document and man page.
2013-12-04 14:55:25 -08:00
Thomas Hindoe Paaboel Andersen
a65c89bbb0
README: remove obsolete paragraph about D-Bus
2013-12-04 23:00:05 +01:00
Thomas Hindoe Paaboel Andersen
071066a5e5
systemctl: make an always true assert static
...
Silences a warning i clang
2013-12-04 22:29:58 +01:00
Thomas Hindoe Paaboel Andersen
4fd944ec82
systemctl: no need to fdopen stdout
2013-12-04 22:29:51 +01:00
Kay Sievers
f7d8595113
libsystemd-bus: catch up with latest kdbus changes
2013-12-04 19:07:10 +01:00
David Coppa
f20c84c15f
Fix typo: SetChasis -> SetChassis
2013-12-04 09:28:19 -05:00
Tom Gundersen
0a4b9a0787
TODO: add networkd entries
2013-12-04 14:15:13 +01:00
Tom Gundersen
dd3efc0993
networkd: add link-sense and simplify state-machine a bit
...
This listens to rtnetlink for changes to IFF_UP and IFF_LOWER_UP (link sense). The latter
is simply logged at the moment, but will be useful once we add dhcp support.
2013-12-04 14:15:13 +01:00
Tom Gundersen
50b3c42f97
rtnl: add link_get_flags
2013-12-04 14:15:13 +01:00
Tom Gundersen
8cec01b9e9
rtnl: add callback support
...
sd_rtnl_add_match allows you to add a callback function for when given types of
messages are received.
2013-12-04 14:15:13 +01:00
Tom Gundersen
a02113d2ea
rtnl: don't ignore broadcast messages
2013-12-04 14:15:13 +01:00
Kay Sievers
e63bb33d71
libsystemd-bus: catch up with latest kdbus list query changes
2013-12-04 11:47:22 +01:00
Thomas Hindoe Paaboel Andersen
f168c27313
trivial coding style clean ups
...
- Add space between if/for and the opening parentheses
- Place the opening brace on same line as the function (not for udev)
From the CODING_STYLE
Try to use this:
void foo() {
}
instead of this:
void foo()
{
}
2013-12-03 22:27:45 +01:00
Thomas Hindoe Paaboel Andersen
53ab52ac6d
sd-memfd: use assert_return
2013-12-03 21:58:51 +01:00
Lennart Poettering
c0a0913218
bus: fix parsing of AcquireName() response
2013-12-03 20:31:34 +01:00
Lennart Poettering
a6aa89122d
bus: don't make use of the private bus socket if kdbus is available
2013-12-03 19:55:51 +01:00
Lennart Poettering
0e7be1293f
core: use normal library call to query list of current names
2013-12-03 18:58:18 +01:00
Lennart Poettering
71f2ab468d
bus: rework sd_bus_list_names() to return two lists for acquired and activatable names
2013-12-03 18:42:51 +01:00
Lennart Poettering
0461f8cdc1
bus: internalize a lot of protocol definitions
...
We shouldn export what isn't necessary or useful to clients, so let's
add the protocol definitions we only need internally into a private
header.
2013-12-03 18:14:50 +01:00
Zbigniew Jędrzejewski-Szmek
6c045c0b4c
journal: fail silently in sd_j_sendv() if journal is unavailable
...
"syslog(3) and sd_journal_print() may largely be used interchangeably
functionality-wise" according to sd_journal_print(3). This socket
should be always available except in rare circumstatances, and we
don't random applications to fail on logging, so let's do what syslog
did. The alternative of forcing all callers to do error handling for
this rare case doesn't really have any benefits, since if they can't
log there isn't much they can do anyway.
https://bugzilla.redhat.com/show_bug.cgi?id=1023041
2013-12-03 12:11:18 -05:00
Lennart Poettering
e7176abbe8
bus: make sd_bus_request_name() and sd_bus_release_name() behave more like other calls
...
Instead of returning an enum of return codes, make them return error
codes like kdbus does internally.
Also, document this behaviour so that clients can stick to it.
(Also rework bus-control.c to always have to functions for dbus1 vs.
kernel implementation of the various calls.)
2013-12-03 18:02:46 +01:00
Lennart Poettering
059d9fbb5a
macro: better make IN_SET() macro use const arrays
2013-12-03 16:41:15 +01:00
Daniel Mack
89fbb95e03
libsystemd-bus: catch up with latest kdbus changes
2013-12-03 14:38:53 +01:00
Lennart Poettering
cde360cd5d
units: ship busname units for the bus activated services we ship
2013-12-03 04:28:02 +01:00
Zbigniew Jędrzejewski-Szmek
a6e9f2b911
catalog: rename files to specify language in the filename
2013-12-02 22:12:02 -05:00
Zbigniew Jędrzejewski-Szmek
c7332b0844
catalog: determine language from the filename
2013-12-02 22:12:02 -05:00
Zbigniew Jędrzejewski-Szmek
6a371e23ee
systemd: treat reload failure as failure
...
systemctl reload "suceeded" on stopped units, but it is documented
to fail in this case.
https://bugzilla.redhat.com/show_bug.cgi?id=1036845
2013-12-02 22:12:02 -05:00
Lennart Poettering
c71ecee578
dbus1: make gcc shut up
2013-12-03 02:08:35 +01:00
Daniel Mack
144e9e5890
libsystemd-bus: catch up with latest kdbus changes
2013-12-03 01:56:20 +01:00
Lennart Poettering
dca409bf96
units: create busnames.target for user sessions too
2013-12-03 01:44:24 +01:00
Lennart Poettering
5c817d31d9
dbus1: hook busnames.target into normal boot if kdbus is enabled
2013-12-03 01:41:02 +01:00
Lennart Poettering
4c3a127cb6
bus: skip unit file generation for systemd itself
2013-12-03 01:24:39 +01:00
Lennart Poettering
1b16c75cd2
units: install busnames.target by default
2013-12-03 01:18:26 +01:00
Lennart Poettering
674eb68520
bus: add generator that turns old dbus1 activation files into .busname + .service units
2013-12-03 01:13:48 +01:00
Lennart Poettering
e821075a23
bus: add .busname unit type to implement kdbus-style bus activation
2013-12-02 23:32:34 +01:00
Lennart Poettering
f9638db8de
bus: make sure we check for "incompatible" flags negotiated with kernel kdbus
2013-12-02 23:32:34 +01:00
Lennart Poettering
8bf9fcf488
core: extra paranoia when deserializing kdbus fd
2013-12-02 23:32:34 +01:00
Lennart Poettering
cabb780688
macro: add a macro to test whether a value is in a specified list
...
Introduce IN_SET() macro to nicely check whether a value a is one of a
few listed values.
This makes writing this:
if (a == 1 || a == 7 || a == 8 || a == 9)
nicer, by allowing this:
if (IN_SET(a, 1, 7, 8, 9))
This is particularly useful for state machine enums.
2013-12-02 23:32:34 +01:00
Thomas Hindoe Paaboel Andersen
1ae464e093
Use assert_return in more of the public API
2013-12-02 23:13:58 +01:00
Daniel Mack
c85a5a243b
libsystemd-bus: catch up with latest kdbus changes
2013-12-02 20:29:58 +01:00
Lennart Poettering
fd5b0b9141
nspawn: make sure /dev/kdbus in the container is world accessible
2013-12-02 19:59:15 +01:00
Lennart Poettering
f8a2d1c925
nspawn: make kdbus namespaces actually work
2013-12-02 18:47:39 +01:00
Lennart Poettering
95c4fe8271
busctl: add command to dump creds of a peer or pid
...
(also, rename _SD_BUS_CREDS_MAX to _SD_BUX_CRED_ALL, since "MAX" so far
was used to indicate one higher than the highest valid value, and this
is not correct here.)
2013-12-02 18:40:43 +01:00
Lukasz Skalski
a009c158b0
Display synthetic message serial number in a more readable format than (uint32_t) -1
...
Serial=4294967295 field in message dump generated by bus_message_dump()
function for synthetic messages isn't good readable.
2013-12-02 17:35:06 +01:00
Lennart Poettering
006a0b8788
bus: be nice to LLVM and don't embedd a VLA in a union
2013-12-02 17:17:29 +01:00
Lennart Poettering
6717d47350
bus: when replying to an incoming message and the vtable contains the expected return signature generate an error if the response message doesn't match it
2013-12-02 15:29:40 +01:00
Shawn Landden
99f37ad86e
service: remove unneccesary Socket.got_socket_fd
2013-12-01 19:53:55 -05:00
Marcel Holtmann
e4afbb3eac
build-sys: allow building systemctl with --disable-logind
...
When logind is disabled, do not attempt to link against the non-existing
libsystemd-login-internal.la library.
2013-12-01 12:28:32 -08:00