platform/upstream/glib.git
4 years agoupdate dependency on python to python3 56/223656/1 submit/tizen/20200131.155540
Adrian Szyndela [Fri, 31 Jan 2020 15:52:26 +0000 (16:52 +0100)]
update dependency on python to python3

Change-Id: Ib50cecab4cf4eaac3cc0d1c932dadf087e9f0058

4 years agoMerge 'glib-upgrade-from-2.52.2-to-2.62.3' into 'tizen' 47/223647/1 submit/tizen/20200131.142009
Adrian Szyndela [Fri, 31 Jan 2020 11:33:07 +0000 (12:33 +0100)]
Merge 'glib-upgrade-from-2.52.2-to-2.62.3' into 'tizen'

Change-Id: I386aeab52f02a9f5e5df57bbbb2bac2af2ac6b97

4 years agoBump to 2.62.3 glib-upgrade-from-2.52.2-to-2.62.3
Adrian Szyndela [Thu, 23 Jan 2020 12:38:20 +0000 (13:38 +0100)]
Bump to 2.62.3

Change-Id: Iceaf5fee3bdfa6a6130ccec519fc3d0326a53bb4

4 years agoMerge 2.62.1 up to 2.62.3 into tizen
Adrian Szyndela [Thu, 23 Jan 2020 12:37:03 +0000 (13:37 +0100)]
Merge 2.62.1 up to 2.62.3 into tizen

Change-Id: I7a29860e1cf1521f56537ab147233515c8d4e522

4 years agoBump to 2.62.0
Adrian Szyndela [Thu, 23 Jan 2020 11:38:00 +0000 (12:38 +0100)]
Bump to 2.62.0

Change-Id: I233f1267146e9907916de473841336ce7ef88d1c

4 years agoMerge 2.62.0 into tizen
Adrian Szyndela [Thu, 23 Jan 2020 11:37:31 +0000 (12:37 +0100)]
Merge 2.62.0 into tizen

Change-Id: I3be9de1543394062c1d170b39da05ac305dca971

4 years agoBump to 2.61.0
Adrian Szyndela [Thu, 23 Jan 2020 11:16:50 +0000 (12:16 +0100)]
Bump to 2.61.0

Change-Id: Ie9a8e906cc59a6ecb1dbbbe523570875be81303f

4 years agoMerge 2.61.0 into tizen
Adrian Szyndela [Thu, 23 Jan 2020 11:15:54 +0000 (12:15 +0100)]
Merge 2.61.0 into tizen

Change-Id: I4610654bb2ec8914d1e85e925f337e124894cdac

4 years agoBump to 2.60.7
Adrian Szyndela [Thu, 23 Jan 2020 10:26:28 +0000 (11:26 +0100)]
Bump to 2.60.7

Change-Id: I3b51d5eec01b997e8eeeb35adae2586c597a5ef7

4 years agoMerge 2.60.2 up to 2.60.7 into tizen
Adrian Szyndela [Thu, 23 Jan 2020 10:25:58 +0000 (11:25 +0100)]
Merge 2.60.2 up to 2.60.7 into tizen

Change-Id: Iacfc011a8e5d60bf1c291f67714200aab1dbb735

4 years agoBump to 2.60.1
Adrian Szyndela [Thu, 23 Jan 2020 10:25:43 +0000 (11:25 +0100)]
Bump to 2.60.1

Change-Id: Id87004eb23aa4259fecf0472d459d390921ce892

4 years agoMerge 2.60.1 into tizen
Adrian Szyndela [Thu, 23 Jan 2020 10:13:04 +0000 (11:13 +0100)]
Merge 2.60.1 into tizen

Change-Id: If2ab14f734b8c86ac038cad6db4640964fcc8283

4 years agoBump to 2.60.0
Adrian Szyndela [Wed, 22 Jan 2020 12:43:52 +0000 (13:43 +0100)]
Bump to 2.60.0

