summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libmbim-glib,utils: avoid getpwnam() call if --enable-mbim-username not usedaleksander/avoid-getpwnamAleksander Morgado2014-12-303-7/+24
| | | | | | | | | | | | | | | | 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
* build: ignore built filesAleksander Morgado2014-12-301-0/+1
|
* build: update NEWSAleksander Morgado2014-12-301-0/+38
|
* libmbim-glib,proxy: translate device wrong-state errors into function ↵aleksander/function-error-in-transactionAleksander Morgado2014-12-281-0/+14
| | | | | | | | not-opened errors We're forcing close the MbimDevice whenever we detect a not-opened error; so if we afterwards get more commands from the clients, don't just timeout the requests, instead return our own generated function error messages specifying not-opened.
* libmbim-glib,proxy: force close device if not-opened error detectedAleksander Morgado2014-12-281-0/+25
|
* libmbim-glib,message: new mbim_message_function_error_new()Aleksander Morgado2014-12-283-0/+30
| | | | To be used by the proxy to mimic modem-generated commands.
* libmbim-glib,device: don't segfault if force-closed during message processingAleksander Morgado2014-12-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | (mbim-proxy:17046): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'array' failed Program received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff7316ae0 in g_logv () from /usr/lib/libglib-2.0.so.0 (gdb) bt #0 0x00007ffff7316ae0 in g_logv () from /usr/lib/libglib-2.0.so.0 #1 0x00007ffff7316d1f in g_log () from /usr/lib/libglib-2.0.so.0 #2 0x00007ffff72e49ba in g_byte_array_remove_range () from /usr/lib/libglib-2.0.so.0 #3 0x00007ffff7bb126d in parse_response (self=0x618100) at mbim-device.c:642 #4 0x00007ffff7bb151c in data_available (source=0x64ab60, condition=G_IO_IN, self=0x618100) at mbim-device.c:708 #5 0x00007ffff730f91d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #6 0x00007ffff730fcf8 in ?? () from /usr/lib/libglib-2.0.so.0 #7 0x00007ffff7310022 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #8 0x000000000040153b in main (argc=1, argv=0x7fffffffeac8) at mbim-proxy.c:243 (gdb) fr 3 #3 0x00007ffff7bb126d in parse_response (self=0x618100) at mbim-device.c:642 642 g_byte_array_remove_range (self->priv->response, 0, in_length); (gdb) p self->priv->response $1 = (GByteArray *) 0x0
* libmbim-glib,device: emit error signal also when function errors match ↵Aleksander Morgado2014-12-281-2/+1
| | | | within transactions
* libmbim-glib,message: new helper method to parse responsesAleksander Morgado2014-12-2810-25/+102
| | | | | | | | | | | | | The MBIM "Command", "Open" and "Close" request messages can be replied using either a type specific response (e.g. "Command Done", or "Open Done" or "Close Done" or instead using a generic "Function Error" message. In order to ease the users of the library to look for errors in the received responses, the new mbim_message_response_get_result() method expects any of those two previous messages. We also bump version of the library to 1.11.1, to indicate when the new API was introduced, but this is Not a real release.
* libmbim-glib,device: match function errors within transactionsAleksander Morgado2014-12-281-0/+20
| | | | Or we won't get e.g. NotOpened errors forwarded through the MbimProxy.
* libmbim-glib,message: fix size of error messageAleksander Morgado2014-12-281-1/+1
|
* AUTHORS: updateAleksander Morgado2014-12-241-13/+16
|
* libmbim-glib,proxy: Correct the driver name in the MBIM proxy UDEV rule.Roshan Pius2014-12-221-1/+1
| | | | | Fixing a bug in the previous commit to add udev rules for MBIM proxy devices.
* libmbim-glib,proxy: Change ownership of MBIM devices to the configured user.Roshan Pius2014-12-224-10/+49
| | | | | | Adding a udev rule to change ownership of all MBIM devices to the configured user specified at compile time using --enable-mbim-username flag.
* utils,mbim-network: fix bashismsBoris Egorov2014-12-081-2/+2
| | | | | | See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772325 Signed-off-by: Boris Egorov <egorov@linux.com>
* libmbim,utils: new internal __mbim_user_allowed() methodRoshan Pius2014-11-183-33/+41
| | | | | | | Allows to check whether the user is allowed to use the MBIM device. Also fixes mbim_proxy_open() to make sure we always set the GError when FALSE is returned.
* build: rename '--enable-mbim-proxy-username' to '--enable-mbim-username'Roshan Pius2014-11-182-20/+17
| | | | | This shouldn't be a proxy-only setting. We're going to chown the MBIM devices to this specific user, so we'll re-use this setting for that as well.
* libmbim-glib,proxy: add a configure flag to set the user ID of MBIM proxyRoshan Pius2014-11-182-6/+43
| | | | | | | | | | | | Currently, the MBIM proxy process assumes that it is run as root user and that all incoming client connection users are also root. However, it's not always preferable to run the MBIM proxy as root for security reasons. On some platforms, the MBIM proxy could be constrained to run as a less-privileged user and specially granted the permission to access the MBIM device. So, adding a compile time flag in libmbim to check for the specified user, rather than assume it to be the root user. If the flag is not sent, it'll revert to the existing behaviour of checking for user=root(i.e UID=0)
* libmbim-glib: always attach timeout and idles to the thread default main contextAleksander Morgado2014-11-101-10/+19
| | | | | | The standard timeout/idle methods will attach the sources to the default context, not the thread default context. So, create the GSources ourselves and attach them to the thread default context.
* libmbim-glib: always attach sources to the thread default main contextAleksander Morgado2014-11-092-10/+14
| | | | | | | | | If NULL is specified in g_source_attach() it will attach to the default context, not to the thread-default one if one was given with g_main_context_push_thread_default(). This caused that MbimDevices started in the non-main thread would still attach their socket listening sources to the GMainContext in the main thread.
* test: fix memory leak in test_merge_standard_list_none_fullBen Chan2014-08-121-3/+4
|
* release: bump version to 1.11.0 (development)Aleksander Morgado2014-08-041-1/+1
|
* release: bump version to 1.10.01.10.0Aleksander Morgado2014-08-041-3/+3
| | | | libtool versioning was also updated to reflect the API break.
* build: update NEWSAleksander Morgado2014-08-041-0/+26
|
* data: include new proxy control service in distAleksander Morgado2014-08-041-1/+1
|
* libmbim-glib,device: plug memleakAleksander Morgado2014-08-021-1/+4
|
* libmbim-glib,proxy: don't re-configure global indications if merged unchangedAleksander Morgado2014-08-021-34/+76
| | | | | | | | | Currently we're defaulting to enable the standard services list; so whenever clients want to re-configure their standard services list (e.g. just enabling some of the indications), we just end up having the full standard list again. So, avoid multiple re-configures in the device, just compare and only send the new setup to the device if the global list changes.
* libmbim-glib,proxy-helpers: list comparison in helpers APIAleksander Morgado2014-08-023-77/+86
|
* libmbim-glib,proxy-helpers: fix list size reportingAleksander Morgado2014-08-024-115/+194
|
* libmbim-glib: destroy iochannel on disposeAleksander Morgado2014-08-021-6/+2
|
* libmbim-glib,proxy-helpers: allow merging with empty listsAleksander Morgado2014-08-022-4/+45
|
* libmbim-glib,proxy: plug memleakAleksander Morgado2014-08-021-0/+1
|
* libmbim-glib,proxy: plug memleakAleksander Morgado2014-08-021-0/+1
|
* libmbim-glib,proxy: print service subscribe lists as tracesAleksander Morgado2014-08-023-0/+46
|
* docs,libmbim-glib: split services in generic vs otherAleksander Morgado2014-07-311-1/+5
|
* docs,libmbim-glib: public property and signal namesAleksander Morgado2014-07-311-6/+6
|
* docs,libmbim-glib: add missing symbolsAleksander Morgado2014-07-311-0/+3
|
* libmbim-glib,test: setup proxy helper testsAleksander Morgado2014-07-313-1/+535
|
* libmbim-glib,proxy-helpers: increase number of cids before reallocatingAleksander Morgado2014-07-311-1/+1
| | | | Otherwise we'll go writing out of bounds.
* libmbim-glib,proxy-helpers: allow merging full CIDs list into a subsetAleksander Morgado2014-07-311-0/+7
|
* libmbim-glib,proxy-helpers: update limits of the standard services listAleksander Morgado2014-07-311-2/+2
| | | | | | The size of the standard services list needs to be 1 + the number of services to include; so explicitly use that logic when computing the size, instead of relying on another unrelated enum value.
* libmbim-glib,proxy: setup new proxy helpersAleksander Morgado2014-07-314-106/+202
| | | | Which will be easier to test via unit tests
* libmbim-glib,proxy: fix reading uninitialized byteAleksander Morgado2014-07-311-0/+1
|
* libmbim-glib,proxy: untrack-ing clients may be called multiple timesAleksander Morgado2014-07-311-3/+5
|
* libmbim-glib,mbim-proxy: keep separately the original transaction idAleksander Morgado2014-07-311-1/+3
|
* libmbim-glib,proxy: don't assert when checking ongoing configAleksander Morgado2014-07-311-2/+2
|
* mbim-proxy: wait up to 30s if last device is goneAleksander Morgado2014-07-311-2/+11
| | | | | | 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.
* libmbim-glib,proxy: untrack device if it wasn't opened properlyAleksander Morgado2014-07-311-2/+14
|
* libmbim-glib,device: some helper logs to know why device got closedAleksander Morgado2014-07-311-0/+5
|
* libmbim-glib,proxy: use the provided timeout for retries in mbim_device_open()Aleksander Morgado2014-07-313-37/+28
|