chiark / gitweb /
elogind.git
5 years agotest: wrap $LOOPDEV in quotes
Zbigniew Jędrzejewski-Szmek [Tue, 10 Dec 2013 12:39:42 +0000 (07:39 -0500)]
test: wrap $LOOPDEV in quotes

Otherwise things go awry if it is not set ('[ -b ]' is not the same as '[ -b "" ]'!).

5 years agotest: rework run_qemu
Ronny Chevalier [Sat, 7 Dec 2013 23:01:53 +0000 (00:01 +0100)]
test: rework run_qemu

It tries to find a suitable QEMU binary and will use KVM if present.
We can now configure QEMU from outside with 4 variables :
  - $QEMU_BIN : path to QEMU's binary
  - $KERNEL_APPEND : arguments appended to kernel cmdline
  - $KERNEL_BIN : path to a kernel
    Default /boot/vmlinuz-$KERNEL_VER
  - $INITRD : path to an initramfs
    Default /boot/initramfs-${KERNEL_VER}.img
  - $QEMU_SMP : number of CPU simulated by QEMU.
    Default 1

(from Alexander Graf's script: http://www.spinics.net/lists/kvm/msg72389.html)

5 years agotest: fix TEST-02-CRYPTSETUP
Ronny Chevalier [Sat, 7 Dec 2013 23:30:16 +0000 (00:30 +0100)]
test: fix TEST-02-CRYPTSETUP

missing generate_module_dependencies call which prevents dm_mod and
dm_crypt modules to be loaded

5 years agoBring bootchart code in line with CODING_STYLE
Dan McGee [Sun, 8 Dec 2013 17:27:06 +0000 (11:27 -0600)]
Bring bootchart code in line with CODING_STYLE

Use double and not float, as there is little to no benefit.

5 years agoEnsure unit is journaled for short-lived or oneshot processes
Dan McGee [Sun, 8 Dec 2013 19:27:05 +0000 (13:27 -0600)]
Ensure unit is journaled for short-lived or oneshot processes

In the time it takes to process incoming log messages, the process we
are logging details for may exit. This means the cgroup data is no
longer available from '/proc'. Unfortunately, the way the code was
structured before, we never log _SYSTEMD_UNIT if we don't have this
cgroup information.

Add an else if case that allows the passed in unit_id to be logged even
if we couldn't capture cgroup information. This ensures a command like
`journalctl -u run-XXX` will return all log messages from a oneshot
process.

5 years agoupdate README to not suggest that systemd works without procfs
Shawn Landden [Mon, 9 Dec 2013 15:04:06 +0000 (07:04 -0800)]
update README to not suggest that systemd works without procfs

5 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Tue, 10 Dec 2013 11:17:39 +0000 (03:17 -0800)]
hwdb: Update database of Bluetooth company identifiers

5 years agocorrect name of Tajik kbd layout in kbd-model-map
Adam Williamson [Tue, 10 Dec 2013 06:02:25 +0000 (22:02 -0800)]
correct name of Tajik kbd layout in kbd-model-map

5 years agodrop several entries from kbd-model-map whose kbd layouts do not exist
Adam Williamson [Tue, 10 Dec 2013 05:58:34 +0000 (21:58 -0800)]
drop several entries from kbd-model-map whose kbd layouts do not exist

kbd-model-map was generated from system-config-keyboard's keyboard_models.py.
Several of the kbd layouts referred in that file do not exist and, so far as I
can tell, never did. I believe these entries existed simply to provide the xkb
configuration information for those layouts, and there never were matching kbd
entries; the kbd names were entirely notional, to satisfy the need for some
entry or other in that field.

For systemd, the only function of kbd-model-map is to 'match' kbd and xkb
configurations, so it does not make any sense to maintain entries for cases
where only one or the other exists in this context.

5 years agoman: improve wording and comma usage in systemd.journal-fields(7)
Jason St. John [Tue, 10 Dec 2013 05:10:03 +0000 (00:10 -0500)]
man: improve wording and comma usage in systemd.journal-fields(7)

Improve wording under "Description" and "_KERNEL_DEVICE="

