| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
To avoid compiler warnings like:
[96/113] Compiling C object src/mbimcli/mbimcli.p/mbimcli-ms-basic-connect-extensions.c.o
../src/mbimcli/mbimcli-ms-basic-connect-extensions.c:133:11: warning: missing field 'short_name' initializer [-Wmissing-field-initializers]
{NULL }
^
1 warning generated.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`MBIM_USERNAME` is quoted twice in the
`76-mbim-proxy-device-ownership.rules` rules file. This is because
the definition is used in two files.
The first one is `config.h` file, that is used in source code files
and needs to be explicitly quoted. The second one is the rules file,
mentioned above that already has quotes in the template file.
The explicit quotes have been removed in the rules file generation.
Fixes #21
|
|
|
|
|
|
|
| |
Since meson 0.49, the `/` character can be used to join paths[0], so
all the instances of `join_paths` have been replaced.
[0] http://mesonbuild.com/Release-notes-for-0-49-0.html#joining-paths-with-
|
| |
|
|
|
|
|
|
|
| |
To avoid the burden of maintaining multiple build systems, autotools
support has been removed.
Fixes #18.
|
|
|
|
|
|
| |
There is no such license as GPL-2 in the SPDX nomenclature. As
the project is licensed under GNU General Public License v2.0
or later, use the related identifier GPL-2.0-or-later.
|
|
|
|
|
|
| |
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
mbim-proxy.c: In function ‘log_handler’:
mbim-proxy.c:101:5: warning: enumeration value ‘G_LOG_FLAG_RECURSION’ not handled in switch [-Wswitch-enum]
101 | switch (log_level) {
| ^~~~~~
mbim-proxy.c:101:5: warning: enumeration value ‘G_LOG_LEVEL_MESSAGE’ not handled in switch [-Wswitch-enum]
mbim-proxy.c:101:5: warning: enumeration value ‘G_LOG_LEVEL_INFO’ not handled in switch [-Wswitch-enum]
mbim-proxy.c:101:5: warning: enumeration value ‘G_LOG_LEVEL_MASK’ not handled in switch [-Wswitch-enum]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The autoconf macros AX_COMPILER_FLAGS_{CFLAGS|GIR|LDFLAGS} test
for compiler and linker support of various flags, and add the flags to
the generated output.
If the command-line option '--enable-compile-warnings' is specified to
'configure', a number of additional warning options is also added to
the output. This is the default.
This update requires the presence of the GNU autoconf-archive in the
system when building from git (not required when building from a
source tarball).
|
| |
|
|
|
|
|
| |
We allow specifying how long the proxy should be kept running after
the last client/device has exited.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
g_type_init() has been deprecated (and also marked with the attribute
'deprecated') since glib 2.36 as the type system is automatically
initialized. Since the minimum version of glib required by libmbim is
2.36, calling g_type_init() isn't necessarily in the libmbim code.
|
|
|
|
|
|
|
|
|
|
| |
g_type_init() has been deprecated (and also marked with the attribute
'deprecated') since glib 2.36 as the type system is automatically
initialized. Since the minimum version of glib required by libmbim is
2.32, calling g_type_init() should be guarded with the
GLIB_CHECK_VERSION macro. When libmbim later requires at least glib
2.36, we can completely remove all invocations of g_type_init() from the
code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If --enable-mbim-username isn't explicitly used, we should just check for the
root user UID, without using getpwnam(). See e.g. these SELinux warnings:
SELinux is preventing /usr/bin/bash from read access on the file /etc/passwd.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that bash should be allowed read access on the passwd file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do allow this access for now by executing:
# grep mbim-proxy /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
|
|
|
|
|
| |
Fixing a bug in the previous commit to add udev rules for MBIM proxy
devices.
|
|
|
|
|
|
| |
Adding a udev rule to change ownership of all MBIM devices to the
configured user specified at compile time using --enable-mbim-username
flag.
|
|
|
|
|
|
| |
A device being 'gone' doesn't only mean that it was disconnected and we can no
longer talk to it; it may also be that the proxy couldn't perform the full open
sequence and therefore it removes it from its records.
|
|
|
|
|
|
| |
Exit when all devices are removed instead of when there are no clients
connected. This is done to allow for --no-close and --no-open options
in mbimcli.
|
| |
|
|
This patch implements the mbim-proxy support to allow mulitple clients
to have concurrent access to the MBIM device through libmbim.
The implementation is heavily based on qmi-proxy.
The function mbim_device_open_full() is provided for clients to specify that
the device should be opened through the mbim-proxy via the flag
MBIM_DEVICE_OPEN_FLAGS_PROXY.
The function mbim_device_open() will behave as it has before and open the
device directly.
Proxy Control:
A new service UUID is created to allow for clients to control the proxy.
This service is currently only used to pass on the device path (/dev/cdc-wdm*)
the client is requesting to open. In the future CIDs will be added to allow
for setting the MaxControlMessage size and setting timeout for specific
messages.
Unknown UUIDs:
Currently the mbim-proxy will allow messages with unknown UUIDs to pass through.
The proxy will track unknown UUIDs sent by the client and device notifications
matching the tracked UUID will be sent to the client. Device notifications
of known UUIDs will be sent to all connected clients.
Signed-off-by: Greg Suarez <gsuarez@smithmicro.com>
|