platform/core/system/tizen-platform-wrapper.git
7 years agoAdd static symbols in .sym file 71/108971/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 tizen_3.0_tv accepted/tizen/3.0/common/20170109.195948 accepted/tizen/3.0/ivi/20170109.073439 accepted/tizen/3.0/tv/20170110.055315 accepted/tizen/3.0/wearable/20170109.073243 submit/tizen_3.0/20170106.102334
Sunmin Lee [Fri, 6 Jan 2017 09:41:17 +0000 (18:41 +0900)]
Add static symbols in .sym file

As static library of tzplatform-config is included into
shared one, the symbols should be included sym file, too.

Change-Id: I81841e3479d89566753f82e03d45e3363267e137
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoRevert "init: Assign set value to avoid ambiguity" 67/76867/1 accepted/tizen_3.0_mobile accepted/tizen/3.0.m2/mobile/20170104.141357 accepted/tizen/3.0.m2/tv/20170104.142006 accepted/tizen/3.0.m2/wearable/20170104.142301 accepted/tizen/3.0/common/20161114.110051 accepted/tizen/3.0/ivi/20161011.065049 accepted/tizen/3.0/mobile/20161015.034316 accepted/tizen/3.0/tv/20161016.005921 accepted/tizen/3.0/wearable/20161015.084330 accepted/tizen/common/20160703.125841 accepted/tizen/common/20160725.153521 accepted/tizen/ivi/20160629.020253 accepted/tizen/ivi/20160725.064838 accepted/tizen/mobile/20160629.020309 accepted/tizen/mobile/20160725.064807 accepted/tizen/tv/20160629.020248 accepted/tizen/tv/20160725.064827 accepted/tizen/wearable/20160629.020245 accepted/tizen/wearable/20160725.064810 submit/accepted/tizen_common/20160725.045012 submit/tizen/20160627.131306 submit/tizen/20160725.045526 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006 submit/tizen_common/20160701.180000
Sunmin Lee [Mon, 27 Jun 2016 13:01:43 +0000 (06:01 -0700)]
Revert "init: Assign set value to avoid ambiguity"

This reverts commit d6fab2df73af7913ffb765dca91d05b6f283154d.

Change-Id: Ia723b3002e46ea8f97d206c060fca811a56a2369

7 years agoinit: Assign set value to avoid ambiguity 15/74615/1 accepted/tizen/common/20160627.191305 accepted/tizen/ivi/20160624.063530 accepted/tizen/mobile/20160624.063255 accepted/tizen/tv/20160624.063331 accepted/tizen/wearable/20160624.063424 submit/tizen/20160623.005438
sunm.lee [Wed, 15 Jun 2016 02:16:55 +0000 (11:16 +0900)]
init: Assign set value to avoid ambiguity

The set value of uid/euid is set by 0 only it was invalid.
To avoid access to uninitialized value of set after that,
set the set value in the valid case too.

Change-Id: Ia6add4eb382402f901314cb91f971234c3a73bfe
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
7 years agotzplatform_get: fix to support numeric user id 09/70709/2 accepted/tizen/common/20160526.145939 accepted/tizen/ivi/20160526.094720 accepted/tizen/mobile/20160526.095059 accepted/tizen/tv/20160526.094742 accepted/tizen/wearable/20160526.094908 submit/tizen/20160525.060345
sunm.lee [Fri, 20 May 2016 07:20:46 +0000 (16:20 +0900)]
tzplatform_get: fix to support numeric user id

At implementation of "user" option, the function getpwuid_r()
is used for numeric user id but the variable user is char *
orginally. So to support numeric user id, it should be changed
to integer.

Change-Id: I42d6419075d8ff9f2af0e46a2d6953172b8bf980
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
8 years agoFix build break 20/63420/1 accepted/tizen/common/20160325.135023 accepted/tizen/ivi/20160324.131654 accepted/tizen/mobile/20160324.132928 accepted/tizen/tv/20160324.132752 accepted/tizen/wearable/20160324.132748 submit/tizen/20160323.233337
Semun Lee [Wed, 23 Mar 2016 23:32:46 +0000 (08:32 +0900)]
Fix build break

Change-Id: Ib72301f6c702effde0a0100a4ae30aaf14853d77
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoUse thread-safe function 80/62280/1 submit/tizen/20160323.090119
Myungki Lee [Tue, 15 Mar 2016 07:35:59 +0000 (16:35 +0900)]
Use thread-safe function

Change-Id: I7e2c45a0aee9d0933b0997d5db850a1192d655c1
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
9 years agoRevert "add tzplatform_has_users_group() api" 58/36858/1 accepted/tizen_3.0.2015.q1_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/3.0.2015.q1/common/20150317.132305 accepted/tizen/common/20150316.134733 accepted/tizen/ivi/20160218.023336 accepted/tizen/mobile/20150326.005118 accepted/tizen/tv/20150324.014453 accepted/tizen/wearable/20150323.005713 submit/tizen_3.0.2015.q1_common/20150316.112029 submit/tizen_common/20150316.111955 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000002 submit/tizen_mobile/20150325.000000 submit/tizen_tv/20150320.000001 submit/tizen_wearable/20150320.000000 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
Stephane Desneux [Mon, 16 Mar 2015 11:13:51 +0000 (12:13 +0100)]
Revert "add tzplatform_has_users_group() api"