5 years agolibsystemd-bus: use assert_return
Lukasz Skalski [Mon, 9 Dec 2013 13:09:25 +0000 (14:09 +0100)]
libsystemd-bus: use assert_return

5 years agokernel-install: fix help output
Sébastien Luttringer [Thu, 5 Dec 2013 01:55:05 +0000 (02:55 +0100)]
kernel-install: fix help output

Kernel install doesn't need the second argument on his command line when
removing.
This is correctly documented in the man page.

5 years agotest: add gvariant test for empty messages
Lennart Poettering [Tue, 10 Dec 2013 02:31:52 +0000 (03:31 +0100)]
test: add gvariant test for empty messages

5 years agobus: properly handle empty messages
Lennart Poettering [Tue, 10 Dec 2013 02:30:51 +0000 (03:30 +0100)]
bus: properly handle empty messages

5 years agobus: empty gvariant arrays should at least get size 1
Lennart Poettering [Tue, 10 Dec 2013 02:04:16 +0000 (03:04 +0100)]
bus: empty gvariant arrays should at least get size 1

5 years agobus: it's OK to send messages with an empty payload but non-empty signature
Lennart Poettering [Tue, 10 Dec 2013 01:57:46 +0000 (02:57 +0100)]
bus: it's OK to send messages with an empty payload but non-empty signature

THis might happen when sending arrays with 0 enttries, hence this is not
an indication for a problem.

5 years agobus: update kdbus.h
Lennart Poettering [Tue, 10 Dec 2013 01:33:33 +0000 (02:33 +0100)]
bus: update kdbus.h

5 years agobus: make gcc shut up
Lennart Poettering [Tue, 10 Dec 2013 01:33:13 +0000 (02:33 +0100)]
bus: make gcc shut up

5 years agoupdate TODO
Lennart Poettering [Tue, 10 Dec 2013 00:11:43 +0000 (01:11 +0100)]
update TODO

5 years agobus: beef up zero copy test case
Lennart Poettering [Tue, 10 Dec 2013 00:07:32 +0000 (01:07 +0100)]
bus: beef up zero copy test case

5 years agobus: only accept gvariant native endian messages via kdbus
Lennart Poettering [Tue, 10 Dec 2013 00:07:09 +0000 (01:07 +0100)]
bus: only accept gvariant native endian messages via kdbus

5 years agobus: fix rewinding in gvariant messages
Lennart Poettering [Tue, 10 Dec 2013 00:06:52 +0000 (01:06 +0100)]
bus: fix rewinding in gvariant messages

5 years agobus: fix signature handling when exiting container
Lennart Poettering [Tue, 10 Dec 2013 00:06:29 +0000 (01:06 +0100)]
bus: fix signature handling when exiting container

5 years agobus: properly deserialize gvariant fixed size arrays
Lennart Poettering [Tue, 10 Dec 2013 00:05:23 +0000 (01:05 +0100)]
bus: properly deserialize gvariant fixed size arrays

5 years agobus: handler empty messages correctly when using gvariant marshalling
Lennart Poettering [Tue, 10 Dec 2013 00:04:36 +0000 (01:04 +0100)]
bus: handler empty messages correctly when using gvariant marshalling

5 years agobus: suppress creating empty parts in messages
Lennart Poettering [Tue, 10 Dec 2013 00:03:41 +0000 (01:03 +0100)]
bus: suppress creating empty parts in messages

5 years agobus: rely on explicit eof check instead of checking when mapping payload
Lennart Poettering [Mon, 9 Dec 2013 22:24:17 +0000 (23:24 +0100)]
bus: rely on explicit eof check instead of checking when mapping payload

This allows us to drop quite a bit of code.

5 years agobus: rearrange bus-message.c function order to keep read and write calls together
Lennart Poettering [Mon, 9 Dec 2013 22:16:14 +0000 (23:16 +0100)]
bus: rearrange bus-message.c function order to keep read and write calls together

5 years agobus: demarshal gvariant
Lennart Poettering [Mon, 9 Dec 2013 22:03:21 +0000 (23:03 +0100)]
bus: demarshal gvariant

