| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
There is no reason to prevent empty argument lists on
UpdateActivationEnvironment(). Make sure we don't fail, but still skip
the call to pid1.
|
|\
| |
| | |
bus-proxy: fix cookie namespacing
|
| |
| |
| |
| |
| |
| |
| |
| | |
If we generate messages from within bus-proxyd, we really must make sure
that we do not clutter the cookie-namespace of our client. The client has
full control over it, so we cannot steal cookies from it. However, we can
re-use the cookie the client used for our request. As long as we only
send a single message, we're fine.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Make sure we release VT-positions when a session is closed. Otherwise,
lingering sessions will occupy VTs and prevent next logins from
succeeding.
Note that we already release session-devices when closing a session, so
there cannot be anyone using the VT anymore.
|
|/
|
|
|
| |
NSS plugins might create additional threads. Remove the limit, we cannot
really make any assumptions here.
|
|\
| |
| | |
bus-proxy: make NameAcquired/Lost directed (v2)
|
| |
| |
| |
| |
| |
| | |
NameAcquired and NameLost are directed signals. Never ever filter them on
dbus1. On dbus1, filters *exclusively* apply to broadcasts! Hence, we
must always forward directed signals unconditionally!
|
| |
| |
| |
| |
| |
| | |
The NameAcquired and NameLost signals are _directed_ signals. Make sure
we properly set the destination correctly, and verify it in our
proxy-test.
|
|\ \
| | |
| | | |
bus-proxy: make StartServiceByName synchronous
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The StartServiceByName() call was provided by dbus-daemon to activate a
service without sending a message. On receiption, dbus-daemon schedules
an activation request (different modes are supported) and sends back the
reply once activation is done.
With kdbus, we marked StartServiceByName() as deprecated. There is no
real reason to start services explicitly. Instead, applications should
just *use* the service and rely on it being activated implicitly.
However, we provide compatibility with dbus-daemon and implement
StartServiceByName() on the proxy via a call to
org.freedesktop.DBus.Peer.Ping() on the destination. This will activate
the peer implicitly as part of the no-op Ping() method call (regardless
whether the peer actually implements that call).
Now, the problem is, StartServiceByName() was synchronous on dbus-daemon
but isn't on bus-proxy. Hence, on return, there is no guarantee that
ListNames includes the activated name. As this is required by some
applications, we need to make this synchronous.
This patch makes the proxy track the Ping() method call and send the
reply of StartServiceByName() only once Ping() returned. We do not look
at possible errors of Ping(), as there is no strict requirement for the
peer to implement org.freedesktop.DBus.Peer. Furthermore, any interesting
error should have already been caught by sd_bus_send() before.
Note:
This race was triggered by gdbus. The gdbus-proxy implementation
relies on a name to be available after StartServiceByName()
returns. This is highly fragile and should be dropped by gdbus.
Even if the call is synchronous, there is no reason whatsoever to
assume the service did not exit-on-idle before ListNames()
returns.
However, this race is much less likely than the startup race, so
we try to be compatible to dbus-daemon now.
|
|/
|
|
|
|
| |
Probably a typo, checking 'ret' instead of the return value 'p'. This
might cause the function to return failure, even though it succeeded.
Furthermore, it might leak resources.
|
| |
|
|
|
|
|
| |
Fix a memory leak introduced by 2fc09a9c. 's' is used twice in this
function, and if free_and_strdup() fails, the pointer is left untouched.
|
|\
| |
| | |
sd-bus: fix parsing of KDBUS_CMD_LIST
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We *must not* assume that an entry returned by KDBUS_CMD_LIST only
carries a single KDBUS_ITEM_OWNED_NAME. Similarly, we already parse
multiple such items for message-metadata, so make sure we support the
same on KDBUS_CMD_LIST.
By relying on the kernel to return all names separately, we limit the
kernel API significantly. Stop this and let the kernel decide how to
return its data.
|
| |
| |
| |
| |
| | |
Use free_and_strdup() where appropriate and replace equivalent,
open-coded versions.
|
|\ \
| | |
| | | |
tree-wide: port everything over to fflush_and_check()
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Some places invoked fflush() directly with their own manual error
checking, let's unify all that by using fflush_and_check().
This also unifies the general error paths of fflush()+rename() file
writers.
|
|\ \
| | |
| | | |
networkd: Add VXLAN Netlink attributes
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This patch add support for vxlan VXLAN Group Policy Option.
https://tools.ietf.org/html/draft-smith-vxlan-group-policy-00
http://lwn.net/Articles/628683/
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
NETLINK_TYPE_FLAG is NLA_FLAG.
This new type will be used in NLA_FLAG for example
IFLA_VXLAN_GBP and IFLA_VXLAN_REMCSUM_NOPARTIAL
|
| | | |
|
|\ \ \ |
|
| | | | |
|
| |\ \ \
| | |_|/
| |/| | |
networkd: fix size of networkd binary
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This patch fixes the size of networkd
Bug #775
before:
size systemd-networkd
text data bss dec hex filename
1493755 8424392 2337 9920484 975fe4 systemd-networkd
After
$ size systemd-networkd
text data bss dec hex filename
1493555 35752 2337 1531644 175efc systemd-networkd
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
If some interfaces are given on the commandline, ignore all others.
|
| | |
| | |
| | |
| | |
| | |
| | | |
We must consider 'pending' links as if they may be managed by networkd, as this
is the state we enter before deciding wether networkd should manage the link
or not, so we better wait for this decision being made.
|
|\ \ \
| | | |
| | | | |
gpt-auto-generator: merge efi-boot-generator
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
gvariant: fix encoding of unary type and root-variant (v3)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The gvariant root container contains a 'variant' at the end, which embeds
the whole message body. This variant *must* contain a structure so we are
compatible to dbus1. Otherwise, it could encode at most 1 type, instead
of a full signature.
Our gvariant message parser already parses the variant-content as a
structure, so we're mostly good. However, it does *not* include the
opening and closing parantheses, nor does it parse them.
This patch fixes the decoder to verify a message contains the
parantheses, and also make the encoder add those parantheses into the
marshaled message.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The unary type has a fixed size of 1 in gvariant. Make sure we properly
encode it as such. Right now, we encode/decode it as empty sequence.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If c->item_size is 0, the next item to parse in a structure is empty.
However, this also implies that the signature must be empty. The latter
case is already handled just fine by enter_struct_or_dict_entry() so
there is no reason to handle the same case in the caller.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Right now sd_bus_message_skip() will abort execution if passed a
signature of the unary type "()". Regardless whether this should be
supported or not, we really must not abort. Drop the incorrect assertion
and add a test-case for this.
|
|\ \ \ \
| |/ / /
|/| | | |
socket-util: library calls shouldn't log on their own
|
| | | |
| | | |
| | | |
| | | | |
Instead, make sure that all callers log properly.
|
|\ \ \ \
| | | | |
| | | | | |
resolved: never attempt to resolve loopback addresses via DNS/LLMNR/mDNS
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
We already refuse to resolve "localhost", hence we should also refuse
resolving "127.0.0.1" and friends.
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | | |
terminal: drop unfinished code
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This drops the libsystemd-terminal and systemd-consoled code for various
reasons:
* It's been sitting there unfinished for over a year now and won't get
finished any time soon.
* Since its initial creation, several parts need significant rework: The
input handling should be replaced with the now commonly used libinput,
the drm accessors should coordinate the handling of mode-object
hotplugging (including split connectors) with other DRM users, and the
internal library users should be converted to sd-device and friends.
* There is still significant kernel work required before sd-console is
really useful. This includes, but is not limited to, simpledrm and
drmlog.
* The authority daemon is needed before all this code can be used for
real. And this will definitely take a lot more time to get done as
no-one else is currently working on this, but me.
* kdbus maintenance has taken up way more time than I thought and it has
much higher priority. I don't see me spending much time on the
terminal code in the near future.
If anyone intends to hack on this, please feel free to contact me. I'll
gladly help you out with any issues. Once kdbus and authorityd are
finished (whenever that will be..) I'll definitely pick this up again. But
until then, lets reduce compile times and maintenance efforts on this code
and drop it for now.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The NSEC type itself must at least be in the bitmap, so NSEC records with empty
bitmaps must be bogus.
|
| | | |
| | | |
| | | |
| | | | |
We were tracking the bit offset inside each byte, rather than inside the whole bitmap.
|
| |_|/
|/| |
| | |
| | | |
We were counting the number of bits set rather than the number of bytes they occupied.
|
|\ \ \
| | | |
| | | | |
resolved: compare dns question arrays properly
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
Let's optimize things a bit and properly compare DNS question arrays,
instead of checking if they are mutual supersets. This also makes ANY
query handling more accurate.
|
|\ \ \
| | | |
| | | | |
networkd: add support for Macvtap
|