b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f |
|
10-Feb-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: remove Emacs lines from all files
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file. |
066ab03acc48f49a671f147ae1754caa12980886 |
|
18-Jan-2016 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
bus-kernel: reword assignment of dst_id in bus_message_setup_kmsg
Setting of dst_id was based on interplay of two booleans,
making the logic hard to follow (for humans and compilers alike).
gcc was confused and emmitted a warning about an uninitialized
variable. Rework the code to make it obvious that dst_id is
set properly. |
d054f0a4d451120c26494263fc4dc175bfd405b1 |
|
12-Jan-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: use xsprintf() where applicable
Also add a coccinelle receipt to help with such transitions. |
4afd3348c7506dd1d36305b7bcb9feb8952b9d6b |
|
27-Nov-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy
GLIB has recently started to officially support the gcc cleanup
attribute in its public API, hence let's do the same for our APIs.
With this patch we'll define an xyz_unrefp() call for each public
xyz_unref() call, to make it easy to use inside a
__attribute__((cleanup())) expression. Then, all code is ported over to
make use of this.
The new calls are also documented in the man pages, with examples how to
use them (well, I only added docs where the _unref() call itself already
had docs, and the examples, only cover sd_bus_unrefp() and
sd_event_unrefp()).
This also renames sd_lldp_free() to sd_lldp_unref(), since that's how we
tend to call our destructors these days.
Note that this defines no public macro that wraps gcc's attribute and
makes it easier to use. While I think it's our duty in the library to
make our stuff easy to use, I figure it's not our duty to make gcc's own
features easy to use on its own. Most likely, client code which wants to
make use of this should define its own:
#define _cleanup_(function) __attribute__((cleanup(function)))
Or similar, to make the gcc feature easier to use.
Making this logic public has the benefit that we can remove three header
files whose only purpose was to define these functions internally.
See #2008. |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
ee104e11e303499a637c5cd8157bd12ad5cc116d |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
user-util: move UID/GID related macros from macro.h to user-util.h |
430f0182b72373145c839dbfe99d2382855cb8f8 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
src/basic: rename audit.[ch] → audit-util.[ch] and capability.[ch] → capability-util.[ch]
The files are named too generically, so that they might conflict with
the upstream project headers. Hence, let's add a "-util" suffix, to
clarify that this are just our utility headers and not any official
upstream headers. |
6bedfcbb2970e06a4d3280c8fb62083d252ede73 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] |
3ffd4af22052963e7a29431721ee204e634bea75 |
|
25-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out fd-related operations into fd-util.[ch]
There are more than enough to deserve their own .c file, hence move them
over. |
07630cea1f3a845c09309f197ac7c4f11edd3b62 |
|
24-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split our string related calls from util.[ch] into its own file string-util.[ch]
There are more than enough calls doing string manipulations to deserve
its own files, hence do something about it.
This patch also sorts the #include blocks of all files that needed to be
updated, according to the sorting suggestions from CODING_STYLE. Since
pretty much every file needs our string manipulation functions this
effectively means that most files have sorted #include blocks now.
Also touches a few unrelated include files. |
50e0d56cf37d8ca5b9162ab83906920392998623 |
|
17-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: fix error handling of pthread API calls
pthread APIs (unlike the rest of libc) return their errors as positive
error codes directly from the functions, rather than using errno. Let's
make sure we always handle things that way. |
057171efc103ac76c60a2a0d277d8bbf25415c21 |
|
27-Aug-2015 |
David Herrmann <dh.herrmann@gmail.com> |
Revert "sd-bus: do not connect to dbus-1 socket when kdbus is available"
This reverts commit d4d00020d6ad855d65d31020fefa5003e1bb477f. The idea of
the commit is broken and needs to be reworked. We really cannot reduce
the bus-addresses to a single address. We always will have systemd with
native clients and legacy clients at the same time, so we also need both
addresses at the same time. |
19bee5c3674cda184443509b49b9415f599349ab |
|
27-Aug-2015 |
David Herrmann <dh.herrmann@gmail.com> |
sd-bus: rename bloom-tag to arg0-has
We use dashes in our bloom-tags. Make sure the newly introduced arg0has
tag uses the same style.
Note that the external dbus-tags don't use dashes, though. They are
defined in the spec and we need to keep compatibility there. |
eccd47c5beb72211ce33c9a33a1bb36366d43e22 |
|
25-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: introduce new match type "arg0has=" for matching arrays of strings
Previously, sd-bus inofficially already supported bus matches that
tested a string against an array of strings ("as"). This was done via an
enhanced way to interpret "arg0=" matches. This is problematic however,
since clients have no way to determine if their respective
implementation understood strv matches or not, thus allowing invalid
matches to be installed without a way to detect that.
This patch changes the logic to only allow such matches with a new
"arg0has=" syntax. This has the benefit that non-conforming
implementations will return a parse error and a client application may
thus efficiently detect support for the match type.
Matches of this type are useful for "udev"-like systems that "tag" objects
with a number of strings, and clients need to be able to match against
any of these "tags".
The name "has" takes inspiration from Python's ".has_key()" construct. |
d4d00020d6ad855d65d31020fefa5003e1bb477f |
|
11-Aug-2015 |
Kay Sievers <kay@vrfy.org> |
sd-bus: do not connect to dbus-1 socket when kdbus is available
We should not fall back to dbus-1 and connect to the proxy when kdbus
returns an error that indicates that kdbus is running but just does not
accept new connections because of quota limits or something similar.
Using is_kdbus_available() in libsystemd/ requires it to move from
shared/ to libsystemd/.
Based on a patch from David Herrmann:
https://github.com/systemd/systemd/pull/886 |
3f624df6cf1d523402da13421961c5dc399ed092 |
|
06-Aug-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: ignore BLOOM_FILTER kdbus items
The kernel nowadays sends these along, and that's OK, hence don't even
debug log about it, but completely ignore it. |
7d6884b65e6ea7317346d29bc2f6c9ba051a0cac |
|
06-Aug-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
tree-wide: fix indentation |
95cdf5e3a938ac54d7e9c31276a5acf08347fa9f |
|
24-Jul-2015 |
David Herrmann <dh.herrmann@gmail.com> |
sd-bus: don't treat KDBUS_ITEM_TIMESTAMP as unknown item
In bus_kernel_translate_message(), we print a DEBUG message on unknown
items. But right now, we also print this message for KDBUS_ITEM_TIMESTAMP
despite parsing it properly. Fix this! |
0c9cc10dcca6cc260b293c2732e7a4833280272e |
|
02-Jul-2015 |
David Herrmann <dh.herrmann@gmail.com> |
sd-bus: don't leak kdbus notifications
When we get notifications from the kernel, we always turn them into
synthetic dbus1 messages. This means, we do *not* consume the kdbus
message, and as such have to free the offset.
Right now, the translation-helpers told the caller that they consumed the
message, which is wrong. Fix this by explicitly releasing all kernel
messages that are translated. |
11c9f1e48a683fb2e78ee531016099d567baa19a |
|
17-Jun-2015 |
Simon McVittie <simon.mcvittie@collabora.co.uk> |
Stop talking about the "XDG" version of basename()
XDG refers to X Desktop Group, a former name for freedesktop.org.
This group is responsible for specifications like basedirs,
.desktop files and icon naming, but as far as I know, it has never
tried to redefine basename().
I think these references were meant to say XPG (X/Open Portability
Guide), a precursor of POSIX. POSIX is better-known and less easily
confused with XDG, and is how the basename(3) man page describes
the libgen.h version of basename().
The other version of basename() is glibc-specific and is described
in basename(3) as "the GNU version"; specifically mention that
version, to disambiguate. |
aa0d0ed6b87d41367fd6c4401472df7d45dd1b13 |
|
10-Jun-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: remove ucred parameter from bus_message_from_header() since we don't use it anymore |
ed47f6397d19f05933c27689a74a26d9aeacd06f |
|
05-Jun-2015 |
David Herrmann <dh.herrmann@gmail.com> |
bus: don't force send-masks on kdbus buses
Right now we always pass KDBUS_ITEM_ATTACH_FLAGS_RECV to
KDBUS_CMD_BUS_MAKE, effectively forcing every bus connection to do the
same during KDBUS_CMD_HELLO. This used to be a workaround to make sure all
metadata is always present. However, we refrained from that approach and
intend to make all metadata collection solely rely on /proc access
restrictions. Therefore, there is no need to force the send-flags mask on
newly created buses. |
6517217d49e59938611b6c00965f44d46a255a1d |
|
03-Jun-2015 |
Kay Sievers <kay@vrfy.org> |
kdbus: remove attach_flags_mask module parameter setting |
ff9b60f38bf68eba4a47cabff14547d92e083214 |
|
11-May-2015 |
Torstein Husebø <torstein@huseboe.net> |
treewide: Correct typos and spell plural of bus consistent |
524d896ac17518b824b2c94b3b0b2a23c23da08f |
|
30-Apr-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: when we get ENOTTY on the HELLO ioctl assume incompatible API version
As perparation for future incompatible kdbus kernel API changes. |
cfeaa44a09756a93a881f786678973d9b1e382db |
|
29-Apr-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: properly handle creds that are known but undefined for a process
A number of fields do not apply to all processes, including: there a
processes without a controlling tty, without parent process, without
service, user services or session. To distuingish these cases from the
case where we simply don't have the data, always return ENXIO for them,
while returning ENODATA for the case where we really lack the
information.
Also update the credentials dumping code to show this properly. Fields
that are known but do not apply are now shown as "n/a".
Note that this also changes some of the calls in process-util.c and
cgroup-util.c to return ENXIO for these cases. |
1386e47db5d627ef29664fc8a28b1065dcb7f197 |
|
21-Apr-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: expose ppid field
kdbus has been passing us the ppid file for a while, actually make use
of it. |
6482f6269c87d2249e52e889a63adbdd50f2d691 |
|
10-Apr-2015 |
Ronny Chevalier <chevalier.ronny@gmail.com> |
shared: add formats-util.h |
15411c0cb1192799b37ec8f25d6f30e8d7292fc6 |
|
13-Mar-2015 |
David Herrmann <dh.herrmann@gmail.com> |
tree-wide: there is no ENOTSUP on linux
Replace ENOTSUP by EOPNOTSUPP as this is what linux actually uses. |
606303a93ea52a70ebba55bb3152820e630f2164 |
|
02-Mar-2015 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
After some reconsideration, we decided to move the binary protocol
back to 64-bit wide UIDs and GIDs. After all, it should be possible
to redefine [gu]id_t to uint64_t and things should continue to
work. As we want to avoid such data types in kdbus.h, let's move
back to 64-bit values and be safe.
In sd-bus, we have to do a translation between uint64_t and gid_t
now for supplementary gids.
Some inline comments have also been updated in kdbus upstream. |
6ad4a4fc43e12c8c36f85abbb36e8791ec507519 |
|
24-Feb-2015 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h
Follow two small changes in the kdbus API:
* Flags are now returned in cmd->return_flags by KDBUS_CMD_NAME_ACQUIRE
* struct kdbus_item_list has been dropped. The information stored in
this struct was redundant since awhile already, as all commands
report their returned slice size anyway. |
2eec67acbb00593e414549a7e5b35eb7dd776b1b |
|
23-Feb-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
remove unused includes
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use. |
83e30358f2775b581a5501d14873e409285275f5 |
|
17-Feb-2015 |
David Herrmann <dh.herrmann@gmail.com> |
bus: sync with kdbus
Pull in new kdbus changes, namely:
- EOVERFLOW is replaces by KDBUS_RECV_RETURN_DROPPED_MSGS
- ENOMSG is merged with EAGAIN for consistency |
b267a6d20464a138cae916a676f2c382c51d52de |
|
16-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: make sure we always serialize the reply cookie as 64bit on dbus2, and 32bit on dbus1 |
2ac7c17f9d8eeb403b91ee5a389562edaf47fb87 |
|
16-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
Revert "Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects""
This reverts commit 954871d8ba15911d014f76ed2c7a9492953cf39d. |
403193f54b6ff0d3e822d56d7144cf996a596146 |
|
13-Feb-2015 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
Another slice logic rework in kdbus made KDBUS_ITEM_PAYLOAD_OFF items
relative to the message header again. Catch up with that in sd-bus. |
eef46c372f64f40dd75415b2c504c73138719c8d |
|
11-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: whenever we include libgen.h, immediately undefine basename()
Also, document in adjacent comments and in CODING_STYLE why we do that. |
b2086f601b313939db160aa028e66649ba81bd01 |
|
05-Feb-2015 |
David Herrmann <dh.herrmann@gmail.com> |
bus: sync with kdbus (ABI break) |
954871d8ba15911d014f76ed2c7a9492953cf39d |
|
30-Jan-2015 |
Kay Sievers <kay@vrfy.org> |
Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects"
This breaks booting with kdbus.
This reverts commit b381de4197157748ed96e469fcc372c23f842ae1. |
b381de4197157748ed96e469fcc372c23f842ae1 |
|
26-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects
Previously, we only minimally altered the dbus1 framing for kdbus, and
while the header and its fields where compliant Gvariant objects, and so
was the body, the entire message together was not.
As result of discussions with Ryan Lortie this is now changed, so that
the messages in there entirely are fully compliant GVariants. This
follows the framing description described here:
https://wiki.gnome.org/Projects/GLib/GDBus/Version2
Note that this change changes the framing of *all* messages sent via
kdbus, this means you have to reboot your kdbus system, after compiling
and installing this new version. |
72e6110485926c884f056717a21e4f5f3942908c |
|
26-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: reuse the KDBUS_CMD_FREE wrapper wherever appropriate |
314808cea4d7655b881ce7b1204efa476e7b8fbb |
|
18-Jan-2015 |
David Herrmann <dh.herrmann@gmail.com> |
bus: drop systemd.kdbus_attach_flags_mask= cmdline
There is no reason to provide our own attach_flags_mask. We can simply
rely on kdbus.attach_flags_mask= which is read by the kernel *and* kmod.
If it's set, we assume the user wants to override our setting, so we
simply skip setting it. |
a9c8343e83ec09f80a76930573b2592f97ae4283 |
|
12-Jan-2015 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (API break)
Just a simple variable rename, and a dropped flag that sd-bus didn't make
use of. |
7ce9812173bd32dd46f2804b50815abf3fc18f11 |
|
09-Jan-2015 |
David Herrmann <dh.herrmann@gmail.com> |
bus: append bloom-filter to all signals
Make sure to append bloom-filters to all signal-messages, not only
broadcasts. |
d29ae2914e1146f45ff4104faafef5331837bed7 |
|
07-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: unify how we set the sender of synthetic messages |
76877fb9ccb7f9f921ea921cf692f4d2774d590c |
|
07-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: make use of the newly added timestamps on kdbus kernel messages |
d7d052b23fe1180946b592884d7ea99fd723af4d |
|
05-Jan-2015 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h
Catch up with latest changes in kdbus.ko:
* Signals can be sent as unicast now, hence they need to be marked as
such with the KDBUS_MSG_SIGNAL in the message flags.
* Follow ioctl number change for KDBUS_CMD_FREE |
7d9fcc2bf6869993e5f38d5eb183fb59e8a52816 |
|
30-Dec-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: fix capabilities on big-endian
The kernel provides capabilities as a u32 array, sd-bus uses an u8 array.
This works fine on little-endian as both are encoded the same way.
However, this fails on big-endian if we do not perform sufficient
byte-swapping on each u32 entry.
This patch makes sd-bus use u32, too. We avoid changing any kernel
provided data so we can keep pointing into kdbus pool buffers which
contain u32 arrays. |
34a5d5e52661212c7a145cbab45e70a6df7ba284 |
|
30-Dec-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: drop creds->capability_size
The number of available caps can be read from
/proc/sys/kernel/cap_last_cap during runtime. Our helper cap_last_cap()
does that, so there's no reason to remember the size of any capability
cache. We can just pre-allocate arrays with a suitable size for all
available caps and reject any higher caps.
The kernel capability API uses u32 as base so make sure we do the same.
Note that this is specified by POSIX, so it's unlikely to change. |
315a73d97f277bfbb32170d0a5e2d259198a6838 |
|
29-Dec-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: fix typo
Drop spurious 'we'. |
3c70e3bb022f0de3317f3600c9366a2f4597339e |
|
23-Dec-2014 |
Lennart Poettering <lennart@poettering.net> |
core: rearrange code so that libsystemd/sd-bus/ does not include header files from core
Stuff in src/shared or src/libsystemd should *never* include code from
src/core or any of the tools, so don't do that here either. It's not OK! |
856d6e09887730f115e43faf9577b479f2beb3c4 |
|
22-Dec-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: ignore KDBUS_ITEM_TIMESTAMP in kernel messages
Kernel notifications carry a timestamp now, so make sure
bus_kernel_translate_message() doesn't complain when it stumbles across
them. |
19ee32dc4d337a033c95c7d3302666f2ea4340bd |
|
12-Dec-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: send attach flags on BUS_MAKE
Make sure to set send-attach-flags on BUS_MAKE. These control which
information is revealed about the bus-owner. |
18ee085c155dcd5f196f2ef9b712698dfd377f82 |
|
12-Dec-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: fix assert() on HELLO error-path
Make sure we don't call into any bus_kernel_*() functions before
b->is_kernel is set to true. Hard-code the CMD_FREE just like the other
helpers do. |
d31f486b83484801b6a300a555a9b986a7a84e7b |
|
11-Dec-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: sync with kdbus.git
Changes:
* bloom parameters are returned in an offset via HELLO
* FREE now takes items just like any other ioctl |
94e15fdc4d9d96fa6607bfb4eaaea164a3aec417 |
|
11-Dec-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: sync with kdbus.git
Sync up with recent kdbus changed:
* several ioctls gained .size and .items members (but still unused)
* CMD_SEND gained its own ioctl structure
* several members of kdbus_msg were dropped as they were only used during
SEND, not during RECV etc.
* CMD_RECV and CMD_SEND now share a kdbus_reply member which contains the
offset and size of the returned message. |
cb01aedc3b4ba70859267159fe716253e3551ec6 |
|
10-Dec-2014 |
Lennart Poettering <lennart@poettering.net> |
kdbus: downgrade warning if we cannot patch kdbus attach mask to DEBUG if kdbus is not available |
32802361561403cb6441198c82d9c499e0513863 |
|
09-Dec-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: get rid of PID starttime concept
As kdbus no longer exports this, remove all traces from sd-bus too |
77adde638217112c9e080035197a76f4dc4af700 |
|
09-Dec-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: sync with kdbus-git (ABI break)
kdbus-git gained two new features:
* memfd offsets: This allows to specify a 'start' offset in kdbus_memfd
so you can send partial memfd hunks instead of always
the full memfd
* KDBUS_HELLO_UNPRIVILEGED: If passed during HELLO, the client will be
treated as unprivileged. |
840ceb897ff2b44275dcf2fe8227a750941789f0 |
|
05-Dec-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: follow kdbus changes (ABI break)
Implement a recent change in the kdbus pool logic:
PAYLOAD_VEC_OFF items are now referencing offsets relative to the
connection's pool, not to the item itself. Follow this change in
sd-bus. |
fed1e721fd0c81e60c77120539f34e16c2585634 |
|
28-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1 |
1abe54d9a9292d746e5990843bbbc509984b7f2c |
|
28-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: add arrays of strings in the bloom filter
Let's do this right from the beginning, to prepare ground for udev
messages that most likely want to store list of strings (for device
tags) in messages, and filter on them. |
3acc1dafd14420872f7f13319260eeb5d62c2533 |
|
28-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: add new call sd_bus_get_scope() for querying whether one is connected to a system or a user bus |
52cfc0379a9d63f99cdb3d9f63c839bbc8889b4c |
|
28-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: rework credential query logic
Also, make the call to free kdbus slices generic and use it everywhere |
da927ba997d68401563b927f92e6e40e021a8e5c |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values. |
0a1beeb64207eaa88ab9236787b1cbc2f704ae14 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: auto-convert the simple cases to log_*_errno()
As a followup to 086891e5c1 "log: add an "error" parameter to all
low-level logging calls and intrdouce log_error_errno() as log calls
that take error numbers", use sed to convert the simple cases to use
the new macros:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/'
Multi-line log_*() invocations are not covered.
And we also should add log_unit_*_errno(). |
1214b53c8e463ec328021e90163279ac94dd9af8 |
|
28-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
kdbus: when running in a container, don't complain that we cannot write to /sys |
412c18f10c9df3f0a02358d8c0e707ed2e5fa186 |
|
28-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: the attach_mask kernel module parameter is 64bit now, hence initialize it as such |
1a29929959fd8f59e19ce60c25d1a1f7d910fac0 |
|
27-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
kdbus: set kernel attach mask before creating the first bus |
38ce47e262fbb76b6f6514e8e80cacfc584bee5a |
|
27-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: when we get the list of well-known names back from kdbus we shouldn't confuse the empty list with unknown information |
7d31d92400bab9648016136da1b1e8c5cff1bfcf |
|
27-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: unify logic how we patch the message source of driver messages |
ac653862e0a99505727dc8861e734d8d6f2b0afd |
|
27-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: fake valid well-known-names metadata for faked bus messages |
50c4521675e94ade38b8af9e3b0f7fd2f300b6f4 |
|
27-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: optimize how we generate the well-known-names lists in messages from kdbus |
7fa934b0d35492b300b79848f4822ffc40eee21f |
|
27-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: be stricter with mismatches between dbus1 and kdbus message headers |
342f3005f57fe293d3b43148f8c900f2cbc6f7f7 |
|
27-Nov-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: prefix custom endpoints with "$UID-"
The kdbus module will later get a policy that endpoint-names are
restricted to "<uid>-<name>" just like bus-names. Make sure that systemd
is already compatible to that. |
e12d81ae80214ef05ddedafd016bdd604ce17d12 |
|
26-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: given that the kernel now passes the auxgroups list as 32bit array to us, no need to convert to uid_t manually
This way, we can save one allocation and avoid copying the array
unnecesarily. |
affc7fe9e1295e209c332a26acbbc992b710fe82 |
|
26-Nov-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: update kdbus.h (ABI break)
We changed creds to u32, so fix systemd sd-bus to acknowledge that. |
38813cc8245e35fc89d3671e4cee031d4b2bf430 |
|
26-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
bus-kernel: when installing an activator, ask for any kind of metadata to be attached to incoming messages
We don't know what the activated service might want in the end, hence
enable everything current and future, just to be sure. |
8aee3fc7eae2e60592bac838bc7268720e1d489c |
|
26-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: don't clobber return values on failure in bus_kernel_open_bus_fd() |
fa7796e97b96160a4d78f72d113573770cec18f2 |
|
26-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: set per-bus attach flag requirement mask to ANY
On the system and user busses we create it's the receiver that chooses
which metadata is attched, not the sender, hence set the requirement
mask to ANY, to allow any current of future credential bit to be
attached. |
b5dae4c7f77f7c87b91e0afb60a31c690dda4a1f |
|
26-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: add suppot for renegotiating message credential attach flags |
f9a458c66672992dd34ad0c7cfec3795b897d711 |
|
25-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: react properly to EOVERFLOW by generating a log message about dropped broadcast messages and proceeding |
0a9f1fd79b95cc88b27915f709c9ec4df0b3f891 |
|
25-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
kdbus: minor simplification |
9f6dfd0624e44002e407a72acb0c15b7177e9a9f |
|
25-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: fix error handling when receiving invalid service name
Also, properly keep track of incoming additional service names. |
6dfcc64bb5c67ec2e026715146c19acf93dab31a |
|
25-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: properly handle non-initialized audit records attached to incoming kernel messages |
0258159049d5b381c6097533a69a1b29c3ba7ce2 |
|
25-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: add supplementary groups list to creds object |
705a415f684f8e9ee19983e5859de00bbb1477cb |
|
25-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: update to current kernel version, by splitting off the extended KDBUS_ITEM_PIDS structure from KDBUS_ITEM_CREDS
Also:
- adds support for euid, suid, fsuid, egid, sgid, fsgid fields.
- makes augmentation of creds with data from /proc explicitly
controllable to give apps better control over this, given that this is
racy.
- enables augmentation for kdbus connections (previously we only did it
for dbus1). This is useful since with recent kdbus versions it is
possible for clients to control the metadata they want to send.
- changes sd_bus_query_sender_privilege() to take the euid of the client
into consideration, if known
- when we don't have permissions to read augmentation data from /proc,
don't fail, just don't add the data in |
63cc4c3138fd0ce9cc97884373a2dd8959a13ee9 |
|
13-Nov-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync with kdbus upstream (ABI break)
kdbus has seen a larger update than expected lately, most notably with
kdbusfs, a file system to expose the kdbus control files:
* Each time a file system of this type is mounted, a new kdbus
domain is created.
* The layout inside each mount point is the same as before, except
that domains are not hierarchically nested anymore.
* Domains are therefore also unnamed now.
* Unmounting a kdbusfs will automatically also detroy the
associated domain.
* Hence, the action of creating a kdbus domain is now as
privileged as mounting a filesystem.
* This way, we can get around creating dev nodes for everything,
which is last but not least something that is not limited by
20-bit minor numbers.
The kdbus specific bits in nspawn have all been dropped now, as nspawn
can rely on the container OS to set up its own kdbus domain, simply by
mounting a new instance.
A new set of mounts has been added to mount things *after* the kernel
modules have been loaded. For now, only kdbus is in this set, which is
invoked with mount_setup_late(). |
022fb8558e797483709ab3e9fe846f04f7026dac |
|
11-Nov-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: add sd_bus_message.verify_destination_id and .destination_ptr
kdbus learned to accept both a numerical destination ID as well as a
well-known-name. In that case, kdbus makes sure that the numerical ID is in
fact the owner of the provided name and fails otherwise.
This allows for race-free assertion of a bus name owner while sending a
message, which is a requirement for bus-proxyd.
Add two new fields to sd_bus_message, and set the numerical ID to
verify_destination_id if bus_message_setup_kmsg() is called for a
message with a well-known name.
Also, set the destination's name in the kdbus item to .destination_ptr
if it is non-NULL.
Normal users should not touch these fields, and they're not publicy
accessible. |
6f5c810ad6ef3f09e250dd08d49569fbbf4a762b |
|
05-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: by default allow all creds to be passed along |
d704fda9347f3019fd2a14881bcb6df640c36a80 |
|
05-Nov-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync up with new kdbus metadata attachment logic (ABI break)
The metadata logic in kdbus has seen a rework, and the only mandatory
change we have to follow for now is that attach_flags in kdbus_cmd_hello
is now split into two parts, attach_flags_send and attach_flags_recv. |
455971c1493fc6dc3125d235cf4ea6102cac626d |
|
04-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: rename "connection name" to "description" for the sd-bus API too
kdbus recently renamed this concept, and so should we in what we expose
in userspace. |
635f9f0d95d1cc460f2c59a8fe26ecc358420544 |
|
04-Nov-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
Catch up with some changes in kdbus.h:
* KDBUS_{ITEM,ATTACH}_CONN_NAME were renamed to
KDBUS_{ITEM,ATTACH}_CONN_DESCRIPTION, so the term 'name' is not
overloaded as much.
* The item types were re-ordered a little so they are lined up to the
order of the corresponding KDBUS_ATTACH flags
* A new item type KDBUS_ITEM_OWNED_NAME was introduced, designated to
store a struct kdbus_name in item->name. KDBUS_ITEM_NAME soley
stores data in item->str now
* Some kerneldoc fixes |
6bcf0cf60c7cbfec2a733a28c7fd31ddf4a0024d |
|
31-Oct-2014 |
Tom Gundersen <teg@jklm.no> |
sd-bus: add missing include |
73843b52585d42cc1a970a1c664818ece6942e9e |
|
30-Oct-2014 |
Lennart Poettering <lennart@poettering.net> |
memfd: always use our internal utility functions where we have them |
45071fcaa03eafc27352987fa2277b2792725036 |
|
30-Oct-2014 |
Lennart Poettering <lennart@poettering.net> |
memfd: always create our memfds with CLOEXEC set
We really shouldn't create fds ever that have the flag unset. |
5ebe2ce782a5f4614b3381ba093cbebded3d3ce6 |
|
27-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
Some comment fixes and header cleanups in kdbus.h, and the task capability
meta information has been factored out to its own struct. |
b680a194bf9ed4c6470f07da1d88421e643b8a63 |
|
22-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: assert clock_gettime()'s return value
Don't handle clock_gettime() errors gracefully but use assert_se(). |
03785ad0e51b061efb9f9b3f2e328685f9a866aa |
|
21-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (API change: switch to absolute timeouts)
kdbus_msg.timeout_ns now takes an absolute value, based on CLOCK_MONOTONIC,
in order to eventually support automatically restarted syscalls.
Signed-off-by: Daniel Mack <daniel@zonque.org> |
bc75205c773313a38a6958a6905a99bd56029196 |
|
21-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
In kdbus.h, the following details changed:
* All commands gained a 'kernel_flags' field to report the flags supported
by the driver. Before, this was done in the 'flags' field in a
bidirectional way, which turned out to be a problem for the code in
sd-bus, as many parts of it reuse the same ioctl struct more than once
and consider them to be owned by userspace.
* Name listings are now returned by a new struct instead of reusing struct
kdbus_cmd_name for that matter. This way, we don't add more unneeded
fields to it and make the API cleaner.
* 'conn_flags' was renamed to 'flags' in struct kdbus_cmd_hello to make
the API a bit more unified. |
a2243d548830d2aff6b768a0b47a0f0a513012a5 |
|
20-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
kdbus.h now has KDBUS_ATTACH_COMM split into KDBUS_ATTACH_TID_COMM and
KDBUS_ATTACH_PID_COMM. The items were split already, so the change in
systemd is easy. |
4a3e79e1b6ac12b15efb46df0c42275376ee8e7b |
|
18-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
In kdbus.h, the 'features' field has been dropped again. Instead of
negotiating features that way, we decided to make the kernel return the
set of supported flags in each ioctl struct's .flags field, in both the
success and error cases. |
c32195e057e5bf903c2645e273ba82f32c0106d3 |
|
17-Oct-2014 |
Kay Sievers <kay@vrfy.org> |
Revert "sd-bus: sync kdbus.h (ABI break)"
This reverts commit 1a2409e262da65a4b0ca8ab18fcf5eabd2d404ca.
Support from the kdbus interface was removed. We require
memfds to be supported by all clients. |
1a2409e262da65a4b0ca8ab18fcf5eabd2d404ca |
|
14-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
kdbus learned KDBUS_HELLO_ACCEPT_MEMFD as new connection negotiation
flag. Set it by default in systemd for now. |
40885bb29e3f39fc06787075f666a0ec2ac35361 |
|
08-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
Sync kdbus.h once again. Two thing have changed:
a) KDBUS_CMD_EP_* was renamed to KDBUS_CMD_ENDPOINT_*
b) struct kdbus_cmd_hello and struct kdbus_cmd_make gained a
'features' bitfield (which is currently unused) |
ca794c8e9583eb660f535af32c8c8281a284f270 |
|
07-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: fix use-after-free in close_kdbus_msg()
Walk the items first, then free the memory of the message.
Also, while at it, make coverity happy with an explicit (void) prefix.
We intentionally ignore the return value here. |
13303f018d066a1c8378511f77fde127b0e14f64 |
|
07-Oct-2014 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
sd-bus: remove unused variable
It is no longer used after d663f1b1a92a778bcdc68f29b8c08cb49431b4f7 |
d663f1b1a92a778bcdc68f29b8c08cb49431b4f7 |
|
06-Oct-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (ABI break)
The KDBUS_CMD_FREE ioctl now uses a struct rather than a direct pointer
to the offset to free.
The KDBUS_CMD_MSG_CANCEL ioctl has also changes, but there's no user of
it yet in systemd. |
125dd07483b6836106ff9ad3ce1737d8a6c56c59 |
|
04-Oct-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
sd-bus: split out cleanup into separate function
m is always non-null at this point. This function is too long anyway. |
2c652b6bfe816296a5664dae1125e6bb665b9d5e |
|
02-Oct-2014 |
Lennart Poettering <lennart@poettering.net> |
kdbus: don't clobber return values, use strjoin() instead of asprintf(), keep function invocations and variable declarations separate |
8e00bfc234f43f49b16aa0124fb4b3f1c8eae4ef |
|
02-Oct-2014 |
Lennart Poettering <lennart@poettering.net> |
kdbus: make sure we never invoke free() on an uninitialized pointer on OOM |
619d7a039f9f64ffa593634c2715838ffbc17be4 |
|
23-Sep-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync kdbus.h (API break)
Just a rename of two struct members to make the header file c++ compatible. |
7f3d3ba1a61f28a951ca5fbe59ed15c7ce55219c |
|
22-Sep-2014 |
David Herrmann <dh.herrmann@gmail.com> |
bus: align kdbus ioctl parameters to 8byte
All kdbus ioctl arguments must be 8byte aligned. Make sure we use
alloca_align() and _alignas_(8) in all situations where gcc doesn't
guarantee 8-byte alignment.
Note that objects on the stack are always 8byte aligned as we put
_alignas_(8) into the structure definition in kdbus.h. |
4edf33d1e3fb551b1b0cee8e4a2a380c71b00dc7 |
|
18-Sep-2014 |
Cristian RodrÃguez <crrodriguez@opensuse.org> |
Fix resource leak (coverity CID 1237760) |
e7d718afdb28b1049d382604e5e7bf1d213a8291 |
|
08-Sep-2014 |
Daniel Mack <zonque@gmail.com> |
bus: add code to create custom endpoints and set their policy
Custom endpoints are alternative connection points to a bus, allowing
specific policy to be uploaded.
Add two functions to bus-kernel. One to create such endpoints, and another
one for setting a policy for them. |
5369c77d2ee864ac0464d4adc0774ee70ba9c4bc |
|
08-Sep-2014 |
Daniel Mack <zonque@gmail.com> |
bus: factor out bus policy items
In order to re-use the policy definitions, factor them out into their own
files. |
bb19cb17076bbec942ad08f94d41ba36b28a5a13 |
|
26-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: remove unused call bus_kernel_create_monitor()
Noticed by Djalal Harouni |
fe3f22d116f6f0cac3bdfa512ac54c0faf8bb7cd |
|
18-Aug-2014 |
Denis Kenzior <denkenz@gmail.com> |
bus-control: Fix cgroup handling
On systems without properly setup systemd, cg_get_root_path returns
-ENOENT. This means that busctl doesn't display much information.
busctl monitor also fails whenever it intercepts messages.
This fix fakes creates a fake "/" root cgroup which lets busctl work
on such systems. |
4632777024b7ba210e4efe5cfabc8cd0b5991045 |
|
18-Aug-2014 |
Daniel Mack <zonque@gmail.com> |
memfd: fix memfd_create() syscall wrapper
Unlike earlier versions, the syscall only takes 2 arguments in its
final version, not 3. |
a6082d778ee4b97ec3eb6d3266cefc024c5d60f7 |
|
17-Aug-2014 |
Daniel Mack <zonque@gmail.com> |
kdbus: switch over to generic memfd implementation (ABI+API break) |
8f077bf94e129fa1b6f0159e3140c4326f1066cf |
|
26-Jul-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Print kdbus path when opening fails
This makes it easier to debug what is going on. |
a4152e3fe28b53b8919cc404dd7eca7ead1bf9bd |
|
05-Jun-2014 |
Lennart Poettering <lennart@poettering.net> |
kdbus: when uploading bus name policy, resolve users/groups out-of-process
It's not safe invoking NSS from PID 1, hence fork off worker processes
that upload the policy into the kernel for busnames. |
de0671ee7fe465e108f62dcbbbe9366f81dd9e9a |
|
15-May-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Remove unnecessary casts in printfs
No functional change expected :) |
09365592341b4ba4ceca677bb551dcde811e0333 |
|
19-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: add proper monitoring API |
5892a914d173e4b968d2a14fbf717373dee3999a |
|
19-Mar-2014 |
Daniel Mack <zonque@gmail.com> |
busname: introduce Activating directive
Add a new config 'Activating' directive which denotes whether a busname
is actually registered on the bus. It defaults to 'yes'.
If set to 'no', the .busname unit only uploads policy, which will remain
active as long as the unit is running. |
d2e7b05f248a03dc528f4a270dac2ac3ff3e605a |
|
19-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
core: when creating an activating busname attach all metadata fields to the messages queued for it
This way we can be sure that the service the messages are ultimately
intended for finds all fields it might need. |
3f9da416457c4265b8f1179516a32ad1a987ff7d |
|
18-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
core: add new AcceptFD= setting to .busname units
AcceptFD= defaults to true, thus making sure that by default fd passing
is enabled for all activatable names. Since for normal bus connections
fd passing is enabled too by default this makes sure fd passing works
correctly regardless whether a service is already activated or not.
Making this configurable on both busname units and in bus connections is
messy, but unavoidable since busnames are established and may queue
messages before the connection feature negotiation is done by the
service eventually activated. Conversely, feature negotiation on bus
connections takes place before the connection acquires its names.
Of course, this means developers really should make sure to keep the
settings in .busname units in sync with what they later intend to
negotiate. |
63405595065fb60811440680b148261e9ec50704 |
|
18-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
test |
03e334a1c7dc8c20c38902aa039440763acc9b17 |
|
18-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
util: replace close_nointr_nofail() by a more useful safe_close()
safe_close() automatically becomes a NOP when a negative fd is passed,
and returns -1 unconditionally. This makes it easy to write lines like
this:
fd = safe_close(fd);
Which will close an fd if it is open, and reset the fd variable
correctly.
By making use of this new scheme we can drop a > 200 lines of code that
was required to test for non-negative fds or to reset the closed fd
variable afterwards. |
f8294e4175918117ca6c131720bcf287eadcd029 |
|
16-Mar-2014 |
Josh Triplett <josh@joshtriplett.org> |
Use strlen even for constant strings
GCC optimizes strlen("string constant") to a constant, even with -O0.
Thus, replace patterns like sizeof("string constant")-1 with
strlen("string constant") where possible, for clarity. In particular,
for expressions intended to add up the lengths of components going into
a string, this often makes it clearer that the expression counts the
trailing '\0' exactly once, by putting the +1 for the '\0' at the end of
the expression, rather than hidden in a sizeof in the middle of the
expression. |
42c4ebcbd4cbd7b27667eb8081ee4dc46f9ece17 |
|
13-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
sd-bus: don't look for a 64bit value when we only have 32bit value on reply cookie hash table access
This broke hashtable lookups for the message cookies on s390x, which is
a 64bit BE machine where accessing 32bit values as 64bit and vice versa
will explode.
Also, while we are at it, be a bit more careful when dealing with the
64bit cookies we expose and the 32bit serial numbers dbus uses in its
payload.
Problem identified by Fridrich Strba. |
a6278b88305b237b02eabff0d870b57fe851822d |
|
11-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: replace sd_bus_label_{escape,unescape}() by new sd_bus_path_{encode,decode}()
The new calls work similarly, but enforce a that a common, fixed bus
path prefix is used.
This follows discussions with Simon McVittie on IRC that it should be a
good idea to make sure that people don't use the escaping applied here
too wildly as anything other than the last label of a bus path. |
1683342af1fc85e75ba21264bbcedc26aef0fa39 |
|
07-Mar-2014 |
Daniel Mack <zonque@gmail.com> |
sd-bus: add support for policy upload on activator connections
Activator connections may upload policy when registering to the bus.
This patch contains code to translate between BusNamePolicy objects and
the kdbus specific items. |
f7c7cd03d1e9a9a4bb6925fb64d8423f4a6a2fdc |
|
07-Mar-2014 |
Daniel Mack <zonque@gmail.com> |
sd-bus: sync kdbus.h (ABI break)
Bring kdbus.h in sync with recent policy related changes. Most notably,
KDBUS_MAKE_POLICY_OPEN is now gone. The rest doesn't matter for systemd
at this point, as the policy functionality was not yet used. |
151b9b9662a90455262ce575a8a8ae74bf4ff336 |
|
20-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
api: in constructor function calls, always put the returned object pointer first (or second)
Previously the returned object of constructor functions where sometimes
returned as last, sometimes as first and sometimes as second parameter.
Let's clean this up a bit. Here are the new rules:
1. The object the new object is derived from is put first, if there is any
2. The object we are creating will be returned in the next arguments
3. This is followed by any additional arguments
Rationale:
For functions that operate on an object we always put that object first.
Constructors should probably not be too different in this regard. Also,
if the additional parameters might want to use varargs which suggests to
put them last.
Note that this new scheme only applies to constructor functions, not to
all other functions. We do give a lot of freedom for those.
Note that this commit only changes the order of the new functions we
added, for old ones we accept the wrong order and leave it like that. |
73e231abde39f22097df50542c745e01de879836 |
|
18-Feb-2014 |
Jan Engelhardt <jengelh@inai.de> |
doc: update punctuation
Resolve spotted issues related to missing or extraneous commas, dashes. |
486e99a387adec15738c2822c2df5c813955f433 |
|
01-Feb-2014 |
Kay Sievers <kay@vrfy.org> |
bus: update kdbus.h (ABI break) |
29804cc1e0f37ee34301530fd7f1eb8550be464e |
|
31-Jan-2014 |
Greg KH <gregkh@linuxfoundation.org> |
use memzero(foo, length); for all memset(foo, 0, length); calls
In trying to track down a stupid linker bug, I noticed a bunch of
memset() calls that should be using memzero() to make it more "obvious"
that the options are correct (i.e. 0 is not the length, but the data to
set). So fix up all current calls to memset(foo, 0, length) to
memzero(foo, length). |
b28ff39f42877daef31383748fd2f313d7fd67c1 |
|
28-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: rework bloom filter logic to operate with variable bloom filter
sizes and numbers of hash functions
In order to make the bloom filter logic more future proof communicate
bloom filter parameters from the original bus creator to the clients,
and allow them to be variable within certain ranges. |
ff975efb2e88dcd5221a2f0d76c4c87e85b821a8 |
|
27-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: when we cannot bus activate a service because we go down, drop one
message from the queue |
18a281479dd6ea65d9b7471c5a74b78f23bef307 |
|
24-Jan-2014 |
Kay Sievers <kay@vrfy.org> |
bus: update kdbus.h (ABI break) |
766c580959336be16f7c724b158f8e8fbaba2e9a |
|
22-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: add sd_bus_process_priority() to support prioq mode of kdbus |
ca7b42c81652c342288a3e0a10abd885c66ac5b2 |
|
22-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: expose priority field of messages, in preparation for prioq support |
41add995cf7d61e299cb859a7f63117e2b4de312 |
|
22-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: pass timestamp info only to caller if he asked for it |
cccb0b2cdbd25e90ae92d2d5b107125cb1ca3433 |
|
22-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: include connection name in credentials structure |
8d1db1d154c1134c9bf92b202ef198cc79979ea8 |
|
22-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: when allocating a memfd for usage in a bus connection, name the memfd after the bus connection |
5972fe953ec56c77936a1e612ca87d8a0e6c0c64 |
|
22-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: add support for attaching name to bus connections for debugging purposes |
6a0e376c1cd303ff09777e5d18f070fe43e6b915 |
|
22-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: add API for querying the kdbus message sequence number |
069f5e61eb128aa08b6fdff12fc6ac71c3897b48 |
|
21-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
bus: implement synchronous message calls via kernel ioctl |
607553f9306286fdccf0b356bc3d1087adfe21c4 |
|
21-Jan-2014 |
Tom Gundersen <teg@jklm.no> |
libsystemd: split up into subdirs
We still only produce on .so, but let's keep the sources separate to make things a bit
less messy. |