platform/upstream/gumd.git
7 years agoupgrade_script: make .pwd.lock symlink for RO support 39/133939/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20170616.065310 accepted/tizen/3.0/ivi/20170615.081135 accepted/tizen/3.0/mobile/20170615.081122 accepted/tizen/3.0/tv/20170615.081127 accepted/tizen/3.0/wearable/20170615.081131 submit/tizen_3.0/20170615.044726
Yunmi Ha [Wed, 14 Jun 2017 05:05:25 +0000 (14:05 +0900)]
upgrade_script: make .pwd.lock symlink for RO support

Change-Id: I6d366d31dd8b2ce9c68d2939b83e83710a45294e
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoInstall license file to /usr/share/licenses 66/121166/1 accepted/tizen/3.0/common/20170329.151040 accepted/tizen/3.0/ivi/20170329.021409 accepted/tizen/3.0/mobile/20170329.020800 accepted/tizen/3.0/tv/20170329.021030 accepted/tizen/3.0/wearable/20170329.021217 submit/tizen_3.0/20170328.085644
Yunmi Ha [Mon, 27 Mar 2017 07:49:13 +0000 (16:49 +0900)]
Install license file to /usr/share/licenses

Need to install license file per each rpm package.
Add this logic for gum-utils/ libgum package.

Change-Id: I5544b115fb9494d97e048122061463be9a6ddca0
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoInstall license file to /usr/share/license 31/119831/3 accepted/tizen/3.0/common/20170322.133119 accepted/tizen/3.0/ivi/20170322.082712 accepted/tizen/3.0/mobile/20170322.082640 accepted/tizen/3.0/tv/20170322.082701 accepted/tizen/3.0/wearable/20170322.082705 submit/tizen_3.0/20170321.072459
Yunmi Ha [Mon, 20 Mar 2017 08:12:19 +0000 (17:12 +0900)]
Install license file to /usr/share/license

Need to install license file to /usr/share/license.
So add install logic and add it to rpm package.

Change-Id: Ie8ec4a99951cb2dc0364a95ac00494facb0c0c09
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoMerge "Fix logic for set Home directory's smack label" into tizen_3.0 tizen_3.0_tv accepted/tizen/3.0/common/20170109.083949 accepted/tizen/3.0/ivi/20170106.095018 accepted/tizen/3.0/mobile/20170106.094831 accepted/tizen/3.0/tv/20170106.094920 accepted/tizen/3.0/wearable/20170106.094948 submit/tizen_3.0/20170105.051635
Yunmi Ha [Mon, 2 Jan 2017 05:50:42 +0000 (21:50 -0800)]
Merge "Fix logic for set Home directory's smack label" into tizen_3.0

7 years agoSupport RO rootfs for all profiles 46/107946/1
Yunmi Ha [Mon, 2 Jan 2017 04:12:32 +0000 (13:12 +0900)]
Support RO rootfs for all profiles

Before this patch, RO rootfs was supported only for TV profile.
So remove the profile checking logic, and support RO mount for all profiles.

Change-Id: Id802fc8843ea8e346c6dc85910705adfad0cff1a
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoFix logic for set Home directory's smack label 56/107056/3
Yunmi Ha [Mon, 26 Dec 2016 09:09:28 +0000 (18:09 +0900)]
Fix logic for set Home directory's smack label

Home directory's smack should be different with skel folder.
After copy file attributes from skel folder,
set home directory's own smack label.
(This can be set using gumd.config)

Change-Id: Ie9532f3e011968d32a05947eeb4d3ab4987ec75f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoChange /etc/.pwd.lock file's path for RO mount 95/107495/4
Yunmi Ha [Wed, 28 Dec 2016 08:13:53 +0000 (17:13 +0900)]
Change /etc/.pwd.lock file's path for RO mount

If mount /etc directory as readonly, lckpwdf API always return fail.
(Because lckpwdf API try to access /etc/.pwd.lock file as writable permition)
So almost gumd API return fail also.
For this, gumd makes /opt/etc/.pwd.lock and make symbolic link in /etc.
(Now..this is only for TV profile.)

Change-Id: I19f5f9fba0512bcc24c7fecde0bf4a8541df5d28
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoUpgrade: exclude upgrade script directory 42/104342/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.142758 accepted/tizen/3.0.m2/tv/20170104.143343 accepted/tizen/3.0.m2/wearable/20170104.143734 accepted/tizen/3.0/common/20161215.165359 accepted/tizen/3.0/ivi/20161215.050744 accepted/tizen/3.0/mobile/20161215.050703 accepted/tizen/3.0/tv/20161215.050723 accepted/tizen/3.0/wearable/20161215.050734 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0/20161213.071738 submit/tizen_3.0/20161215.002330
Sunmin Lee [Tue, 13 Dec 2016 06:19:50 +0000 (15:19 +0900)]
Upgrade: exclude upgrade script directory

The upgrade script directory (/usr/share/upgrade/scripts) is
part of filesystem, thus it doesn't need to be in this package.