Change-Id: I83eb4425a1dd2df56a951e46c18fe59ea6f67bfb

4 years agoMerge 2.60.0 into tizen
Adrian Szyndela [Wed, 22 Jan 2020 12:42:50 +0000 (13:42 +0100)]
Merge 2.60.0 into tizen

Change-Id: I8a4df520c88d40ff8151040aeace30f6035f2673

4 years agoBump to 2.59.3
Adrian Szyndela [Wed, 22 Jan 2020 12:27:45 +0000 (13:27 +0100)]
Bump to 2.59.3

Change-Id: I2a22b67e6b2cb77bea4c6a8062e4db2a7ad1be78

4 years agoMerge 2.59.2 and 2.59.3 into tizen
Adrian Szyndela [Wed, 22 Jan 2020 12:01:30 +0000 (13:01 +0100)]
Merge 2.59.2 and 2.59.3 into tizen

Change-Id: I8dc45b9cae0b46aa022435f30367d7e569b3a0f4

4 years agospec: switch to meson build system
Adrian Szyndela [Wed, 22 Jan 2020 11:45:24 +0000 (12:45 +0100)]
spec: switch to meson build system

This commit is based on commit 9a04ca6058b68 by
DongHun Kwak <dh0128.kwak@samsung.com>.

This switches spec to meson build system which is the only build
system supported by glib 2.59.1.

We also drop the coverage package with this commit.

Change-Id: Iceb6d74380c497b4b02ee4fd30e706b3033a57ca

4 years agoMerge 2.59.1 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 15:50:28 +0000 (16:50 +0100)]
Merge 2.59.1 into tizen

Change-Id: I6fa78cd996ed65492067ba7d8dbdf6dd6e9f8fc0

4 years agoMerge 2.59.0 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 15:50:13 +0000 (16:50 +0100)]
Merge 2.59.0 into tizen

Change-Id: I5fce88747c10d0f110d405e1e6be536d0cc8f2d0

4 years agoMerge 2.58.3 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 12:02:16 +0000 (13:02 +0100)]
Merge 2.58.3 into tizen

Change-Id: Ice31a15a13993b29209d225bb40fb71c3450cf85

4 years agoMerge 2.58.2 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 14:28:35 +0000 (15:28 +0100)]
Merge 2.58.2 into tizen

Change-Id: I73d96372644842bf56342fb57bb1b0dafbebcec6

4 years agoMerge 2.58.1 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:53:33 +0000 (12:53 +0100)]
Merge 2.58.1 into tizen

Change-Id: I081c5dd8114c7dea030be1331f77fadc9e289b91

4 years agoMerge 2.58.0 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:53:05 +0000 (12:53 +0100)]
Merge 2.58.0 into tizen

Change-Id: I1b66ac798fbdd05ea32555ac181744bac1e6ac02

4 years agoMerge 2.57.3 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 14:38:45 +0000 (15:38 +0100)]
Merge 2.57.3 into tizen

Change-Id: I37491b4aeec59c33f3b0cd8c82364d4d3dcc5de4

4 years agoMerge 2.57.2 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 14:27:39 +0000 (15:27 +0100)]
Merge 2.57.2 into tizen

Change-Id: Id268f3b3a99b482c3023be25bc98cda4e1d41702

4 years agoMerge 2.56.2 up to 2.57.1 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:43:44 +0000 (12:43 +0100)]
Merge 2.56.2 up to 2.57.1 into tizen

Change-Id: I4ee99f4126125121280ae7be4bd81821e67e5e0f

4 years agoMerge 2.56.0 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 14:27:02 +0000 (15:27 +0100)]
Merge 2.56.0 into tizen

Change-Id: I69955823f066e16d5884c7bfd0de51e2d165484e

4 years agoMerge 2.55.2 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:42:04 +0000 (12:42 +0100)]
Merge 2.55.2 into tizen

Change-Id: I8e4b6ea831dc08217caf040ac620e9b9448e5643

