platform/core/system/tizen-platform-wrapper.git
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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>