Change-Id: Ic321fdb2112274421ae151681ca674acd50b9f23
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoAdding the priority numner to the filename of gumd_upgrade.sh 26/101826/1 accepted/tizen/3.0/common/20161205.091743 accepted/tizen/3.0/ivi/20161204.235337 accepted/tizen/3.0/mobile/20161204.235243 accepted/tizen/3.0/tv/20161204.235301 accepted/tizen/3.0/wearable/20161204.235319 submit/tizen_3.0/20161202.080659 submit/tizen_3.0/20161213.042244
wchang kim [Fri, 2 Dec 2016 07:57:37 +0000 (16:57 +0900)]
Adding the priority numner to the filename of gumd_upgrade.sh

Change-Id: Idaab36de2eecb5fe2e6bc8e1e29ea4bfeea051e6
Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
7 years agoFix memory leak 99/101499/1 accepted/tizen/3.0/common/20161209.160650 accepted/tizen/3.0/ivi/20161209.102240 accepted/tizen/3.0/mobile/20161209.102145 accepted/tizen/3.0/tv/20161209.102206 accepted/tizen/3.0/wearable/20161209.102220 submit/tizen_3.0/20161208.060810
Yunmi Ha [Thu, 1 Dec 2016 09:12:51 +0000 (18:12 +0900)]
Fix memory leak

Dynamic memory referenced by 'key' was allocated.
But it was not freed when error was occured at other side.

Change-Id: I18dde46af50f94c5113d102e445711c0083946c0
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agomerge 99588 22/99622/1 accepted/tizen/3.0/common/20161124.182011 accepted/tizen/3.0/ivi/20161124.030614 accepted/tizen/3.0/mobile/20161124.030523 accepted/tizen/3.0/tv/20161124.030533 accepted/tizen/3.0/wearable/20161124.030555 submit/remotes/origin/tizen_3.0/20161123.113008 submit/tizen_3.0/20161123.121947
lokilee73 [Wed, 23 Nov 2016 11:27:27 +0000 (20:27 +0900)]
merge 99588

Change-Id: I4008f170f67533525a6e1df593dd7db05468f554
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
8 years agoRemove "GPL-3.0+" from spec file. 40/88940/1 accepted/tizen/3.0/common/20161114.110815 accepted/tizen/3.0/ivi/20161011.044108 accepted/tizen/3.0/mobile/20161015.033136 accepted/tizen/3.0/tv/20161016.004637 accepted/tizen/3.0/wearable/20161015.082800 accepted/tizen/common/20160922.120517 accepted/tizen/ivi/20160922.082424 accepted/tizen/mobile/20160922.082324 accepted/tizen/tv/20160922.082348 accepted/tizen/wearable/20160922.082405 submit/tizen/20160922.012006 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000002 submit/tizen_3.0_mobile/20161015.000002 submit/tizen_3.0_tv/20161015.000002 submit/tizen_3.0_wearable/20161015.000002
Yunmi Ha [Wed, 21 Sep 2016 06:58:23 +0000 (15:58 +0900)]
Remove "GPL-3.0+" from spec file.

Only need to be applied GPL-3.0 license for autoconf file. (m4)

Change-Id: Ia3f14480c15e7f31adb052b096a7d4ec072a59e0
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoAdd gumd_upgrade.sh for 3.0 migration. 63/87863/2 accepted/tizen/common/20160912.181145 accepted/tizen/ivi/20160912.215224 accepted/tizen/mobile/20160912.215134 accepted/tizen/tv/20160912.215150 accepted/tizen/wearable/20160912.215207 submit/tizen/20160912.022310
Yunmi Ha [Mon, 12 Sep 2016 01:13:26 +0000 (10:13 +0900)]
Add gumd_upgrade.sh for 3.0 migration.

gumd_upgrade.sh script will be excuted when flatform upgrade to 3.0 from 2.4.
This script only create default user's info file.

Change-Id: Ia08de528e3c90e4abe5a285d604725882852321b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoUpdate: remove type and serverdir from dbus config file. 10/87410/1 accepted/tizen/common/20160908.134657 accepted/tizen/ivi/20160908.123111 accepted/tizen/mobile/20160908.123037 accepted/tizen/tv/20160908.123043 accepted/tizen/wearable/20160908.123048 submit/tizen/20160908.054325
Yunmi Ha [Thu, 8 Sep 2016 01:28:29 +0000 (10:28 +0900)]
Update: remove type and serverdir from dbus config file.

Dbus determines the type and serverdir base on location of config file.

Change-Id: I52ec5ff9d240cba41abbb272f33ff30d565f773c
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoUpdate: Not install gumd.service file with TV profile. 96/86396/1 accepted/tizen/common/20160901.143438 accepted/tizen/ivi/20160901.103832 accepted/tizen/mobile/20160901.103741 accepted/tizen/tv/20160901.103757 accepted/tizen/wearable/20160901.103816 submit/tizen/20160901.050243
Yunmi Ha [Thu, 1 Sep 2016 03:39:59 +0000 (12:39 +0900)]
Update: Not install gumd.service file with TV profile.

gumd.service file istallation was failed cause of security policy.
So when build TV profile, package doesn't install gumd.service.
And gumd will works as dbus service.

Change-Id: I35bcc43f3c9f8e93515bb072b4e020d348db6d2b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoUpdate: add checking home directory logic 19/85219/3 accepted/tizen/common/20160829.140225 accepted/tizen/ivi/20160829.232802 accepted/tizen/mobile/20160829.232708 accepted/tizen/tv/20160829.232726 accepted/tizen/wearable/20160829.232743 submit/tizen/20160829.060602
Yunmi Ha [Wed, 24 Aug 2016 07:49:39 +0000 (16:49 +0900)]
Update: add checking home directory logic