4 years agoMerge 2.55.1 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:35:01 +0000 (12:35 +0100)]
Merge 2.55.1 into tizen

Change-Id: Ifc32b4cc67f8ecfc5a1dde9f88af171e0d6f7a68

4 years agoMerge 2.55.0 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:31:53 +0000 (12:31 +0100)]
Merge 2.55.0 into tizen

Change-Id: I4672fc63f448f6538a4bd8926ffc85fa47d97648

4 years agoMerge 2.54.3 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:23:46 +0000 (12:23 +0100)]
Merge 2.54.3 into tizen

Change-Id: I1fd7856e2afde5a4af5cacc4af26b106a2d81434

4 years agoMerge 2.54.2 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:23:22 +0000 (12:23 +0100)]
Merge 2.54.2 into tizen

Change-Id: Ia6a8a89b739d32731bdbb450db1529ccb0d0fbe6

4 years agoMerge 2.54.1 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:22:57 +0000 (12:22 +0100)]
Merge 2.54.1 into tizen

Change-Id: I9e6959ba57b540d6ab763c967b45f6434571a830

4 years agoMerge 2.54.0 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:22:40 +0000 (12:22 +0100)]
Merge 2.54.0 into tizen

Change-Id: I3a8c6dc9cda35dd0701c68339178ad298b343ebd

4 years agoMerge 2.53.7 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:22:03 +0000 (12:22 +0100)]
Merge 2.53.7 into tizen

Change-Id: I99922bc8d7fdbd1668f408eadfd25bbb5948e7b0

4 years agoMerge 2.53.6 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:21:34 +0000 (12:21 +0100)]
Merge 2.53.6 into tizen

Change-Id: Ibcc608686e6fc65137383be1dae173c355c8480b

4 years agoMerge 2.53.5 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:21:04 +0000 (12:21 +0100)]
Merge 2.53.5 into tizen

Change-Id: Ice0babed16cb3ec467030e4bdce98b43e916d202

4 years agoMerge 2.53.4 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:18:41 +0000 (12:18 +0100)]
Merge 2.53.4 into tizen

Change-Id: I92c3ee01a88e92717ab46ca59f3323a6b6a895c6

4 years agoMerge 2.53.3 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:15:05 +0000 (12:15 +0100)]
Merge 2.53.3 into tizen

Change-Id: Iacdfcab900941fbdd53a919b0ecfda0cafeca486

4 years agofix for race condition in watching names in kdbus env.
Adrian Szyndela [Mon, 5 Dec 2016 14:38:08 +0000 (15:38 +0100)]
fix for race condition in watching names in kdbus env.

This brings back a necessary fix for watching names in kdbus environment.

The scenario for race condition is as follows:
1. Client calls g_bus_watch_name for a name
2. g_bus_watch_name subscribes for NameOwnerChanged for the name
3. g_bus_watch_name gets name owner for the name
4. the name appears on the bus
5. NameOwnerChanged is received

For non-kdbus system, dbus-daemon is a process which handles names,
sends NameOwnerChanged signals and handles GetNameOwner requests.
Because of its nature, it orders events. On the other side, D-Bus also
guarantees order of messages. Thus, the client will surely get the following
messages in order:
1. GetNameOwner response
2. NameOwnerChanged signal

Some part in it takes client->initialized field. Because the order is
guaranteed, gdbus ignores NameOwnerChanged signals until GetNameOwner
response is received.

For kdbus system, there is no dbus-daemon. NameOwnerChanged signal is sent
by kernel. The response for GetNameOwner is taken synchronously by ioctl.
Before the fix, GetNameOwner response was taken, and put into the receiving
queue artificially. However, if the name appeared on the bus just after ioctl,
the NameOwnerChanged signal could appear before the GetNameOwner response was
processed. It resulted in ignoring the signal. The client was left with
"no name on the bus" state, although the name was already present.

The fix ensures the order of events processing - GetNameOwner response is
processed synchronously, any subsequent NameOwnerChanged signals are not
ignored anymore.