5 years agoextend CODING_STYLE document a bit
Lennart Poettering [Mon, 9 Dec 2013 21:51:35 +0000 (22:51 +0100)]
extend CODING_STYLE document a bit

5 years agoman: document 'is-enabled' output
Zbigniew Jędrzejewski-Szmek [Sun, 8 Dec 2013 23:56:16 +0000 (18:56 -0500)]
man: document 'is-enabled' output

https://bugzilla.redhat.com/show_bug.cgi?id=953077

5 years agosystemctl: fix 'is-enabled'
Zbigniew Jędrzejewski-Szmek [Sun, 8 Dec 2013 22:51:25 +0000 (17:51 -0500)]
systemctl: fix 'is-enabled'

5 years agosystemctl: simplify argument parsing
Zbigniew Jędrzejewski-Szmek [Sun, 8 Dec 2013 22:50:25 +0000 (17:50 -0500)]
systemctl: simplify argument parsing

5 years agoHelp output spring cleaning
Zbigniew Jędrzejewski-Szmek [Sun, 8 Dec 2013 13:16:59 +0000 (08:16 -0500)]
Help output spring cleaning

Use [brackets] only for optional elements.
Use <optional> in XML sources.

5 years agokernel-install: add -h/--help
Zbigniew Jędrzejewski-Szmek [Sun, 8 Dec 2013 12:46:46 +0000 (07:46 -0500)]
kernel-install: add -h/--help

5 years agoTrim TODO
Zbigniew Jędrzejewski-Szmek [Sun, 8 Dec 2013 11:46:07 +0000 (06:46 -0500)]
Trim TODO

5 years agobootchart: remove dead assignment
Thomas Hindoe Paaboel Andersen [Sun, 8 Dec 2013 21:28:37 +0000 (22:28 +0100)]
bootchart: remove dead assignment

5 years agoFix memory leak in stdout journal streams
Dan McGee [Sun, 8 Dec 2013 20:33:45 +0000 (14:33 -0600)]
Fix memory leak in stdout journal streams

Just as 'identifier' is strdup-ed and freed, we need to do the same for
unit_id.

5 years agotest: cgroup-util - do not fail if cpu controller is not available
Kay Sievers [Sun, 8 Dec 2013 05:36:39 +0000 (06:36 +0100)]
test: cgroup-util - do not fail if cpu controller is not available

5 years agosystemctl: fix and refactor wait_for_jobs
Thomas Hindoe Paaboel Andersen [Sat, 7 Dec 2013 20:53:37 +0000 (21:53 +0100)]
systemctl: fix and refactor wait_for_jobs

wait_for_jobs was ignoring the errors from the jobs stored in r.
It would only ever return whether the call to sd_bus_remove_filter
went ok. This patch changes it to return the first job related error
encountered. If a job related error is found, then the result of the
call to sd_bus_remove_filter is ignored.

wait_for_jobs was a bit hard to read so I split it up to avoid
the goto and deep nesting.

5 years agosystemctl: allow globbing in list-<whatever> commands
Zbigniew Jędrzejewski-Szmek [Sat, 7 Dec 2013 02:29:55 +0000 (21:29 -0500)]
systemctl: allow globbing in list-<whatever> commands

It is nicer to say 'systemctl list-units ssh\*' then to use grep,
because colouring is preserved and it is easier to match just against
the unit name.

5 years agoGet rid of our reimplementation of basename
Zbigniew Jędrzejewski-Szmek [Sat, 7 Dec 2013 02:29:55 +0000 (21:29 -0500)]
Get rid of our reimplementation of basename

The only problem is that libgen.h #defines basename to point to it's
own broken implementation instead of the GNU one. This can be fixed
by #undefining basename.

5 years agosystemctl: check the value from start_unit_one
Thomas Hindoe Paaboel Andersen [Fri, 6 Dec 2013 18:48:08 +0000 (19:48 +0100)]
systemctl: check the value from start_unit_one

introduced in f459b6025f9368116d8c410376546c157314c205