This reverts commit 7cc9610e72221a634efa565162370c60c828254b.

It was a temporary solution. should be superseeded by cynara.

Change-Id: If93304d042b087dea02e0129f1f9e82372330834

9 years agoMerge "add tzplatform_has_users_group() api" into tizen submit/tizen_3.0.2015.q1_common/20150316.105130 submit/tizen_common/20150316.103635 submit/tizen_common/20150316.105034
Stéphane Desneux (sdx) [Mon, 16 Mar 2015 10:39:03 +0000 (03:39 -0700)]
Merge "add tzplatform_has_users_group() api" into tizen

9 years agoFix a documentation about group ID get fuction 87/35987/3
Suchang Woo [Fri, 27 Feb 2015 07:22:21 +0000 (16:22 +0900)]
Fix a documentation about group ID get fuction

tzplatform_getgid() and tzplatform_context_getgid() returns the group ID of
the given user name not the given group name. The parameter 'id' should
match a user within the enumeration.

Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Change-Id: I2305e54037581671f87bd8d869d1da7bdea8dc94

9 years agoadd tzplatform_has_users_group() api 29/33429/2
Corentin Lecouvey [Fri, 9 Jan 2015 11:12:40 +0000 (12:12 +0100)]
add tzplatform_has_users_group() api

This new api aims to know if a user is a regular one.
In other words, it allows to know if a user belongs to
the 'users' group.

Change-Id: I204e5e80fd9e6d6c2c2dad2402d9edbbefb9e594
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoFix a documentation typo error 82/30582/1
José Bollo [Thu, 20 Nov 2014 15:41:32 +0000 (16:41 +0100)]
Fix a documentation typo error

Change-Id: I0fc8475822b53c924b498685c9eee1f667d07185
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoRenaming function 'tzplatform_isadmin' 77/28177/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.m14.3_ivi tizen_3.0_ivi accepted/tizen/common/20141006.142658 accepted/tizen/ivi/20141010.005651 accepted/tizen/mobile/20141023.021859 submit/tizen_common/20141006.073826 submit/tizen_ivi/20141007.333333 submit/tizen_ivi/20141009.999999 submit/tizen_mobile/20141023.020055 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
José Bollo [Mon, 29 Sep 2014 14:54:19 +0000 (16:54 +0200)]
Renaming function 'tzplatform_isadmin'

The function 'tzplatform_isadmin' is renamed
to 'tzplatform_has_system_group'

Change-Id: Iaf3fd001f5ae144c25d06e6bdc793c0b0b568367
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoFix building and minor improvements 75/28175/1
José Bollo [Mon, 29 Sep 2014 14:22:53 +0000 (16:22 +0200)]
Fix building and minor improvements

Make the current project building and improves the
name of the function to have less probability of
collision with other names.

Change-Id: I99d6079250404991a7022026b50262932aa7c5b1
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoAdd isadmin feature 36/28036/1
Stephen Clymans [Wed, 24 Sep 2014 13:52:13 +0000 (15:52 +0200)]
Add isadmin feature

Add a function to know if a given uid is in the "system" group or not.
Is based on the value TZ_SYS_ADMIN_GROUP of tzplatform_config

Change-Id: If3a6647dbc2315ca1c12baf51ff7e876e75f08d2
Signed-off-by: Stephen Clymans <stephen.clymans@open.eurogiciel.org>
9 years agoAdding signature checking 02/27902/2 accepted/tizen/common/20140924.112708 accepted/tizen/ivi/20140927.095037 submit/tizen_common/20140923.154519 submit/tizen_common/20140924.073135 submit/tizen_ivi/20140926.000000
José Bollo [Thu, 18 Sep 2014 14:41:16 +0000 (16:41 +0200)]
Adding signature checking

The couple tizen-platform-wrapper/tizen-platform-config is
intended to be a foundation of what is the tizen configuration.

As such, each change of the set of keys SHOULD implies a full
rebuild of tizen. It is what normally happens via the set
of build dependencies. But some developper encountered problems
because they were taking part of the system, having different
versions of configuration. Especially, it happened was installing
a fresh rpm built with GBS on an old image. This problem is reported
in the following file:

Bug-Tizen: TC-1626

This commit modify the behaviour of the generated library but
doesn't modify its API. The new principle is to add a signup that
it linked to the client and checked by the shared library. If the
client's signup misfits library's one, a critical error is printed
to using syslog and the program is aborted.

Also, the modularity of the source is improved.