Change-Id: I11fa92a6dae62cb3bdaa4159db0da160752063d1
(cherry picked from commit f1f2e5e4df63f06cac53148e5c91a27a56eea9ca)

4 years agoRevert name watching race condition fix
Adrian Szyndela [Fri, 17 Jan 2020 11:07:07 +0000 (12:07 +0100)]
Revert name watching race condition fix

This reverts three commits aimed to fix a race condition:
a0dc33df372eb7a54a89221b97db753d560fcfd7
dc8a71bcd7e904a6419f8e7cd1a772d8a066c95f
75ab298452793ea20ab1daa255602200bb309ac8

The race condition was fixed in upstream in a different way, so we're
importing it.

Change-Id: Icab842f507b033ef83c984cdc30004a681c69c43

4 years agoMerge 2.53.2 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 11:14:16 +0000 (12:14 +0100)]
Merge 2.53.2 into tizen

Change-Id: If32a06713d2d82d60b99b1480cdffc48aeb4a4de

4 years agoMerge 2.53.1 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 10:44:32 +0000 (11:44 +0100)]
Merge 2.53.1 into tizen

Change-Id: I042296dc6c0260aef55f19927dc5a43a79b200ba

4 years agoMerge 2.52.3 into tizen
Adrian Szyndela [Fri, 17 Jan 2020 10:43:30 +0000 (11:43 +0100)]
Merge 2.52.3 into tizen

Change-Id: I8958c4fafd2d751c6440a082eacdc8bf302cd160

4 years ago[Tizen_6_build] gdbus: Avoid printing null strings 17/221117/1 accepted/tizen/unified/20200105.221144 submit/tizen/20191230.015956
Ernestas Kulik [Tue, 29 Jan 2019 08:50:46 +0000 (09:50 +0100)]
[Tizen_6_build] gdbus: Avoid printing null strings

This mostly affects the 2.56 branch, but, given that GCC 9 is being
stricter about passing null string pointers to printf-like functions, it
might make sense to proactively fix such calls.

gdbusauth.c: In function '_g_dbus_auth_run_server':
gdbusauth.c:1302:11: error: '%s' directive argument is null
[-Werror=format-overflow=]
 1302 |           debug_print ("SERVER: WaitingForBegin, read '%s'",
 line);
       |

gdbusmessage.c: In function ‘g_dbus_message_to_blob’:
gdbusmessage.c:2730:30: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
 2730 |       tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
      |

Change-Id: I8ce45f2a4759df60b8ed071cfcec4aa455563941
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
4 years agoImported Upstream version 2.62.3 upstream/2.62.3
Hyunjee Kim [Tue, 3 Dec 2019 02:06:12 +0000 (11:06 +0900)]
Imported Upstream version 2.62.3

4 years agoImported Upstream version 2.62.2
Hyunjee Kim [Tue, 3 Dec 2019 02:05:16 +0000 (11:05 +0900)]
Imported Upstream version 2.62.2

4 years agoImported Upstream version 2.62.1
Hyunjee Kim [Tue, 3 Dec 2019 02:03:29 +0000 (11:03 +0900)]
Imported Upstream version 2.62.1

4 years agoImported Upstream version 2.62.0
Hyunjee Kim [Tue, 3 Dec 2019 02:02:30 +0000 (11:02 +0900)]
Imported Upstream version 2.62.0

4 years agoImported Upstream version 2.61.3
Hyunjee Kim [Tue, 3 Dec 2019 02:01:36 +0000 (11:01 +0900)]
Imported Upstream version 2.61.3

4 years agoImported Upstream version 2.61.2
Hyunjee Kim [Tue, 3 Dec 2019 02:00:55 +0000 (11:00 +0900)]
Imported Upstream version 2.61.2

4 years agoImported Upstream version 2.61.1
Hyunjee Kim [Tue, 3 Dec 2019 01:57:58 +0000 (10:57 +0900)]
Imported Upstream version 2.61.1