When update user data, check home directory.
If home directory is not exists, create home directory
and run user add post scripts.
(This is for tizen 3.0 migration)

Change-Id: If609186d8a0c154eac05b38a01903ad08e78dce6
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoChange chown to lchown 62/81862/1 accepted/tizen/common/20160817.133235 accepted/tizen/common/20160818.144510 accepted/tizen/ivi/20160819.063350 accepted/tizen/mobile/20160819.063214 accepted/tizen/tv/20160819.063333 accepted/tizen/wearable/20160819.063314 submit/tizen/20160817.084623 submit/tizen/20160818.060816
Yunmi Ha [Fri, 29 Jul 2016 01:14:41 +0000 (10:14 +0900)]
Change chown to lchown

For dereferencing symbolic link when copy home(skel) directory,
change the api.

Change-Id: Ibc67cab8dc3ca91afdd0d27f631e206ce961c9c6
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoSet SmackProcessLabel in service file according to the profile 85/80885/1 accepted/tizen/common/20160721.175825 accepted/tizen/ivi/20160721.090752 accepted/tizen/mobile/20160721.090500 accepted/tizen/tv/20160721.091319 accepted/tizen/wearable/20160721.091025 submit/tizen/20160721.003054
Yunjin Lee [Wed, 20 Jul 2016 12:31:32 +0000 (21:31 +0900)]
Set SmackProcessLabel in service file according to the profile

Change-Id: I2228ad4a335ee9b06f0a2f088cec0bc6afaf0a9a
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoChange daemon timeout to 30sec 88/80488/1 accepted/tizen/common/20160718.160127 accepted/tizen/ivi/20160719.015832 accepted/tizen/mobile/20160719.015846 accepted/tizen/tv/20160719.015823 accepted/tizen/wearable/20160719.015839 submit/tizen/20160718.102452
Yunmi Ha [Mon, 18 Jul 2016 08:50:56 +0000 (17:50 +0900)]
Change daemon timeout to 30sec

There are several timing issue was occured caused by short daemon timeout.
So change timeout : 7sec to 30sec.

Change-Id: I5db74a3e51b6536d6ecf479724c7faaba3556720
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoAppy ASLR 14/78814/1 accepted/tizen/common/20160707.171737 accepted/tizen/ivi/20160707.043522 accepted/tizen/mobile/20160707.043640 accepted/tizen/tv/20160707.043454 accepted/tizen/wearable/20160707.043543 submit/tizen/20160707.025710
Yunmi Ha [Thu, 7 Jul 2016 02:48:00 +0000 (11:48 +0900)]
Appy ASLR

For security, apply ASLR

Change-Id: I4a71027eca245126616c388280f3c18d2168f64f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoMerge "Fix bug - add daemon timeout" into tizen accepted/tizen/common/20160706.142835 accepted/tizen/ivi/20160706.132931 accepted/tizen/mobile/20160706.132543 accepted/tizen/tv/20160706.132533 accepted/tizen/wearable/20160706.132612 submit/tizen/20160706.112559
Yunmi Ha [Tue, 5 Jul 2016 23:30:35 +0000 (16:30 -0700)]
Merge "Fix bug - add daemon timeout" into tizen

8 years agoFix bug - add daemon timeout 66/78366/1 accepted/tizen/ivi/20160706.014634 accepted/tizen/mobile/20160706.014534 accepted/tizen/tv/20160706.014554 accepted/tizen/wearable/20160706.014612 submit/tizen/20160705.233136
Yunmi Ha [Tue, 5 Jul 2016 08:10:03 +0000 (17:10 +0900)]
Fix bug - add daemon timeout

Now, gumd daemon is not ended. (daemon timeout does not work.)
Add release reference logic for dbus adapter, and set timeout to 7 sec.

Change-Id: I43ae1605a2cfabce008beec6ad93bd24345e41ea
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoRemove smack capability 84/78284/4 accepted/tizen/common/20160705.170657 accepted/tizen/ivi/20160705.101924 accepted/tizen/mobile/20160705.102008 accepted/tizen/tv/20160705.101919 accepted/tizen/wearable/20160705.101945 submit/tizen/20160705.083235
Yunmi Ha [Tue, 5 Jul 2016 04:40:16 +0000 (13:40 +0900)]
Remove smack capability

