platform/upstream/gumd.git
5 years agoChange UID range for regular users from [5000 ~ 5999] to [5000 ~ 9999] 01/207001/2 accepted/tizen/unified/20190611.050135 submit/tizen/20190610.070257 submit/tizen/20190610.124558
INSUN PYO [Thu, 30 May 2019 01:52:07 +0000 (10:52 +0900)]
Change UID range for regular users from [5000 ~ 5999] to [5000 ~ 9999]

Change-Id: Ic78d1065c804ecc1838a2f334bf652ada4aa0809
Refs: https://wiki.tizen.org/Security/User_and_group_ID_assignment_policy

5 years agoRevert "Add security usertype" 67/206967/1 submit/tizen/20190605.050515
INSUN PYO [Wed, 29 May 2019 11:28:19 +0000 (20:28 +0900)]
Revert "Add security usertype"

Container feature is removed.

Change-Id: Icf85ad34343f4f383c025fb4039d15a9b68f95a9

5 years agoMerge "Revert "API: add gum_user_type_to_prefix ()"" into tizen accepted/tizen/unified/20190412.124655 submit/tizen/20190411.073357
INSUN PYO [Thu, 11 Apr 2019 07:31:57 +0000 (07:31 +0000)]
Merge "Revert "API: add gum_user_type_to_prefix ()"" into tizen

5 years agoRevert "API: add gum_user_type_to_prefix ()" 54/201354/1
INSUN PYO [Wed, 13 Mar 2019 05:18:18 +0000 (05:18 +0000)]
Revert "API: add gum_user_type_to_prefix ()"

This reverts commit 2eb97b92556a7766d7cdfbbd445b85c359b40d54.

Change-Id: Ic01248577e21245fd7247783690fc7e60107f398

5 years agoChange the path of docs/gtk-doc.make for gtk-doc upgrade to 1.29 04/195704/3 accepted/tizen/unified/20181218.152353 submit/tizen/20181217.102836
Hyotaek Shim [Mon, 17 Dec 2018 10:17:09 +0000 (19:17 +0900)]
Change the path of docs/gtk-doc.make for gtk-doc upgrade to 1.29

(Before) /usr/share/gtk-doc/data/gtk-doc.notmpl.make
(After)  /usr/share/gtk-doc/data/gtk-doc.make

Change-Id: Ibdfd9bcfb11954cdd699366fa7167a6ce6a6e544
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoBug fix: revert wrong workround code(closing gdbus stream) 20/192920/3 accepted/tizen/unified/20181123.063250 submit/tizen/20181122.055216
INSUN PYO [Tue, 13 Nov 2018 02:19:55 +0000 (11:19 +0900)]
Bug fix: revert wrong workround code(closing gdbus stream)