4 years agoImported Upstream version 2.61.0
Hyunjee Kim [Tue, 3 Dec 2019 01:55:17 +0000 (10:55 +0900)]
Imported Upstream version 2.61.0

4 years agoImported Upstream version 2.60.7
Hyunjee Kim [Tue, 3 Dec 2019 01:54:26 +0000 (10:54 +0900)]
Imported Upstream version 2.60.7

4 years agoImported Upstream version 2.60.6
Hyunjee Kim [Tue, 3 Dec 2019 01:53:23 +0000 (10:53 +0900)]
Imported Upstream version 2.60.6

4 years agoImported Upstream version 2.60.5
Hyunjee Kim [Tue, 3 Dec 2019 01:52:54 +0000 (10:52 +0900)]
Imported Upstream version 2.60.5

4 years agoImported Upstream version 2.60.4
Hyunjee Kim [Tue, 3 Dec 2019 01:52:15 +0000 (10:52 +0900)]
Imported Upstream version 2.60.4

4 years agoImported Upstream version 2.60.3
Hyunjee Kim [Tue, 3 Dec 2019 01:50:05 +0000 (10:50 +0900)]
Imported Upstream version 2.60.3

4 years agoImported Upstream version 2.60.2
Hyunjee Kim [Tue, 3 Dec 2019 01:49:39 +0000 (10:49 +0900)]
Imported Upstream version 2.60.2

4 years agoImported Upstream version 2.60.1
Hyunjee Kim [Tue, 3 Dec 2019 01:49:10 +0000 (10:49 +0900)]
Imported Upstream version 2.60.1

4 years agoImported Upstream version 2.60.0
Hyunjee Kim [Tue, 3 Dec 2019 01:48:33 +0000 (10:48 +0900)]
Imported Upstream version 2.60.0

4 years agoImported Upstream version 2.59.3
Hyunjee Kim [Tue, 3 Dec 2019 01:47:18 +0000 (10:47 +0900)]
Imported Upstream version 2.59.3

4 years agoImported Upstream version 2.59.2
Hyunjee Kim [Tue, 3 Dec 2019 01:43:46 +0000 (10:43 +0900)]
Imported Upstream version 2.59.2

4 years agoImported Upstream version 2.59.1
Hyunjee Kim [Tue, 3 Dec 2019 01:42:37 +0000 (10:42 +0900)]
Imported Upstream version 2.59.1

4 years agoImported Upstream version 2.59.0
Hyunjee Kim [Tue, 3 Dec 2019 01:41:40 +0000 (10:41 +0900)]
Imported Upstream version 2.59.0

4 years agoImported Upstream version 2.58.3
Hyunjee Kim [Tue, 3 Dec 2019 01:40:45 +0000 (10:40 +0900)]
Imported Upstream version 2.58.3

4 years agoImported Upstream version 2.58.2
Hyunjee Kim [Tue, 3 Dec 2019 01:40:05 +0000 (10:40 +0900)]
Imported Upstream version 2.58.2

4 years agoImported Upstream version 2.58.1
Hyunjee Kim [Tue, 3 Dec 2019 01:39:34 +0000 (10:39 +0900)]
Imported Upstream version 2.58.1

4 years agoImported Upstream version 2.58.0
Hyunjee Kim [Tue, 3 Dec 2019 01:38:57 +0000 (10:38 +0900)]
Imported Upstream version 2.58.0

4 years agoImported Upstream version 2.57.3
Hyunjee Kim [Tue, 3 Dec 2019 01:37:40 +0000 (10:37 +0900)]
Imported Upstream version 2.57.3

4 years agoImported Upstream version 2.57.2
Hyunjee Kim [Tue, 3 Dec 2019 01:36:55 +0000 (10:36 +0900)]
Imported Upstream version 2.57.2

4 years agoImported Upstream version 2.57.1
Hyunjee Kim [Tue, 3 Dec 2019 01:35:59 +0000 (10:35 +0900)]
Imported Upstream version 2.57.1