with wearable profile, CAP_MAC_ADMIN and CAP_MAC_OVERRIDE capabilities are removed.
(can't use useradd/del/modify function without offline option.)
with other profile, only CAP_MAC_OVERRIDE capability is removed.

For this, gumd launcher was changed to systemd.

Change-Id: Ic95fceed41afc41e37e93606c3abf830536ac7d6
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoAdd security usertype 84/77984/2 accepted/tizen/common/20160704.150018 accepted/tizen/ivi/20160704.091252 accepted/tizen/mobile/20160704.091301 accepted/tizen/tv/20160704.091223 accepted/tizen/wearable/20160704.091236 submit/tizen/20160704.052945
Yunmi Ha [Sun, 3 Jul 2016 23:53:19 +0000 (08:53 +0900)]
Add security usertype

For security-container user, add new usertype.
This usertype has indivisual uid range, and can't listup to any normal user.

Change-Id: Ib48aa4715439639bb879732d943f2444fb1362e1
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoChange user default home directory 90/77290/1 accepted/tizen/common/20160629.223354 accepted/tizen/ivi/20160630.003917 accepted/tizen/mobile/20160630.003934 accepted/tizen/tv/20160630.003848 accepted/tizen/wearable/20160630.003937 submit/tizen/20160629.095831
Yunmi Ha [Wed, 29 Jun 2016 08:10:06 +0000 (17:10 +0900)]
Change user default home directory

before: user default directory = /home
After: user default directory = $TZ_SYS_HOME$

Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Change-Id: I1e4900b8a97544f3eff12a71346a9fee21ffe304

8 years agoFix static-analyze issues (adding validation code) 15/74915/1 accepted/tizen/common/20160617.121517 accepted/tizen/ivi/20160617.083912 accepted/tizen/mobile/20160617.083858 accepted/tizen/tv/20160617.082400 accepted/tizen/wearable/20160617.083936 submit/tizen/20160617.005846
Yunmi Ha [Thu, 16 Jun 2016 05:22:29 +0000 (14:22 +0900)]
Fix static-analyze issues (adding validation code)

gumd-dbus-server-p2p.c: fix bug - compare operation was incorrect.
gumd-dbus-server-msg-bus.c: Add null check logic.
gum-crypt.c: Add initialize code.

Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Change-Id: I5aec55c14b9312c42451f94ed996435af5bedc52

8 years agoFix --offline option bug - missing condition check 49/71049/1 accepted/tizen/common/20160531.142002 accepted/tizen/common/20160602.140054 accepted/tizen/ivi/20160602.022812 accepted/tizen/ivi/20160602.022855 accepted/tizen/mobile/20160602.022953 accepted/tizen/mobile/20160602.023027 accepted/tizen/tv/20160602.022509 accepted/tizen/tv/20160602.022557 accepted/tizen/wearable/20160602.022703 accepted/tizen/wearable/20160602.022743 submit/tizen/20160531.021205 submit/tizen/20160531.024853
Yunmi Ha [Tue, 24 May 2016 01:48:56 +0000 (10:48 +0900)]
Fix --offline option bug - missing condition check

There is missed 'offline' option checking when create user service.
If 'offline' mode was given, should be processed without any dbus connection.

Change-Id: Ibd36985cb5fe444a4e82c93e8b565ef64bdddb89
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
8 years agoAdd license info 37/69837/1 accepted/tizen/common/20160517.174158 accepted/tizen/ivi/20160517.083603 accepted/tizen/mobile/20160517.083648 accepted/tizen/tv/20160517.083503 accepted/tizen/wearable/20160517.083548 submit/tizen/20160517.044755
Yunmi Ha [Tue, 17 May 2016 04:22:55 +0000 (13:22 +0900)]
Add license info

GPL-3.0-with-autoconf-exception
GPL-3.0+

Change-Id: I3710b745ce2368e7c0607e1f555f6148ac3c4aae

8 years agoFix svace issues for Tizen_3.0_TV_Prebeta 91/63491/2 accepted/tizen/common/20160325.135558 accepted/tizen/ivi/20160325.134147 accepted/tizen/mobile/20160325.133920 accepted/tizen/tv/20160325.134049 accepted/tizen/wearable/20160325.134106 submit/tizen/20160325.024841
Yunmi Ha [Thu, 24 Mar 2016 08:16:25 +0000 (17:16 +0900)]
Fix svace issues for Tizen_3.0_TV_Prebeta

replace thread unsafe function- strerror
and change function call order

Change-Id: I8d49b3df607788110538553af57c186df04ed52c

8 years agoRemove a profile specific configuration 20/59720/1 accepted/tizen/ivi/20160218.083958 accepted/tizen/mobile/20160218.055243 accepted/tizen/tv/20160218.055318 accepted/tizen/wearable/20160218.055351 submit/tizen/20160218.010647 submit/tizen_common/20160218.142243
Suchang Woo [Thu, 18 Feb 2016 00:38:26 +0000 (09:38 +0900)]
Remove a profile specific configuration

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

8 years agoRemove audio group from normal users 31/59231/1
Lukasz Kostyra [Thu, 11 Feb 2016 13:42:28 +0000 (14:42 +0100)]
Remove audio group from normal users

Assigning normal users to group audio allows them to modify sound
related configuration using ALSA library, which bypasses privilege
checking. Removal of audio supplementary group fixes the issue.

Change-Id: I8f418480bca0a5d90e25842bbe9d94dcbe148f7c
Signed-off-by: Lukasz Kostyra <l.kostyra@samsung.com>
9 years agoFix privilege name from usermanagement to internal/usermanagement 39/48639/1 accepted/tizen/ivi/20160218.024745 accepted/tizen/mobile/20150925.012346 accepted/tizen/tv/20150925.012359 accepted/tizen/wearable/20150925.012423 submit/tizen/20150924.051224 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000005 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
Youmin Ha [Thu, 24 Sep 2015 05:27:25 +0000 (14:27 +0900)]
Fix privilege name from usermanagement to internal/usermanagement

According to the commit https://review.tizen.org/gerrit/#/c/48637, the
privilege is changed to
http://tizen.org/privilege/internal/usermanagement

Change-Id: I7e709da6516b5c6256f2d5d247f114a979563e83
Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
9 years agoChange dbus service polivcy 86/48086/2
Hurnjoo Lee [Mon, 14 Sep 2015 07:11:31 +0000 (16:11 +0900)]
Change dbus service polivcy

* remove http://tizen.org/privilege/usermanagement.get privilege. This patch will allow all users to use get apis.
* remove .temp suffix of privilege.

Change-Id: Ia66e3cf98364332a6db470eaeafe64ebcb01be2b
Signed-off-by: Hurnjoo Lee <hurnjoo.lee@samsung.com>
9 years agoAdd ".temp" suffix to non-public privileges 35/39635/2 sandbox/scwoo/devel tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/common/20150522.093732 accepted/tizen/mobile/20150523.035326 accepted/tizen/tv/20150523.034836 accepted/tizen/wearable/20150523.035105 submit/tizen/20150522.051011 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
Suchang Woo [Wed, 20 May 2015 05:29:28 +0000 (14:29 +0900)]
Add ".temp" suffix to non-public privileges

The following privileges are not public ones.

- http://tizen.org/privilege/usermanagement.set
- http://tizen.org/privilege/usermanagement.get

These privileges will be changed. To separate non-public and public
privileges, ".temp" suffix is added.

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

9 years agoFix gum-utils segfault when getting user list without usertypes 38/39638/1
Suchang Woo [Wed, 20 May 2015 07:54:30 +0000 (16:54 +0900)]
Fix gum-utils segfault when getting user list without usertypes

If usertypes argument is not specified, NULL is passed to g_strsplit().
It makes a segmentation fault.

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

9 years agoAdd default admin groups 34/39434/1 accepted/tizen/common/20150518.072046 accepted/tizen/mobile/20150516.070549 accepted/tizen/tv/20150516.065656 accepted/tizen/wearable/20150516.070301 submit/tizen/20150515.092416
Suchang Woo [Fri, 15 May 2015 05:26:45 +0000 (14:26 +0900)]
Add default admin groups

Admin user should be added to the groups that the normal user is added to

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

9 years agoApply D-bus service policy 58/38858/4 accepted/tizen/common/20150511.125623 accepted/tizen/mobile/20150508.125758 accepted/tizen/tv/20150508.123517 accepted/tizen/wearable/20150508.124819 submit/tizen/20150508.100739
Hurnjoo Lee [Wed, 29 Apr 2015 12:03:59 +0000 (21:03 +0900)]
Apply D-bus service policy

* Apply D-bus service policy.
* Add privilege checks.

Change-Id: I4603e710e8aaf863bb51f0a42487fc31386080c6
Signed-off-by: Hurnjoo Lee <hurnjoo.lee@samsung.com>
9 years agoFix the bug that create abnormal user 22/38622/1 accepted/tizen/common/20150424.100315 accepted/tizen/mobile/20150424.064002 accepted/tizen/tv/20150424.063125 accepted/tizen/wearable/20150424.063714 submit/tizen/20150424.050028
Hurnjoo Lee [Thu, 23 Apr 2015 04:28:06 +0000 (13:28 +0900)]
Fix the bug that create abnormal user

In case there was wrong group in DEFAULT_USR_GROUP, user home directory was not created.
This patch will prevent abnormal termination of creating user by wrong default groups.

Change-Id: I74176fbce066ec160d518b228a2f7bd019de4d52
Signed-off-by: Hurnjoo Lee <hurnjoo.lee@samsung.com>
9 years agodaemon: remove unknown user when getting normal user list 45/38545/1
Minkyu Kang [Mon, 16 Feb 2015 06:00:01 +0000 (15:00 +0900)]
daemon: remove unknown user when getting normal user list

If user does not have any types then gumd will give normal user type forced
So there were included so many noise users
This patch will collect absolute normal type users

Change-Id: Id178dd9591eeef68948f946b46c16aedc96153e9
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
9 years agoAdds support the icon property 00/38400/1
Minkyu Kang [Mon, 16 Feb 2015 05:58:07 +0000 (14:58 +0900)]
Adds support the icon property

The Icon property will be saved at /var/lib/gumd/user/[uid] file
This file follow .ini file format

[User]
Icon=/usr/share/icons/user.png

So if we need to add new properties, this file can be expanded easily

Change-Id: I17f8ce3eb5f8a0e834678c3cca74a2a69cd87a97
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
9 years agoMerge branch 'upstream' into tizen accepted/tizen_3.0.2014.q4_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common accepted/tizen/3.0.2014.q4/common/20150224.133849 accepted/tizen/common/20150218.122435 accepted/tizen/mobile/20150218.124957 accepted/tizen/tv/20150218.124818 accepted/tizen/wearable/20150218.124910 submit/tizen/20150217.154037 submit/tizen_3.0.2014.q4_common/20150224.132828
Imran Zaman [Tue, 17 Feb 2015 14:37:22 +0000 (16:37 +0200)]
Merge branch 'upstream' into tizen

Change-Id: I1d16ba303f254641f6f4a6657440c7aea5e21714
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoMerge branch 'devel' into upstream upstream upstream/1.0.8
Imran Zaman [Tue, 17 Feb 2015 13:00:53 +0000 (15:00 +0200)]
Merge branch 'devel' into upstream

Change-Id: Id66c04b2dbf7712805df5bdb8e19f36ef20edc28

9 years agotizen: release 1.0.8 submit/tizen/20150217.133222
Imran Zaman [Tue, 17 Feb 2015 13:29:12 +0000 (15:29 +0200)]
tizen: release 1.0.8

Change-Id: Ib5c30accb8aad2e825a29b87411cc7473f4af8bf
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoMerge branch 'devel' into upstream
Imran Zaman [Tue, 17 Feb 2015 13:00:53 +0000 (15:00 +0200)]
Merge branch 'devel' into upstream

Change-Id: Id66c04b2dbf7712805df5bdb8e19f36ef20edc28

9 years agoRenamed dbus interface with prefix org.O1
Imran Zaman [Tue, 17 Feb 2015 12:30:25 +0000 (14:30 +0200)]
Renamed dbus interface with prefix org.O1

Change-Id: Ie9b82ef0604a39f6421f0a341c2e751345576cae

9 years agoSetting explicit values for Tizen:Common
Imran Zaman [Tue, 10 Feb 2015 13:44:15 +0000 (15:44 +0200)]
Setting explicit values for Tizen:Common

This values are best suited for the current state of Tizen:Common.

Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoFixed copying of extended attributes from skel folder
Imran Zaman [Mon, 9 Feb 2015 15:19:49 +0000 (17:19 +0200)]
Fixed copying of extended attributes from skel folder

Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoFixed copying of extended attributes from skel folder upstream/1.0.7
Imran Zaman [Mon, 9 Feb 2015 15:46:03 +0000 (17:46 +0200)]
Fixed copying of extended attributes from skel folder

Change-Id: I0fe8012baab1ce593820043323ec4042dc32dc28
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoFixed gum-utils documentation upstream/1.0.6
Imran Zaman [Thu, 5 Feb 2015 17:45:43 +0000 (19:45 +0200)]
Fixed gum-utils documentation

Change-Id: Ibd36e8d518ce3f5f547d1caadbb1397c6eff4629
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoAdding default groups for Tizen:Common
José Bollo [Thu, 5 Feb 2015 15:27:13 +0000 (16:27 +0100)]
Adding default groups for Tizen:Common

Change-Id: I5930b84c0f47a5ebdae02d50d5ef259061e79901
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoMerge pull request #23 from 01org/devel
jlaako [Thu, 29 Jan 2015 13:08:27 +0000 (15:08 +0200)]
Merge pull request #23 from 01org/devel

Added APIs for fetching users based on the type

9 years agoAdded APIs for fetching users based on the user type upstream/1.0.5
Imran Zaman [Wed, 28 Jan 2015 12:11:16 +0000 (14:11 +0200)]
Added APIs for fetching users based on the user type

Change-Id: Ica95501ea531f68a0b228709b807078f580836e6
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoConvert types to array of strings for fetching user list
Imran Zaman [Wed, 28 Jan 2015 17:22:25 +0000 (19:22 +0200)]
Convert types to array of strings for fetching user list

9 years agoAdded APIs for fetching users based on the user type
Imran Zaman [Thu, 15 Jan 2015 14:36:53 +0000 (16:36 +0200)]
Added APIs for fetching users based on the user type

9 years agoMerge pull request #22 from 01org/devel
jlaako [Fri, 16 Jan 2015 17:01:43 +0000 (19:01 +0200)]
Merge pull request #22 from 01org/devel

Devel

9 years agoAdd new user to audio and video groups on creation
Imran Zaman [Fri, 16 Jan 2015 15:31:06 +0000 (17:31 +0200)]
Add new user to audio and video groups on creation

Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoAdded separate configuration file Tizen IVI upstream/1.0.4
Imran Zaman [Thu, 15 Jan 2015 15:46:22 +0000 (17:46 +0200)]
Added separate configuration file Tizen IVI
Newly created users are added to weston-launch group for Tizen IVI

Change-Id: Ie979a002872ebee5b1369ce2c1bddbbf4edd7f54
Fixed Bug TC-2342
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoAdded separate configuration file Tizen IVI
Imran Zaman [Thu, 15 Jan 2015 15:38:39 +0000 (17:38 +0200)]
Added separate configuration file Tizen IVI
Newly created users are added to weston-launch group for Tizen IVI

Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agofix spec file for yocto complaiance
Imran Zaman [Tue, 16 Dec 2014 17:25:53 +0000 (19:25 +0200)]
fix spec file for yocto complaiance

9 years agoMerge pull request #21 from 01org/devel
jlaako [Thu, 27 Nov 2014 14:45:21 +0000 (16:45 +0200)]
Merge pull request #21 from 01org/devel

Updated inputs for scripts e.g. usertype to useradd script

9 years agotizen: release 1.0.3 60/30960/1 accepted/tizen/common/20141127.162623 accepted/tizen/ivi/20141201.014439 accepted/tizen/mobile/20141201.014040 submit/tizen/20141127.144942
Imran Zaman [Thu, 27 Nov 2014 14:19:49 +0000 (16:19 +0200)]
tizen: release 1.0.3

Change-Id: I62d64ca7375add3a1aefe095a30fa62f33984796
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoUpdated inputs for scripts e.g. usertype to useradd script upstream/1.0.3
Imran Zaman [Thu, 27 Nov 2014 13:34:32 +0000 (15:34 +0200)]
Updated inputs for scripts e.g. usertype to useradd script

Change-Id: Id91ac7876fab38dd28f87322e63bad42c544abb1
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoUpdated inputs for scripts e.g. usertype to useradd script
Imran Zaman [Thu, 27 Nov 2014 13:32:48 +0000 (15:32 +0200)]
Updated inputs for scripts e.g. usertype to useradd script

9 years agoMerge pull request #20 from 01org/devel
jlaako [Wed, 19 Nov 2014 16:00:37 +0000 (18:00 +0200)]
Merge pull request #20 from 01org/devel

Devel

9 years agoFixed bug TC-2131 39/30539/1 accepted/tizen/common/20141121.091035 accepted/tizen/mobile/20141121.092258 submit/tizen/20141119.160753
Imran Zaman [Wed, 19 Nov 2014 15:55:23 +0000 (17:55 +0200)]
Fixed bug TC-2131

Change-Id: I2f942c810a129901821048a29e2000fdbbeb3a0b
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoFixed bug TC-2131, where gumd was not able to handle config changes upstream/1.0.2
Imran Zaman [Wed, 19 Nov 2014 15:49:06 +0000 (17:49 +0200)]
Fixed bug TC-2131, where gumd was not able to handle config changes

Change-Id: I8d67d4d2ee42864301bc8feba34f04d5a4483a77
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoFixed bug TC-2131, where gumd was not able to handle config changes
Imran Zaman [Wed, 19 Nov 2014 15:44:14 +0000 (17:44 +0200)]
Fixed bug TC-2131, where gumd was not able to handle config changes

9 years agotizen: fixed coverity issues 80/30380/1 accepted/tizen/common/20141117.155310 accepted/tizen/ivi/20141118.063158 submit/tizen/20141117.125426 submit/tizen_mobile/20141120.000000
Imran Zaman [Mon, 17 Nov 2014 12:41:16 +0000 (14:41 +0200)]
tizen: fixed coverity issues

Change-Id: Ic86bc45740a7493473a08864b91eb00f8e1b4403
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoFixed coverity issues
Imran Zaman [Mon, 17 Nov 2014 12:35:54 +0000 (14:35 +0200)]
Fixed coverity issues

Change-Id: I472ff4d194e5accf1406d0f0cc1061000d3e20f3
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
9 years agoupdated changelog
Imran Zaman [Mon, 17 Nov 2014 12:39:40 +0000 (14:39 +0200)]
updated changelog

10 years agoMerge pull request #18 from 01org/devel
izaman [Fri, 7 Nov 2014 12:43:27 +0000 (14:43 +0200)]
Merge pull request #18 from 01org/devel

coverity issues fixed

10 years agocoverity issues fixed
Amarnath Valluri [Thu, 6 Nov 2014 12:07:45 +0000 (14:07 +0200)]
coverity issues fixed

10 years agoMerge pull request #17 from 01org/devel
jlaako [Fri, 31 Oct 2014 13:59:03 +0000 (15:59 +0200)]
Merge pull request #17 from 01org/devel

gum-utils is split into separate package

10 years agotizen: release 1.0.2 26/29626/1 accepted/tizen/common/20141103.141017 accepted/tizen/ivi/20141107.010343 submit/tizen/20141031.140211
Imran Zaman [Thu, 30 Oct 2014 16:10:53 +0000 (18:10 +0200)]
tizen: release 1.0.2

Change-Id: I1267565ac19e5c178ef3a2e77f71b5e7b507a5e4
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agogum-utils is split into separate package
Imran Zaman [Thu, 30 Oct 2014 15:13:00 +0000 (17:13 +0200)]
gum-utils is split into separate package

Change-Id: I07c271b6f115cc2454fc5bcf3698fde8e112c144
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agogum-utils is split into separate package
Imran Zaman [Thu, 30 Oct 2014 14:34:37 +0000 (16:34 +0200)]
gum-utils is split into separate package

10 years agoConverted warnings to info messsages
Imran Zaman [Thu, 30 Oct 2014 14:20:29 +0000 (16:20 +0200)]
Converted warnings to info messsages

10 years agoMerge pull request #15 from 01org/devel
jlaako [Fri, 24 Oct 2014 14:29:11 +0000 (17:29 +0300)]
Merge pull request #15 from 01org/devel

Fixed bug where gum-utils hangs in offline mode

10 years agotizen:release 1.0.1 46/29346/1 accepted/tizen/common/20141024.144213 accepted/tizen/ivi/20141103.013845 submit/tizen/20141024.143111
Imran Zaman [Fri, 24 Oct 2014 14:26:17 +0000 (17:26 +0300)]
tizen:release 1.0.1

Change-Id: I24606486797460b9615c2e95ba6f28c5176932a7
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agoFixed bug where gum-utils hangs in offline mode upstream/1.0.1
Imran Zaman [Fri, 24 Oct 2014 14:25:20 +0000 (17:25 +0300)]
Fixed bug where gum-utils hangs in offline mode

Change-Id: If559a846af086f626b6fd93a7997a4eb22d7c5b6
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agoFixed bug where gum-utils hangs in offline mode
Imran Zaman [Fri, 24 Oct 2014 14:10:57 +0000 (17:10 +0300)]
Fixed bug where gum-utils hangs in offline mode

10 years agoMerge pull request #13 from 01org/devel
jlaako [Thu, 23 Oct 2014 13:43:03 +0000 (16:43 +0300)]
Merge pull request #13 from 01org/devel

Added sysroot support (in offline mode) to gum-utils.

10 years agotizen: release 1.0.0 68/29268/1 accepted/tizen/common/20141023.145506 accepted/tizen/common/20141024.122013 accepted/tizen/ivi/20141031.085441 submit/tizen/20141023.141031 submit/tizen/20141024.120858
Imran Zaman [Thu, 23 Oct 2014 13:29:09 +0000 (16:29 +0300)]
tizen: release 1.0.0

Change-Id: I1745aebeb171baa183efc036407313db224139c9
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agoAdded sysroot support and added offline support to libgum/gum-utils upstream/1.0.0
Imran Zaman [Thu, 23 Oct 2014 13:28:12 +0000 (16:28 +0300)]
Added sysroot support and added offline support to libgum/gum-utils

Change-Id: I4b070a068c3840d55f03829b250e75c1e62689f8
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agoAdded sysroot support (in offline mode) to gum-utils.
Imran Zaman [Wed, 22 Oct 2014 15:30:39 +0000 (18:30 +0300)]
Added sysroot support (in offline mode) to gum-utils.
Removed offline support from gumd as it is moved to libgum/gum-utils

10 years agoMerge pull request #12 from 01org/devel
jlaako [Wed, 22 Oct 2014 13:42:34 +0000 (16:42 +0300)]
Merge pull request #12 from 01org/devel

Offline support for libgum/gum-utils

10 years agoAdded offline support to libgum/gum-utils to add/update etc user/group
Imran Zaman [Tue, 21 Oct 2014 16:37:30 +0000 (19:37 +0300)]
Added offline support to libgum/gum-utils to add/update etc user/group

10 years agoadjusted indentation
Imran Zaman [Fri, 17 Oct 2014 14:04:26 +0000 (17:04 +0300)]
adjusted indentation

10 years agoMerge pull request #11 from 01org/devel
jlaako [Fri, 17 Oct 2014 14:02:16 +0000 (17:02 +0300)]
Merge pull request #11 from 01org/devel

Added offline support to gumd to add/update etc user/group

10 years agotizen: release 0.0.6 62/28962/1 accepted/tizen/common/20141017.144305 accepted/tizen/ivi/20141023.021539 submit/tizen/20141017.140641 submit/tizen_common/20141023.162131
Imran Zaman [Fri, 17 Oct 2014 13:50:03 +0000 (16:50 +0300)]
tizen: release 0.0.6

Change-Id: Id111158c8f3780bdeee38e04cb232db9f056ca6a
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agoAdded offline support to gumd to add/del/update/get user/group upstream/0.0.6
Imran Zaman [Fri, 17 Oct 2014 13:48:26 +0000 (16:48 +0300)]
Added offline support to gumd to add/del/update/get user/group

Change-Id: Ie050ff0717cdd0c307ec472856354adcc1d1b6cb
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agoAdded offline support to gumd to add/update etc user/group
Imran Zaman [Fri, 17 Oct 2014 13:43:09 +0000 (16:43 +0300)]
Added offline support to gumd to add/update etc user/group

10 years agoMerge pull request #10 from 01org/devel
Amarnath Valluri [Mon, 22 Sep 2014 10:52:44 +0000 (13:52 +0300)]
Merge pull request #10 from 01org/devel

Fixed bug related to primary group deletion

10 years agotizen: release 0.0.5-2 78/27878/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20140922.231747 accepted/tizen/common/20141023.162331 accepted/tizen/ivi/20140926.185741 submit/tizen/20140922.105811 submit/tizen_common/20141023.162251 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
Imran Zaman [Mon, 22 Sep 2014 10:44:37 +0000 (13:44 +0300)]
tizen: release 0.0.5-2

Change-Id: I6f98ba72e0c778483cfe8992608da826fa559200
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agoFixed bug related to primary group deletion upstream/0.0.5
Imran Zaman [Mon, 22 Sep 2014 10:10:37 +0000 (13:10 +0300)]
Fixed bug related to primary group deletion

Change-Id: Iba85dbef156d34ea09fd309d70a5d51eb0e9d25e
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agoFixed bug related to primary group deletion
Imran Zaman [Mon, 22 Sep 2014 10:09:21 +0000 (13:09 +0300)]
Fixed bug related to primary group deletion

10 years agoMerge pull request #9 from 01org/devel
jlaako [Fri, 19 Sep 2014 14:41:45 +0000 (17:41 +0300)]
Merge pull request #9 from 01org/devel

release 0.0.5-1

10 years agotizen: release 0.0.5-1 35/27835/1 accepted/tizen/common/20140919.160605 submit/tizen/20140919.145018
Imran Zaman [Fri, 19 Sep 2014 14:28:31 +0000 (17:28 +0300)]
tizen: release 0.0.5-1

Change-Id: Ib3cd8652856681b8266c86bc06af984212ec9deb
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agoAdd support for overriding the bus type using environment variable
Imran Zaman [Fri, 19 Sep 2014 14:27:01 +0000 (17:27 +0300)]
Add support for overriding the bus type using environment variable

Change-Id: Ie660e9adf86943cf84e63645c1b8c4d54a5b38ea
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
10 years agorelease 0.0.5-1
Imran Zaman [Fri, 19 Sep 2014 14:24:05 +0000 (17:24 +0300)]
release 0.0.5-1