As comment(on Related fixes #1), glib reports bug on "https://bugzilla.gnome.org/show_bug.cgi?id=734281.
But it is wrong report and is fixed by https://gitlab.gnome.org/GNOME/glib/commit/bf1a2d707928e129c96af365330b3ac26b04ad15

Related fixes #1
 - commit  : 94b01a47636b0787c9b39a5a1f3569edbdc593e9
 - comment :"Release 0.0.3"

Related fixes #2
 - commit  : 1c25a3cfa328a407cd2f4af59d8fe3a2b0e59cb0
 - comment : "Bug fix: do not close dbus io stream when group/user service was stopped."

Change-Id: I721040da87a97be87de454b670125db1d671ac2e
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
5 years agoRemove autotools generated files 45/193345/1 accepted/tizen/unified/20181121.060507 submit/tizen/20181120.234806
Karol Lewandowski [Mon, 19 Nov 2018 14:20:20 +0000 (15:20 +0100)]
Remove autotools generated files

This allows us to change license in spec to simple LGPL,
as the "autoconf exception" is added by autoconf itself.
In Tizen GPLv2 autoconf exception is used so this does
not apply anyway.

Change-Id: I2625aed6d365dfe87bb6494448666977ef0d1654

6 years agoHack: always look in /etc/passwd when generating user list 19/189519/1 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181102.024648 accepted/tizen/unified/20180918.152344 submit/tizen/20180918.101339 submit/tizen_5.0/20181101.000006
Karol Lewandowski [Tue, 18 Sep 2018 08:53:16 +0000 (10:53 +0200)]
Hack: always look in /etc/passwd when generating user list

Change-Id: I6c5947c5d67553f0e55ab8b7c506c801da67a9f4

6 years agoHack: Always check /etc/{passwd,shadow} in addition to defined files 87/187287/4 accepted/tizen/unified/20180917.195204 submit/tizen/20180914.113308
Karol Lewandowski [Thu, 13 Sep 2018 12:32:49 +0000 (14:32 +0200)]
Hack: Always check /etc/{passwd,shadow} in addition to defined files

When some users (eg. owner) might be in /opt/etc/passwd and some
("non-stock") are added to /opt/etc/passwd it means we have to
check both files.

Please note group is taken from /etc/group only.  Group membership
must not be managed by GUM due to the fact that assigning user to
given group requires altering file which defines the group.  Eg.
to add new user to system group 'audio' we would need to modify
/etc/group.  This breaks the requirement for rootfs to be read-only.

Change-Id: Ic63605b5f3964f166d3d5cf5332d5ee5175a7d18

6 years agoDo not assign supplementary groups 50/186450/3
Karol Lewandowski [Thu, 9 Aug 2018 10:45:01 +0000 (12:45 +0200)]
Do not assign supplementary groups

Due to splitting password and group database to read-only db (standard
/etc/) and read-writable (/opt/etc/) it might no longer be possible to
add newly created users to system groups.  Precisely, adding user to
system given group requires appending user name to /etc/group, which
is on read only partition.  It's not possible to add such entry to
/opt/etc/group because it would not only require group name (and id)
duplication, but also it would require changing all the supporting
code to look for multiple group definitions.

To handle above problem gumd will no longer assign group membership at
user creation.  It will also use standard /etc/group (and gshadow).

Assiging users to correct groups will be handled by security-manager
nss plugin.

Change-Id: I86af2d41f07f13f0d0e6904cfb7b45fe84594ea7

6 years agodbus-policy: change to default deny policy 09/179309/1 accepted/tizen/unified/20180619.142051 submit/tizen/20180619.052936
sanghyeok.oh [Thu, 17 May 2018 05:00:05 +0000 (14:00 +0900)]
dbus-policy: change to default deny policy

Change-Id: Idb3d21a9fc46e1d2450b172af4333642b8d1997d
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoCoverity Fix 96/174696/1 accepted/tizen/unified/20180406.062000 submit/tizen/20180405.025252
sanghyeok.oh [Tue, 3 Apr 2018 11:46:37 +0000 (20:46 +0900)]
Coverity Fix

Change-Id: I706846a4d3481fe609e30cb4aa35041a376f0e68
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agodbus: add allow rule for org.freedesktop.DBus.Peer.Ping 14/155914/3
sanghyeok.oh [Mon, 16 Oct 2017 11:23:50 +0000 (20:23 +0900)]
dbus: add allow rule for org.freedesktop.DBus.Peer.Ping

Change-Id: Iabeaa2d9bcbee9ff2dd67613cd487a7b5376e50b
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoAPI: add gum_user_type_to_prefix () 50/165550/2 accepted/tizen/unified/20180326.075206 submit/tizen/20180322.042453
INSUN PYO [Tue, 2 Jan 2018 05:43:05 +0000 (14:43 +0900)]
API: add gum_user_type_to_prefix ()

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Idcab8cfec27c8aec1bda66c718bc405b46d38ced

6 years agoadjust the uid and secure_uid range 42/164042/4 accepted/tizen/unified/20171220.145730 submit/tizen/20171215.072741
INSUN PYO [Fri, 15 Dec 2017 03:31:37 +0000 (12:31 +0900)]
adjust the uid and secure_uid range

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I0d34ced09bb8a949e7d70b29f848ba707069b4a0

6 years agoCoverity Fix 94/163394/1
sanghyeok.oh [Mon, 11 Dec 2017 02:59:35 +0000 (11:59 +0900)]
Coverity Fix

Change-Id: I3c8da6926230ff3e4e53f2fcc449b0e73c521cca
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
(cherry picked from commit e8fc72d02063c99ae14b4847a096fd2c9353ae7e)

6 years agospec: Change groupadd to handle in security-manager. 32/161232/2 accepted/tizen/unified/20171124.172647 submit/tizen/20171123.061702
INSUN PYO [Wed, 22 Nov 2017 07:40:33 +0000 (16:40 +0900)]
spec: Change groupadd to handle in security-manager.

I left groupadd to make this package available from an open source without security-mager.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Id7e1fa341a8588c23bfe4785c9d529e6c81d3b5c

7 years agoCoverity fixes. 95/157495/2 accepted/tizen/unified/20171026.074641 submit/tizen/20171025.054336
INSUN PYO [Tue, 24 Oct 2017 22:46:30 +0000 (22:46 +0000)]
Coverity fixes.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ib2991d5795ae915a76c2bf26f2848b997926de42
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
7 years agoCoverity fixes. 97/157497/1
INSUN PYO [Tue, 24 Oct 2017 22:56:14 +0000 (22:56 +0000)]
Coverity fixes.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I67956e80952b2b1808022807d88bb14ee08cff1b

7 years agoCoverity Fix 93/156193/1 accepted/tizen/unified/20171019.145654 submit/tizen/20171019.034316
sanghyeok.oh [Tue, 17 Oct 2017 11:11:14 +0000 (20:11 +0900)]
Coverity Fix

Change-Id: I98f936ca8a91d3465ec24064053030b97f535e56
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
7 years agoModify create home directory logic 80/152780/2 accepted/tizen/unified/20171010.162508 submit/tizen/20171010.031320
Yunmi Ha [Wed, 27 Sep 2017 05:28:58 +0000 (14:28 +0900)]
Modify create home directory logic

If user's home directory already exists, try to delete it.
And copy files from skel folder.

Change-Id: I68ab2ea9fc603893fced5383ecbae147bef81a4c
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoRemove upgrade script file from package. 84/144784/2 accepted/tizen/4.0/unified/20170828.222338 accepted/tizen/unified/20170822.023817 submit/tizen/20170821.062931 submit/tizen_4.0/20170828.100005
Yunmi Ha [Fri, 18 Aug 2017 02:27:15 +0000 (11:27 +0900)]
Remove upgrade script file from package.

It is for 2.4 to 3.0 upgrade.
So remove it from 4.0 package.

Change-Id: Ida64af949432df07943b587bfa77904aa7844b15
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoEnable ASLR feature 19/143719/2 accepted/tizen/unified/20170821.051046 submit/tizen/20170818.014207
Yunmi Ha [Fri, 11 Aug 2017 05:20:01 +0000 (14:20 +0900)]
Enable ASLR feature

Change-Id: I315f6b1d137f40ade05cfe27e579b5139bf0b3cd
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoChange build flag for tv product 27/139527/1
Yunmi Ha [Wed, 19 Jul 2017 08:22:39 +0000 (17:22 +0900)]
Change build flag for tv product

%{TIZEN_PRODUCT_TV} will be removed.
So use %{tizen_profile_name} or %{profile} macros instead of it.

%{tizen_profile_name} is for optional features that are not built in Tizen Public OBS.

Change-Id: I3d40fe24d2108467319f820b915649be0aa422f0
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoUse geteuid() to check the current privilege instead of getuid() in gum_utils_gain_pr... 02/137202/1
Hyotaek Shim [Wed, 5 Jul 2017 01:30:46 +0000 (10:30 +0900)]
Use geteuid() to check the current privilege instead of getuid() in gum_utils_gain_privileges()

Change-Id: Ibfaa0091bf5882043e4a01ef87455398d02fef5e
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
7 years agoAdd warning log: Home directory already exists. 31/137031/3
Yunmi Ha [Tue, 4 Jul 2017 07:27:35 +0000 (16:27 +0900)]
Add warning log: Home directory already exists.

Change-Id: Ibe7afd37ed515588fb2046a2c813d3126a107e6c
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
7 years agoRemove unnecessary privilege change codes (Bypass seteuid(0) when the calling process... 10/134010/9 accepted/tizen/4.0/unified/20170816.011606 accepted/tizen/unified/20170629.085741 submit/tizen/20170622.043014 submit/tizen_4.0/20170811.094300
INSUN PYO [Wed, 14 Jun 2017 07:59:43 +0000 (16:59 +0900)]
Remove unnecessary privilege change codes (Bypass seteuid(0) when the calling process is root)

While MIC-building a Tizen image, /usr/bin/tpk-backend with libgum calls gum_utils_gain_privileges() and is crashed.

void gum_utils_gain_privileges ()
{
    if (seteuid(0)) WARN ("seteuid() failed");
}

It is found that seteuid(0) system calls with created threads
result in Segmentation Fault (SIGSEGV) in qemu-arm 2.7 and even in up-to-date qemu-arm 2.9

void *thread_main(void *);

int main(void) {
        int status;
        pthread_t thread;

        pthread_create(&thread, NULL, &thread_main, NULL);  <-- After creating a thread

        sleep(1);
        seteuid(0);  <-- Call seteuid(0)

        pthread_join(thread, (void **)&status);

        return 0;
}

void *thread_main(void *arg) {
        printf ("Thread.\n");
        pause();
}

$) armv7l-tizen-linux-gnueabi-c++ -static -o test test.cc -lpthread
$) qemu-arm test
Segmentation fault (core dumped)

