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

13144 Commits

Author SHA1 Message Date
Kay Sievers
ff6c70f18b bus: update kdbus.h 2013-12-06 01:30:59 +01:00
Zbigniew Jędrzejewski-Szmek
e775289d56 systemd: add a start job for all units in SYSTEMD_[USER_]WANTS= 2013-12-05 17:25:08 -05:00
Thomas Hindoe Paaboel Andersen
a809021a9c execute.h: remove redefinition of Unit
Unit is typedef'ed in both unit.h and execute.h. The typedef
existed first in unit.h and was later added to execute.h in
c17ec25e4d

It is no longer needed so let's just keep the one in unit.h to
avoid redefining it.
2013-12-05 22:35:11 +01:00
Thomas Hindoe Paaboel Andersen
8edb59a98b test-bus-gvariant: remove unused variable 2013-12-05 22:33:22 +01:00
Lennart Poettering
bc25a2fb66 bus: start maintaining a list of difference between kdbus/dbus1 2013-12-05 03:19:18 +01:00
Lennart Poettering
ea6ad56836 bus: add missing LE meta data enforcement for gvariant serializer 2013-12-05 03:09:09 +01:00
Lennart Poettering
2f671520eb busname: improve condition check 2013-12-05 02:48:17 +01:00
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