4 years agoImported Upstream version 2.56.4
Hyunjee Kim [Tue, 3 Dec 2019 00:55:44 +0000 (09:55 +0900)]
Imported Upstream version 2.56.4

4 years agoImported Upstream version 2.56.3
Hyunjee Kim [Tue, 3 Dec 2019 00:54:57 +0000 (09:54 +0900)]
Imported Upstream version 2.56.3

4 years agoImported Upstream version 2.56.2
Hyunjee Kim [Tue, 3 Dec 2019 00:54:23 +0000 (09:54 +0900)]
Imported Upstream version 2.56.2

4 years agoImported Upstream version 2.56.1
Hyunjee Kim [Tue, 3 Dec 2019 00:53:51 +0000 (09:53 +0900)]
Imported Upstream version 2.56.1

4 years agoImported Upstream version 2.56.0
Hyunjee Kim [Tue, 3 Dec 2019 00:53:03 +0000 (09:53 +0900)]
Imported Upstream version 2.56.0

4 years agoImported Upstream version 2.55.2
Hyunjee Kim [Tue, 3 Dec 2019 00:48:48 +0000 (09:48 +0900)]
Imported Upstream version 2.55.2

4 years agoImported Upstream version 2.55.1
Hyunjee Kim [Tue, 3 Dec 2019 00:47:46 +0000 (09:47 +0900)]
Imported Upstream version 2.55.1

4 years agoImported Upstream version 2.55.0
Hyunjee Kim [Tue, 3 Dec 2019 00:46:57 +0000 (09:46 +0900)]
Imported Upstream version 2.55.0

4 years agoImported Upstream version 2.54.3
Hyunjee Kim [Tue, 3 Dec 2019 00:46:23 +0000 (09:46 +0900)]
Imported Upstream version 2.54.3

4 years agoImported Upstream version 2.54.2
Hyunjee Kim [Tue, 3 Dec 2019 00:45:52 +0000 (09:45 +0900)]
Imported Upstream version 2.54.2

4 years agoglib: Stop using g_get_current_time() in various places 15/213615/1 accepted/tizen_5.5_unified_mobile_hotfix sandbox/hj0426.kim/glib_2.52.2 tizen_5.5_mobile_hotfix tizen_5.5_tv accepted/tizen/5.5/unified/20191031.010124 accepted/tizen/5.5/unified/mobile/hotfix/20201027.063256 accepted/tizen/unified/20190911.111745 submit/tizen/20190909.072243 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 tizen_5.5.m2_release
Philip Withnall [Wed, 24 Jul 2019 13:17:02 +0000 (14:17 +0100)]
glib: Stop using g_get_current_time() in various places

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Change-Id: I5baa3ebebdfd84b94fb32633c990905213421fa6
Helps: #1438
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
4 years agokdbus: modified to check null value 52/210652/1 accepted/tizen/unified/20190724.063829 submit/tizen/20190723.111553
sanghyeok.oh [Tue, 23 Jul 2019 10:37:28 +0000 (19:37 +0900)]
kdbus: modified to check null value

Change-Id: I630159453a711f9951ab09535c5417ec9040a0b9
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agokdbus: fix computing bloom filters 66/210466/1 accepted/tizen/unified/20190722.074829 submit/tizen/20190719.104741
Adrian Szyndela [Fri, 19 Jul 2019 08:27:28 +0000 (10:27 +0200)]
kdbus: fix computing bloom filters

The bloom filters computing had been implemented in the past, basing
on systemd. However, the reimplementation introduced two bugs:
- no clearing of 'p' variable;
- clearing of hash_index variable in a wrong place.

This fixes the bugs.

The same applies to libdbus.

Change-Id: I92d5fe7f270306c96e8a38c96d0a06d38b8e59b1