5 years agobus: catch up with latest kdbus changes
Kay Sievers [Fri, 6 Dec 2013 20:11:37 +0000 (21:11 +0100)]
bus: catch up with latest kdbus changes

5 years agobus: catch up with latest kdbus changes
Kay Sievers [Fri, 6 Dec 2013 19:19:20 +0000 (20:19 +0100)]
bus: catch up with latest kdbus changes

5 years agorfkill: Avoid error when state restore is disabled
Bastien Nocera [Fri, 6 Dec 2013 14:51:02 +0000 (15:51 +0100)]
rfkill: Avoid error when state restore is disabled

When the state restore is disabled, we would print:
"Unknown verb: load" instead of simply skipping loading the
state.

5 years agobus: catch up with latest kdbus changes
Kay Sievers [Fri, 6 Dec 2013 13:31:43 +0000 (14:31 +0100)]
bus: catch up with latest kdbus changes

5 years agobusctl: remove ','; it's all one string
Kay Sievers [Fri, 6 Dec 2013 12:56:23 +0000 (13:56 +0100)]
busctl: remove ','; it's all one string

5 years agonspawn: fix buggy mount_binds, now works for bind-mounted files
Shawn Landden [Thu, 5 Dec 2013 14:20:08 +0000 (06:20 -0800)]
nspawn: fix buggy mount_binds, now works for bind-mounted files

5 years agoutil: fix misuse of memcmp
Yuxuan Shui [Thu, 5 Dec 2013 14:30:04 +0000 (22:30 +0800)]
util: fix misuse of memcmp

5 years agoshell-completion: busctl
Zbigniew Jędrzejewski-Szmek [Fri, 6 Dec 2013 02:33:08 +0000 (21:33 -0500)]
shell-completion: busctl

5 years agobus: update kdbus.h
Kay Sievers [Fri, 6 Dec 2013 00:30:59 +0000 (01:30 +0100)]
bus: update kdbus.h

5 years agosystemd: add a start job for all units in SYSTEMD_[USER_]WANTS=
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2013 05:41:12 +0000 (00:41 -0500)]
systemd: add a start job for all units in SYSTEMD_[USER_]WANTS=

5 years agoexecute.h: remove redefinition of Unit
Thomas Hindoe Paaboel Andersen [Thu, 5 Dec 2013 21:34:01 +0000 (22:34 +0100)]
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
c17ec25e4d9bd6c8e8617416f813e25b2ebbafc5

It is no longer needed so let's just keep the one in unit.h to
avoid redefining it.

5 years agotest-bus-gvariant: remove unused variable
Thomas Hindoe Paaboel Andersen [Thu, 5 Dec 2013 21:33:22 +0000 (22:33 +0100)]
test-bus-gvariant: remove unused variable

5 years agobus: start maintaining a list of difference between kdbus/dbus1
Lennart Poettering [Thu, 5 Dec 2013 02:16:15 +0000 (03:16 +0100)]
bus: start maintaining a list of difference between kdbus/dbus1

5 years agobus: add missing LE meta data enforcement for gvariant serializer
Lennart Poettering [Thu, 5 Dec 2013 02:09:09 +0000 (03:09 +0100)]
bus: add missing LE meta data enforcement for gvariant serializer

5 years agobusname: improve condition check
Lennart Poettering [Thu, 5 Dec 2013 01:48:17 +0000 (02:48 +0100)]
busname: improve condition check

5 years agobus: add support for serializing to gvariant
Lennart Poettering [Thu, 5 Dec 2013 01:46:54 +0000 (02:46 +0100)]
bus: add support for serializing to gvariant

(deserialization is still missing, hence this is not hooked up to kdbus)

5 years agobus: switch to multiple KDBUS_ITEM_NAME including the flags
Kay Sievers [Wed, 4 Dec 2013 22:36:02 +0000 (23:36 +0100)]
bus: switch to multiple KDBUS_ITEM_NAME including the flags

5 years agoman.systemd-cgls: Fix an option typo
Alex Jia [Wed, 4 Dec 2013 07:57:50 +0000 (15:57 +0800)]
man.systemd-cgls: Fix an option typo

The option 'M' is inconsistent between help document and man page.