It seems a kind of QEMU bug.
When this patch (https://bugs.launchpad.net/qemu/+bug/1594394) is applied to QEMU 2.9, the problem is resolved.
To avoid the crash during MIC build without the qemu patch, this workaround patch needs to be submitted.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I59a3d37a43864e0f4147c8088fe21db3ad692df5
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
7 years agoMerge "Modify gumd.conf to support read-only rootfs" into tizen accepted/tizen/unified/20170407.190819 submit/tizen/20170407.070328 tizen_4.0.m1_release
Yunmi Ha [Fri, 7 Apr 2017 06:59:28 +0000 (23:59 -0700)]
Merge "Modify gumd.conf to support read-only rootfs" into tizen

7 years agoAdd license file to wearable package 30/122530/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170403.190215 accepted/tizen/ivi/20170403.125115 accepted/tizen/mobile/20170403.125026 accepted/tizen/tv/20170403.125044 accepted/tizen/unified/20170403.125129 accepted/tizen/wearable/20170403.125059 submit/tizen/20170403.043537
Yunmi Ha [Mon, 3 Apr 2017 02:17:53 +0000 (11:17 +0900)]
Add license file to wearable package

Need to install license file per each rpm package.
Add license file to separated profile package.

Change-Id: I677707c039ec0f5427e18ace5c2dc8b52d4f9203
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen 38/121538/1 accepted/tizen/common/20170329.172054 accepted/tizen/ivi/20170329.035402 accepted/tizen/mobile/20170329.035302 accepted/tizen/tv/20170329.035318 accepted/tizen/unified/20170329.035414 accepted/tizen/wearable/20170329.035333 submit/tizen/20170329.015453
Yunmi Ha [Tue, 28 Mar 2017 06:28:25 +0000 (15:28 +0900)]
Merge branch 'tizen_3.0' into tizen

Change-Id: I2747a894466e30fd2a2d8b12cb4cf8964e0afa2a
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 agoFix error when built with TIZEN_PRODUCT_TV = 1 41/116641/1 accepted/tizen/common/20170227.140610 accepted/tizen/ivi/20170228.012835 accepted/tizen/mobile/20170228.012742 accepted/tizen/tv/20170228.012802 accepted/tizen/unified/20170309.035817 accepted/tizen/wearable/20170228.012819 submit/tizen/20170227.105257 submit/tizen_unified/20170308.100413
Silas Jeon [Mon, 27 Feb 2017 10:43:28 +0000 (19:43 +0900)]
Fix error when built with TIZEN_PRODUCT_TV = 1

It makes error with TIZEN_PRODUCT_TV = 1 condition. The cause of the
error is that it does not copy gumd.service.wearable file but it
still needs that. Spec file is modified so that it always copies that
file. Removing wearable rpm when TIZEN_PRODUCT_TV is set seems more
reasonable, so that can be applied later.

Change-Id: I4c2511b6bdf7ccdae9892d23cf6815143b1f0e1f

7 years agoModify gumd.conf to support read-only rootfs 66/110866/1
silas jeon [Wed, 18 Jan 2017 09:22:35 +0000 (18:22 +0900)]
Modify gumd.conf to support read-only rootfs

Root filesystem will be mounted as read-only soon, so some files and directori-
s in /etc are moved to /opt/etc. skel, passwd, shadow, group, gshadow are the
objects, so gumd should handle them directly on /opt/etc

Change-Id: Ic8f38f223f8b28d5d59b80860fd959ae600bd64d

7 years agoMerge "[4.0] Remove profile build dependency of wearble" into tizen accepted/tizen/common/20170110.155219 accepted/tizen/ivi/20170110.224812 accepted/tizen/mobile/20170110.224725 accepted/tizen/tv/20170110.224739 accepted/tizen/wearable/20170110.224757 submit/tizen/20170110.095625
Yunmi Ha [Mon, 9 Jan 2017 06:36:21 +0000 (22:36 -0800)]
Merge "[4.0] Remove profile build dependency of wearble" into tizen

7 years agoMerge branch 'tizen_3.0' into tizen 51/108351/1 accepted/tizen/common/20170110.085234 accepted/tizen/ivi/20170106.103652 accepted/tizen/mobile/20170106.103456 accepted/tizen/tv/20170106.103540 accepted/tizen/wearable/20170106.103617 submit/tizen/20170105.051706
Yunmi Ha [Wed, 4 Jan 2017 06:28:19 +0000 (15:28 +0900)]
Merge branch 'tizen_3.0' into tizen

Change-Id: I4dcad5bc8df8dd76f147395ef9de002876802e44
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 agoUpgrade: exclude upgrade script directory 67/107967/1 accepted/tizen/common/20170102.152306 accepted/tizen/ivi/20170102.223344 accepted/tizen/mobile/20170102.223245 accepted/tizen/tv/20170102.223305 accepted/tizen/wearable/20170102.223324 submit/tizen/20170102.080858
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 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 agoMerge branch 'tizen_3.0' into tizen 99/103599/1
Yunmi Ha [Fri, 9 Dec 2016 02:06:58 +0000 (11:06 +0900)]
Merge branch 'tizen_3.0' into tizen

Change-Id: I29db5357fcaed8dd78c8a10d923c030b14615c0b

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>
7 years agoAdd audio group to DEFAULT_USR_GROUPS config. 88/99588/1
Yunmi Ha [Wed, 23 Nov 2016 09:54:09 +0000 (18:54 +0900)]
Add audio group to DEFAULT_USR_GROUPS config.

If user is not member of audio group, all audio/radio API returns fail.
So add audio group to user's default group.

Change-Id: If17ddc5bc2071ce46ffcedb12552cf66711e97cd
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agoBug fix: do not close dbus io stream when group/user service was stopped. 96/99096/1
Yunmi Ha [Tue, 22 Nov 2016 01:55:33 +0000 (10:55 +0900)]
Bug fix: do not close dbus io stream when group/user service was stopped.

Reason:
group/user services are run each other and share same parents connection.
However, when one service terminates, close a common IO stream.
So remained service has a problem with that IO stream.

Fix:
When main dbus service(usermanagement) is stopped, close IO stream.
(Move logic)

Change-Id: Iac30465b2c8a927934f9b3595a204833098168a1
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years ago[4.0] Remove profile build dependency of wearble 83/89783/3
MyungJoo Ham [Tue, 27 Sep 2016 04:36:37 +0000 (04:36 +0000)]
[4.0] Remove profile build dependency of wearble

- This is for Tizen 4.0 (tizen branch only)

- When this is SR'ed, you need to create JIRA-TRE issue:

   Add gumd-profile_wearable for wearable profile.

Change-Id: Ia8bd0328f1a075ff7df9fb68e3344fae28f829af
Signed-off-by: MyungJoo Ham <myungjoo.ham@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>