4 years agogkdbus: async StartServiceByName handled by GTask 29/208729/1 accepted/tizen/unified/20190715.111822 submit/tizen/20190710.004428 submit/tizen/20190715.020025
Adrian Szyndela [Thu, 27 Jun 2019 14:04:29 +0000 (16:04 +0200)]
gkdbus: async StartServiceByName handled by GTask

Change-Id: I65b29cc58c9a275dca3018309c06d25eaf6d6166

4 years agokdbus: modified to support asynchronous StartServiceByName 99/200099/5
sanghyeok.oh [Tue, 19 Feb 2019 06:47:41 +0000 (15:47 +0900)]
kdbus: modified to support asynchronous StartServiceByName

Change-Id: I57c30fb86b1ec266037a4583ef64888ca92f2bc9
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years ago[CVE-2019-12450]gfile: Limit access to files when copying 23/207323/1 accepted/tizen/unified/20190604.014623 submit/tizen/20190603.073640
Ondrej Holy [Thu, 23 May 2019 08:41:53 +0000 (10:41 +0200)]
[CVE-2019-12450]gfile: Limit access to files when copying

file_copy_fallback creates new files with default permissions and
set the correct permissions after the operation is finished. This
might cause that the files can be accessible by more users during
the operation than expected. Use G_FILE_CREATE_PRIVATE for the new
files to limit access to those files.

Change-Id: Id071a47323fcd0690dec6a5d519d5ab4f2f43562
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
(cherry picked from commit ec54d211518bf3c2f397f565088a7054219f194e)

5 years agokdbus: svace fix 85/202285/3 accepted/tizen/unified/20190403.064840 submit/tizen/20190401.083728
sanghyeok.oh [Wed, 27 Mar 2019 00:17:15 +0000 (09:17 +0900)]
kdbus: svace fix

Change-Id: I8166bd83bcd4b5fbca516daa2f1917437820ea8c
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agokdbus: share fd and pool with libdbuspolicy 79/201479/1 accepted/tizen/unified/20190322.075520 submit/tizen/20190321.094448
Adrian Szyndela [Thu, 14 Mar 2019 12:46:10 +0000 (13:46 +0100)]
kdbus: share fd and pool with libdbuspolicy

This uses new functionality of libdbuspolicy: using client's pool and fd.
This way libdbuspolicy doesn't have to create its own connection,
and what is more important it doesn't have to create its own 1MB pool.
This is at the cost of using client's pool for receiving responses
to ioctl(KDBUS_CMD_GET_CONN_INFO), which are small.

Change-Id: If31a3636be87f04559781f2ba68cb05c1c18d865

5 years agokdbus: check policy after opening, before Hello 78/201478/1
Adrian Szyndela [Thu, 14 Mar 2019 11:55:47 +0000 (12:55 +0100)]
kdbus: check policy after opening, before Hello

This moves checking access policy to the point after
the kdbus file descriptor is open, just before "Hello" is performed.
Now, it reflects standard process a bit more.

The standard process is:
- open fd (e.g. socket);
- check authentication, if needed and possible;
- connect to the bus (say hello).

In kdbus, we have only:
- open kdbus fd;
- connect to the bus (ioctl KDBUS_CMD_HELLO).
Calling libdbuspolicy for authentication fits between the two.

Additionally, and most importantly, this is required to share
the connection between gio and libdbuspolicy in the future.

Change-Id: Iee49b36e482a099d061dff4a8ba1826c2a53bb9a

5 years agogio: fix race condition in GDBusObjectManagerClient 31/199531/2
Beniamino Galvani [Sat, 30 Sep 2017 09:26:29 +0000 (11:26 +0200)]
gio: fix race condition in GDBusObjectManagerClient

priv->map_object_path_to_object_proxy must be protected to avoid
concurrent access by multiple threads. Move the hash table insertion
into the critical section.

https://bugzilla.gnome.org/show_bug.cgi?id=788368

Change-Id: I0fc7b7ab9edea681cc71b3c36cc0b5cebb6a1cf8