5 years agoREADME: remove obsolete paragraph about D-Bus
Thomas Hindoe Paaboel Andersen [Wed, 4 Dec 2013 22:00:05 +0000 (23:00 +0100)]
README: remove obsolete paragraph about D-Bus

5 years agosystemctl: make an always true assert static
Thomas Hindoe Paaboel Andersen [Wed, 4 Dec 2013 19:51:03 +0000 (20:51 +0100)]
systemctl: make an always true assert static

Silences a warning i clang

5 years agosystemctl: no need to fdopen stdout
Thomas Hindoe Paaboel Andersen [Wed, 4 Dec 2013 19:01:07 +0000 (20:01 +0100)]
systemctl: no need to fdopen stdout

5 years agolibsystemd-bus: catch up with latest kdbus changes
Kay Sievers [Wed, 4 Dec 2013 18:06:52 +0000 (19:06 +0100)]
libsystemd-bus: catch up with latest kdbus changes

5 years agoFix typo: SetChasis -> SetChassis
David Coppa [Wed, 4 Dec 2013 11:59:40 +0000 (12:59 +0100)]
Fix typo: SetChasis -> SetChassis

5 years agoTODO: add networkd entries
Tom Gundersen [Wed, 4 Dec 2013 12:14:23 +0000 (13:14 +0100)]
TODO: add networkd entries

5 years agonetworkd: add link-sense and simplify state-machine a bit
Tom Gundersen [Tue, 3 Dec 2013 17:48:20 +0000 (18:48 +0100)]
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.

5 years agortnl: add link_get_flags
Tom Gundersen [Tue, 3 Dec 2013 23:34:58 +0000 (00:34 +0100)]
rtnl: add link_get_flags

5 years agortnl: add callback support
Tom Gundersen [Sat, 30 Nov 2013 00:24:29 +0000 (01:24 +0100)]
rtnl: add callback support

sd_rtnl_add_match allows you to add a callback function for when given types of
messages are received.

5 years agortnl: don't ignore broadcast messages
Tom Gundersen [Tue, 3 Dec 2013 22:55:45 +0000 (23:55 +0100)]
rtnl: don't ignore broadcast messages

5 years agolibsystemd-bus: catch up with latest kdbus list query changes
Kay Sievers [Wed, 4 Dec 2013 10:47:22 +0000 (11:47 +0100)]
libsystemd-bus: catch up with latest kdbus list query changes

5 years agotrivial coding style clean ups
Thomas Hindoe Paaboel Andersen [Tue, 3 Dec 2013 21:27:45 +0000 (22:27 +0100)]
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()
    {
    }

5 years agosd-memfd: use assert_return
Thomas Hindoe Paaboel Andersen [Tue, 3 Dec 2013 20:58:51 +0000 (21:58 +0100)]
sd-memfd: use assert_return

5 years agobus: fix parsing of AcquireName() response
Lennart Poettering [Tue, 3 Dec 2013 19:31:34 +0000 (20:31 +0100)]
bus: fix parsing of AcquireName() response

5 years agobus: don't make use of the private bus socket if kdbus is available
Lennart Poettering [Tue, 3 Dec 2013 18:55:51 +0000 (19:55 +0100)]
bus: don't make use of the private bus socket if kdbus is available

5 years agocore: use normal library call to query list of current names
Lennart Poettering [Tue, 3 Dec 2013 17:58:18 +0000 (18:58 +0100)]
core: use normal library call to query list of current names

5 years agobus: rework sd_bus_list_names() to return two lists for acquired and activatable...
Lennart Poettering [Tue, 3 Dec 2013 17:42:51 +0000 (18:42 +0100)]
bus: rework sd_bus_list_names() to return two lists for acquired and activatable names

5 years agobus: internalize a lot of protocol definitions
Lennart Poettering [Tue, 3 Dec 2013 17:13:48 +0000 (18:13 +0100)]
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.

5 years agojournal: fail silently in sd_j_sendv() if journal is unavailable
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2013 13:07:32 +0000 (08:07 -0500)]
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

