| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Reproduces: https://github.com/firewalld/firewalld/issues/985
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
File descriptors are represented as the C int type, but only non-negative
values represent a valid fd, with all negative values representing the
absence of a fd (a NULL-like value).
Previously, make_fd() accepted negative fds, but then UnixFd_tp_new
would crash with an assertion failure. Instead, range-check the value
according to the semantically valid range. If it isn't, raise the same
error we previously raised for values that don't fit in an int.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the D-Bus wire protocol, the representation of a Unix fd is a simple
integer in the message body (referred to as the "handle" in GDBus)
which acts as an index into the array of out-of-band fds attached to
the message. The libdbus API (and therefore the dbus-python API)
automatically translates handles into fds, but the GDBus API does not,
making it possible for a GDBus sender to send a message containing
handles that are out-of-range for the number of attached fds. The
message bus also does not prevent such messages from being sent.
dbus-python services need to cope with this and fail gracefully while
unpacking the message, rather than crashing with an assertion failure
in UnixFd_tp_new when the fd turns out to be invalid.
Resolves: https://github.com/firewalld/firewalld/issues/985
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
| |
This seems to be obsolete when using PEP 517.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
|
| |
This requires mostly dropping support for Python 3.5 and 3.6, both of
which are EOL anyway.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This version is EOL, and Meson (for which I want to add support) fails
on its -dbg variant with:
Fatal Python error: a function returned a result with an error set
NotImplementedError: chmod: follow_symlinks unavailable on this platform
During handling of the above exception, another exception occurred:
SystemError: <built-in function chmod> returned a result with an error set
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|\ |
|
| |
| |
| |
| | |
This gives it a more Meson-compatible layout.
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| |
| |
| |
| | |
It's easier to integrate subprojects into a larger project if they are
as close to warnings-clean as possible.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| |
| |
| | |
This allows larger projects to use this as a Meson subproject.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| |
| |
| | |
This will make it easier to use this as a Meson subproject.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| |
| |
| | |
This will be needed when updating gdbus-gmain in a subsequent commit.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| |
| |
| | |
This gives it a layout that is compatible with being a Meson subproject.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| |
| |
| | |
The new version fully supports Python 3.10.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|\ \
| | |
| | |
| | |
| | | |
CI: Stop using EOL Ubuntu 22.10
See merge request dbus/dbus-python!19
|
|/ /
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
add set_allow_interactive_authorization / get_allow_interactive_authorization for message
Closes #43
See merge request dbus/dbus-python!17
|
|/ /
| |
| |
| |
| |
| | |
get_allow_interactive_authorization for message
add unit tests
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Fix invalid escape sequence warnings
Closes #40
See merge request dbus/dbus-python!14
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Backslashes only allowed in string literals if they're part of an escape
sequence (raw strings are an exception to this rule).[1] This change
fixes some string literals that broke this rule.
1. https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
Resolves: dbus/dbus-python#40
Signed-off-by: Jason Yundt <swagfortress@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|\ \
| | |
| | |
| | |
| | | |
Drop Python 2 support, fix forward-compatibility
See merge request dbus/dbus-python!15
|
| | |
| | |
| | |
| | |
| | |
| | | |
This has been available since at least autoconf 2.59c (2006).
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
This has been available since at least libtool 1.9b (2004).
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Automake 1.16.4 changes the default behaviour for Python so that
--prefix is no longer respected. Force it to behave as earlier versions
did, so we can still distcheck.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Python 2 reached EOL on 2020-01-01, and the latest version of
AX_PYTHON_DEVEL breaks the build with Python 2. This seems as good a
time as any to drop compatibility.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
distutils is deprecated and likely to be removed in Python 3.12.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|/ /
| |
| |
| |
| |
| |
| | |
The version of sphinx in Ubuntu impish is not currently fully compatible
with Python 3.10.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|