5 years agogdbus: fix use-after-free 30/199530/2
Lars Uebernickel [Thu, 28 Jan 2016 14:39:18 +0000 (15:39 +0100)]
gdbus: fix use-after-free

g_dbus_connection_call_internal() accesses the user data it passes to
g_dbus_connection_send_message_with_reply() after the call. That data
might be freed already in the case that the callback is called
immediately.

Fix this by removing the 'serial' field from the user data altogether
and fetch the serial from the message in the callback.

https://bugzilla.gnome.org/show_bug.cgi?id=748263

Change-Id: I6c6406f4782bbaeb19dad6b4ae08b3375592d3bc

5 years agokdbus: Fix memory leakage in _g_kdbus_StartServiceByName() 93/199693/1
Jonghwa Lee [Tue, 12 Feb 2019 14:32:44 +0000 (23:32 +0900)]
kdbus: Fix memory leakage in _g_kdbus_StartServiceByName()

GDBusMessage isn't freed after use.

Change-Id: I6f4b8b01dc6e8d3966ca8b8e9fde3d613635ab4d
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
(cherry picked from commit 6097bfc743d6c9d9c1005b3fe1cf029bf934dfac)

5 years agoMerge "Remove kdbus interface header" into tizen
Karol Lewandowski [Wed, 7 Nov 2018 10:28:50 +0000 (10:28 +0000)]
Merge "Remove kdbus interface header" into tizen

5 years agoRemove kdbus interface header 46/192446/1
Michal Bloch [Mon, 5 Nov 2018 12:59:09 +0000 (13:59 +0100)]
Remove kdbus interface header

kdbus.h is now provided with other linux kernel headers.

Change-Id: I48514dce66e7edf309724765c0dd72707a5a47b8
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
5 years agoCVE-2018-16429 12/192112/1 accepted/tizen/unified/20181108.172410 submit/tizen/20181030.082154
DongHun Kwak [Tue, 30 Oct 2018 07:36:07 +0000 (16:36 +0900)]
CVE-2018-16429

When formatting the error messages for markup parsing errors, the parser
was unconditionally reading a UTF-8 character from the input buffer —
but the buffer might end with a partial code sequence, resulting in
reading off the end of the buffer by up to three bytes.

Fix this and add a test case, courtesy of pdknsk.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/glib/issues/1462

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] Security Patch
[Cause & Measure]
[Checking Method]

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: If7bc858e6de684d5a571b57bd2b3d2a8c48cfc63
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
5 years agoCVE-2018-16428 11/192111/1
DongHun Kwak [Tue, 30 Oct 2018 07:32:47 +0000 (16:32 +0900)]
CVE-2018-16428

If something which looks like a closing tag is left unfinished, but
isn’t paired to an opening tag in the document, the error handling code
would do a null pointer dereference. Avoid that, at the cost of
introducing a new translatable error message.

Includes a test case, courtesy of pdknsk.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/glib/issues/1461

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] Security patch
[Cause & Measure]
[Checking Method]

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: Icd7c1bf8da55b501d9471df5ad18e7c7b0892d6b
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
5 years agokdbus: svace fix 78/186178/1 accepted/tizen/5.0/unified/20181102.024912 accepted/tizen/unified/20180813.152543 submit/tizen/20180813.021314 submit/tizen_5.0/20181101.000006
sanghyeok.oh [Wed, 8 Aug 2018 02:47:31 +0000 (11:47 +0900)]
kdbus: svace fix

Change-Id: I5618c10d9c6c2daa6cbd9c8285becf154d667c44
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agokdbus: check policy first, only then open kdbus 48/178148/2
Aleksy Barcz [Tue, 8 May 2018 09:36:16 +0000 (11:36 +0200)]
kdbus: check policy first, only then open kdbus

A process shouldn't hold an open kdbus descriptor, if according to
security policy this process has no rights to open the bus at all.

Change-Id: Icd5a0c8fd68e1a7ec0e419f77272d279cf3289f6