5 years agobus: make sd_bus_request_name() and sd_bus_release_name() behave more like other...
Lennart Poettering [Tue, 3 Dec 2013 17:01:26 +0000 (18:01 +0100)]
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.)

5 years agomacro: better make IN_SET() macro use const arrays
Lennart Poettering [Tue, 3 Dec 2013 15:41:06 +0000 (16:41 +0100)]
macro: better make IN_SET() macro use const arrays

5 years agolibsystemd-bus: catch up with latest kdbus changes
Daniel Mack [Tue, 3 Dec 2013 13:38:53 +0000 (14:38 +0100)]
libsystemd-bus: catch up with latest kdbus changes

5 years agounits: ship busname units for the bus activated services we ship
Lennart Poettering [Tue, 3 Dec 2013 03:27:03 +0000 (04:27 +0100)]
units: ship busname units for the bus activated services we ship

5 years agocatalog: rename files to specify language in the filename
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2013 01:29:10 +0000 (20:29 -0500)]
catalog: rename files to specify language in the filename

5 years agocatalog: determine language from the filename
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2013 02:35:31 +0000 (21:35 -0500)]
catalog: determine language from the filename

5 years agosystemd: treat reload failure as failure
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2013 02:52:51 +0000 (21:52 -0500)]
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

5 years agodbus1: make gcc shut up
Lennart Poettering [Tue, 3 Dec 2013 01:07:24 +0000 (02:07 +0100)]
dbus1: make gcc shut up

5 years agolibsystemd-bus: catch up with latest kdbus changes
Daniel Mack [Tue, 3 Dec 2013 00:56:13 +0000 (01:56 +0100)]
libsystemd-bus: catch up with latest kdbus changes

5 years agounits: create busnames.target for user sessions too
Lennart Poettering [Tue, 3 Dec 2013 00:44:24 +0000 (01:44 +0100)]
units: create busnames.target for user sessions too

5 years agodbus1: hook busnames.target into normal boot if kdbus is enabled
Lennart Poettering [Tue, 3 Dec 2013 00:41:02 +0000 (01:41 +0100)]
dbus1: hook busnames.target into normal boot if kdbus is enabled

5 years agobus: skip unit file generation for systemd itself
Lennart Poettering [Tue, 3 Dec 2013 00:24:39 +0000 (01:24 +0100)]
bus: skip unit file generation for systemd itself

5 years agounits: install busnames.target by default
Lennart Poettering [Tue, 3 Dec 2013 00:18:26 +0000 (01:18 +0100)]
units: install busnames.target by default

5 years agobus: add generator that turns old dbus1 activation files into .busname + .service...
Lennart Poettering [Tue, 3 Dec 2013 00:13:03 +0000 (01:13 +0100)]
bus: add generator that turns old dbus1 activation files into .busname + .service units

5 years agobus: add .busname unit type to implement kdbus-style bus activation
Lennart Poettering [Mon, 2 Dec 2013 22:30:19 +0000 (23:30 +0100)]
bus: add .busname unit type to implement kdbus-style bus activation

5 years agobus: make sure we check for "incompatible" flags negotiated with kernel kdbus
Lennart Poettering [Mon, 2 Dec 2013 22:31:41 +0000 (23:31 +0100)]
bus: make sure we check for "incompatible" flags negotiated with kernel kdbus

5 years agocore: extra paranoia when deserializing kdbus fd
Lennart Poettering [Mon, 2 Dec 2013 22:10:28 +0000 (23:10 +0100)]
core: extra paranoia when deserializing kdbus fd

5 years agomacro: add a macro to test whether a value is in a specified list
Lennart Poettering [Mon, 2 Dec 2013 22:08:25 +0000 (23:08 +0100)]
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.

5 years agoUse assert_return in more of the public API
Thomas Hindoe Paaboel Andersen [Mon, 2 Dec 2013 21:42:01 +0000 (22:42 +0100)]
Use assert_return in more of the public API

5 years agolibsystemd-bus: catch up with latest kdbus changes
Daniel Mack [Mon, 2 Dec 2013 19:29:58 +0000 (20:29 +0100)]
libsystemd-bus: catch up with latest kdbus changes