Change-Id: I5c2e5a990ebf17f893b669c272fda99d0d0b2de1
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoFix AUTHORS 55/26755/1
Stephane Desneux [Thu, 28 Aug 2014 12:09:52 +0000 (14:09 +0200)]
Fix AUTHORS

Change-Id: If928f5782615091cc85c6d2f714acc260d70dc9f
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
9 years agoAdding context and user switching 58/24658/1 accepted/tizen/common/20140724.001804 submit/tizen_common/20140723.151203 submit/tizen_ivi/20140729.000000 submit/tizen_ivi/20140729.000001 submit/tizen_ivi/20140730.000000
José Bollo [Thu, 17 Jul 2014 10:41:46 +0000 (12:41 +0200)]
Adding context and user switching

The main evolution is to able to switch the
user. It has the side effect to imply a context switch
that would make the code safe in multi-threaded context.

Added option --user to tzplatform_get.
This will allow to display data for a given user.

Change-Id: Ifeabfbce3821fda04707e6fc6bfa5a571e3c2ceb
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoCreate a tizen-platform-wrapper.pc file. 14/21014/1 tizen_3.0.m14.2_ivi submit/tizen_common/20140610.120852 submit/tizen_ivi/20140618.000000 submit/tizen_ivi/20140618.000001 submit/tizen_ivi/20140619.000000 submit/tizen_ivi/20140622.000000 submit/tizen_ivi/20140623.000000 submit/tizen_ivi/20140623.000001 submit/tizen_ivi/20140624.064036 submit/tizen_ivi/20140626.125712 submit/tizen_ivi/20140626.130032 submit/tizen_ivi/20140626.144348 tizen_3.0.m14.2_ivi_release
Ronan Le Martret [Wed, 14 May 2014 12:05:33 +0000 (14:05 +0200)]
Create a tizen-platform-wrapper.pc file.

Change-Id: Iff98b2ad636924abf4a656e54adab830f9f374c7
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
9 years agoClean spec file 71/20971/1
Kévin THIERRY [Wed, 14 May 2014 09:04:06 +0000 (11:04 +0200)]
Clean spec file

* Use %reconfigure instead of %autogen
* Replace tabs with spaces

Change-Id: If6fbfb6b56c3766f2d3bfe11df20d71a4f891c82
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
10 years agoInstanciation of strings returned by mkpath... 93/16693/1 accepted/tizen/generic accepted/tizen/ivi accepted/tizen_generic accepted/tizen_ivi_panda accepted/tizen_ivi_release tizen_ivi_release accepted/tizen/generic/20140221.153759 accepted/tizen/generic/20140312.094848 accepted/tizen/ivi/20140221.200115 accepted/tizen/ivi/panda/20140312.112152 accepted/tizen/ivi/release/20140312.105532 accepted/tizen/mobile/20140227.071800 submit/tizen/20140221.153548 submit/tizen/20140312.070646 submit/tizen_ivi_release/20140312.071122
José Bollo [Fri, 21 Feb 2014 14:57:26 +0000 (15:57 +0100)]
Instanciation of strings returned by mkpath...

To facilitate the life of programmers, the functions
tzplatform_mkstr, tzplatform_mkpath, tzplatform_mkpath3,
tzplatform_mkpath4 now return an unique allocated string
that MUST NOT be freed.

Change-Id: I0981fdac301ea470d92764e7d927f60f39a75089
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
10 years agoFix build issue when uid_t type is not use 68/13968/1 accepted/tizen/mobile accepted/tizen/generic/20140106.140134 accepted/tizen/ivi/20131220.223235 accepted/tizen/mobile/20131219.213105 submit/tizen/20131219.152636
Jean-Benoit MARTIN [Thu, 19 Dec 2013 09:30:57 +0000 (10:30 +0100)]
Fix build issue when uid_t type is not use

Change-Id: Ia0b8ad9f29185a6fa925cc7b16abe7e2139209b2
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
10 years agoadding function 'tzplatform_mkpath4' 55/13655/1 accepted/tizen/20131212.180725 accepted/tizen/mobile/20131216.220244 submit/tizen/20131212.080418
José Bollo [Wed, 11 Dec 2013 14:43:18 +0000 (15:43 +0100)]
adding function 'tzplatform_mkpath4'

Change-Id: Ifcc1c5e52e22e17aebed74d01ea8fc191f8bebd5
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
10 years agoversion 1.0 accepted/tizen/20131209.172540 accepted/tizen/20131210.210012 submit/tizen/20131209.095901
Stephane Desneux [Mon, 9 Dec 2013 09:55:25 +0000 (10:55 +0100)]
version 1.0

Change-Id: Ie8f0c6fd9c81c0f4b5fc0f04a6c8276954f45cbd
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
10 years agoinitial empty repo
Stephane Desneux [Wed, 4 Dec 2013 10:18:38 +0000 (11:18 +0100)]
initial empty repo

Change-Id: I8a3f12f81672225a557178aac02125fdd81416fd
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>