platform/core/appfw/aul-1.git
8 years agoTreat as global user when receive request from root 14/46214/2 accepted/tizen/mobile/20150818.220031 accepted/tizen/tv/20150818.220041 accepted/tizen/wearable/20150818.220046 submit/tizen/20150818.093923
Sangyoon Jang [Tue, 18 Aug 2015 05:48:48 +0000 (14:48 +0900)]
Treat as global user when receive request from root

Change-Id: If0ce1ece84de1640dde15b026f2b94d52a283c85
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoUse signalfd to handle SIGCHLD 13/46113/3 accepted/tizen/mobile/20150817.134136 accepted/tizen/tv/20150817.134530 accepted/tizen/wearable/20150817.134811 submit/tizen/20150817.084057
Sangyoon Jang [Mon, 17 Aug 2015 05:12:01 +0000 (14:12 +0900)]
Use signalfd to handle SIGCHLD

Change-Id: I5b70a40908d2c6b7c68ccc7424a624b5f391b45b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoReturn AUL_R_ENOAPP when cannot find requested app 83/45983/1
Sangyoon Jang [Thu, 13 Aug 2015 02:29:56 +0000 (11:29 +0900)]
Return AUL_R_ENOAPP when cannot find requested app

Change-Id: Ibc0ecf59433ae333415f5966e046e411bcf9b920
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRemove sqlite3 add vconf, dlog requires to pc file 45/45845/1 submit/tizen_mobile/20150812.025625
Sangyoon Jang [Wed, 12 Aug 2015 02:25:43 +0000 (11:25 +0900)]
Remove sqlite3 add vconf, dlog requires to pc file

remove mida.h

Change-Id: I20017c5e3b0d4a27eb1efc4c77f0a01d41d88253
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix aul.pc.in 06/45806/1 submit/tizen/20150811.103743
Sangyoon Jang [Tue, 11 Aug 2015 11:06:19 +0000 (20:06 +0900)]
Fix aul.pc.in

remove ail

Change-Id: Ibac8e0cdb5565231e2983650f8d8a910b3d36dd7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoClean up repository 23/45223/10
Sangyoon Jang [Mon, 3 Aug 2015 23:33:44 +0000 (08:33 +0900)]
Clean up repository

remove dependency: ail, app-checker, privacy-manager
revise CMakeLists.txt
set so version using package version
remove unused codes
remove unnecessary files

Change-Id: I1f91c0d295cb726a18852590f565de4bf48a860e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix typo 44/45744/3
Jiwoong Im [Tue, 11 Aug 2015 05:08:34 +0000 (14:08 +0900)]
Fix typo

Change-Id: I3267a90876299a21edc69d350bf412882f126b94
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoFix some prevent issues 75/45475/9
Sangyoon Jang [Thu, 6 Aug 2015 10:22:06 +0000 (19:22 +0900)]
Fix some prevent issues

fix out-of-bounds write
fix resource leak
fix wrong sizeof argument
fix uninitialized pointer read
fix dereference null return value

Change-Id: I061cdb14334726014aaa54d6223cdba547f170d5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agosupport async launch result callback 72/45172/8
Jiwoong Im [Mon, 3 Aug 2015 08:42:10 +0000 (17:42 +0900)]
support async launch result callback

Change-Id: If0503961eaaae35871234f3024992f8264ab9a30
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoFix memory leak 80/45380/2 accepted/tizen/mobile/20150806.001424 accepted/tizen/tv/20150806.001428 accepted/tizen/wearable/20150806.001438 submit/tizen/20150805.104426
Sangyoon Jang [Wed, 5 Aug 2015 10:23:49 +0000 (19:23 +0900)]
Fix memory leak

remove unused variable

Change-Id: I2e8c648fd8daec52026d506db1b3de5e3ee8ea9e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoDon't stop when fail to get label during listing apps 66/45366/1
Sangyoon Jang [Wed, 5 Aug 2015 08:20:17 +0000 (17:20 +0900)]
Don't stop when fail to get label during listing apps

Change-Id: Id8dfa2ebe555e356d00357ac90bcac3c95265e3f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRemove warnings, remove unused test code 02/44402/5
Sangyoon Jang [Tue, 21 Jul 2015 11:43:43 +0000 (20:43 +0900)]
Remove warnings, remove unused test code

fix mismatching types
remove unused variables, functions
remove unnecessary initializing of local variables
include missing headers
fix some spaces, indents
change return type of "_term_sub_app" (void -> int)
remove unused test codes

Change-Id: I34ed5df39cb7a78f5f0fbcf17d3144ae2c3409d8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoadd aul_get_app_tep_resource_path api. 47/45147/2 accepted/tizen/mobile/20150803.094055 accepted/tizen/tv/20150803.094110 accepted/tizen/wearable/20150803.094120 submit/tizen/20150803.051904
Jiwoong Im [Mon, 3 Aug 2015 05:09:52 +0000 (14:09 +0900)]
add aul_get_app_tep_resource_path api.

Change-Id: Icefba6613467f8b8e0a6146c8e999f298bac52b3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoDon't clear rua history 49/45149/1
Sangyoon Jang [Mon, 3 Aug 2015 05:09:55 +0000 (14:09 +0900)]
Don't clear rua history

Change-Id: I1480adf2b87908f784514e1f8042a56d35f9cfdb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSet exec_label="User" on app_launcher 58/44758/1 accepted/tizen/mobile/20150728.070343 accepted/tizen/tv/20150728.070315 accepted/tizen/wearable/20150728.070326 submit/tizen/20150728.042812
Sangyoon Jang [Mon, 27 Jul 2015 11:09:31 +0000 (20:09 +0900)]
Set exec_label="User" on app_launcher

Change-Id: I503f3f23096377542ff4b64d6061e0c926a2b5f5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agousing tizen-extension wayland protocol instead of including *protocol.c directly 30/44430/1 accepted/tizen/mobile/20150723.121253 accepted/tizen/tv/20150723.121331 accepted/tizen/wearable/20150723.121355 submit/tizen/20150722.053256 submit/tizen/20150723.044444
Boram Park [Mon, 20 Jul 2015 10:59:33 +0000 (19:59 +0900)]
using tizen-extension wayland protocol instead of including *protocol.c directly

Change-Id: I66bba71559bf9d7d94d00a5c124c66c1acf8d37f

9 years agoAdd some exception handling 75/43875/2 accepted/tizen/mobile/20150717.060236 accepted/tizen/tv/20150717.060248 accepted/tizen/wearable/20150717.060259 submit/tizen/20150717.020519
Sangyoon Jang [Wed, 15 Jul 2015 01:52:31 +0000 (10:52 +0900)]
Add some exception handling

Change-Id: I7b79a203344a164a89f0e5f72807c2e71bbf8216
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "Use tmpfiles to create volatile directory, cleanup" into tizen
Semun Lee [Wed, 15 Jul 2015 00:52:16 +0000 (17:52 -0700)]
Merge "Use tmpfiles to create volatile directory, cleanup" into tizen

9 years agoGet appinfo status of caller's app only 60/42560/2 accepted/tizen/mobile/20150702.045226 accepted/tizen/tv/20150702.040116 accepted/tizen/wearable/20150702.040145 submit/tizen/20150702.000829
Sangyoon Jang [Tue, 30 Jun 2015 05:32:30 +0000 (14:32 +0900)]
Get appinfo status of caller's app only

get appinfo status of caller's app only
rename app_status_info's member user to uid

Change-Id: Ie321b9d305f172236cf41b84c4cf1e8c578dfa67
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoUse tmpfiles to create volatile directory, cleanup 03/42803/1
Maciej Wereski [Wed, 1 Jul 2015 13:34:06 +0000 (15:34 +0200)]
Use tmpfiles to create volatile directory, cleanup

Since v218 of systemd tmpfiles have ability to set extended attributes.
It can be used to set SMACK labels.

Cleanup: remove obsolete SysV init script.

Change-Id: Ie4e20ee383380fa08d33d3c9a05d47d919b9de8b
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
9 years agoMake __app_process_by_pid handle only app 59/42559/2
Sangyoon Jang [Tue, 30 Jun 2015 05:26:31 +0000 (14:26 +0900)]
Make __app_process_by_pid handle only app

Change-Id: I3a66aff61e8e81ba91771467ba0392f44ffd1c1b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix getting launch argument on app_launcher 50/42550/1
Sangyoon Jang [Tue, 30 Jun 2015 02:19:25 +0000 (11:19 +0900)]
Fix getting launch argument on app_launcher

Change-Id: I7b55f5e2b355054a5f6760c3ce86374fc5077b7c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoSend result to client when calling KILL_BY_PID 44/42544/2
Sangyoon Jang [Mon, 29 Jun 2015 23:34:05 +0000 (08:34 +0900)]
Send result to client when calling KILL_BY_PID

Change-Id: Ia77be62c48f0f2a9bff769c6d9f7d6a45822fda5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRevise app_launcher 44/42444/3 accepted/tizen/mobile/20150630.002105 accepted/tizen/tv/20150630.002120 accepted/tizen/wearable/20150630.002131 submit/tizen/20150629.101030
Sangyoon Jang [Mon, 29 Jun 2015 08:10:14 +0000 (17:10 +0900)]
Revise app_launcher

use pkgmgr-info instead of ail
add getting launch argument

Change-Id: I1911ff60969f7cbc9469b032ad0819312a6999b9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix coding style of app_launcher 10/42410/3
Sangyoon Jang [Mon, 29 Jun 2015 02:23:26 +0000 (11:23 +0900)]
Fix coding style of app_launcher

Change-Id: I3916e74bbec7c8f012d43a09144740ebd81b99ef
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoimplementation of app group 71/41071/4 accepted/tizen/mobile/20150616.010930 accepted/tizen/tv/20150616.010944 accepted/tizen/wearable/20150616.010958 submit/tizen/20150615.091318
Jiwoong Im [Thu, 11 Jun 2015 05:44:50 +0000 (14:44 +0900)]
implementation of app group

- provides API to support app group
- amd manages grouped application using hash table

Change-Id: Ia507be21d1eaff8edf82d52fc215c952d0ed2a58
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoAdd missing declaration in header 01/40601/2 accepted/tizen_3.0.2015.q2_common tizen_3.0.2015.q2_common accepted/tizen/3.0.2015.q2/common/20150609.181932 accepted/tizen/3.0.2015.q2/common/20150615.091808 accepted/tizen/common/20150609.084315 accepted/tizen/common/20150609.084424 accepted/tizen/common/20150610.144508 accepted/tizen/common/20150612.065901 accepted/tizen/mobile/20150609.085834 accepted/tizen/mobile/20150612.003426 accepted/tizen/tv/20150612.003515 accepted/tizen/tv/20150612.003539 accepted/tizen/wearable/20150609.085855 accepted/tizen/wearable/20150611.085701 submit/tizen/20150604.065932 submit/tizen/20150605.114228 submit/tizen/20150605.131835 submit/tizen/20150608.113003 submit/tizen/20150609.020831 submit/tizen/20150609.065415 submit/tizen/20150609.074149 submit/tizen/20150611.063059 submit/tizen_3.0.2015.q2_common/20150609.170642 submit/tizen_3.0.2015.q2_common/20150615.075539 submit/tizen_common/20150608.135929 submit/tizen_common/20150610.013111 submit/tizen_common/20150610.072250 submit/tizen_mobile/20150611.000000 submit/tizen_tv/20150611.000000 submit/tizen_tv/20150611.000001 submit/tizen_tv/20150611.010347 submit/tizen_wearable/20150611.000000
Sangyoon Jang [Fri, 5 Jun 2015 10:27:21 +0000 (19:27 +0900)]
Add missing declaration in header

Change-Id: I9a7715aa61aa2a6deef78e20bc83f5d951064870
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd some api from Tizen 2.4 44/40244/2 submit/tizen/20150604.015241
Sangyoon Jang [Mon, 1 Jun 2015 12:16:32 +0000 (21:16 +0900)]
Add some api from Tizen 2.4

added:
aul_terminate_bgapp_pid
aul_terminate_pid_without_restart
aul_pause_app
aul_pause_pid

Change-Id: I9ebae51e8c55a4678064debc310e563585cf63d3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoUse _status_app_is_running_v2 on _start_app 18/40118/3 submit/tizen/20150602.003342
Sangyoon Jang [Fri, 29 May 2015 08:44:57 +0000 (17:44 +0900)]
Use _status_app_is_running_v2 on _start_app

fix order of parameter of _status_app_is_running_v2
use _status_app_is_running_v2 instead of _status_app_is_running

Change-Id: I7419a3d3b750ecb8e967eef2188452a5d138ec3c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoImprove code readability 23/39923/3 accepted/tizen/common/20150601.092754 submit/tizen_common/20150601.092502
Sangyoon Jang [Tue, 26 May 2015 11:54:11 +0000 (20:54 +0900)]
Improve code readability

do not load appinfo for attached global apps

Change-Id: Ie2c641ed5565b14537b8f5ae97f3f23c1996ee79
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd special cmd: AMD_RELOAD_APPINFO 21/39921/1
Sangyoon Jang [Tue, 26 May 2015 11:50:18 +0000 (20:50 +0900)]
Add special cmd: AMD_RELOAD_APPINFO

this cmd is for special purpose

Change-Id: Ib16415583f0de4592b8eef8e52807eaca2ea8b6b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "change parameter in __get_path function and return error in invalid parameter... submit/tizen/20150526.104937
Semun Lee [Tue, 26 May 2015 10:46:49 +0000 (03:46 -0700)]
Merge "change parameter in __get_path function and return error in invalid parameter." into tizen

9 years agochange parameter in __get_path function and return error in invalid parameter. 77/39877/3
Jiwoong Im [Tue, 3 Mar 2015 07:06:57 +0000 (16:06 +0900)]
change parameter in __get_path function and return error in invalid parameter.

In __get_path function, it finds pkginfo in tizenglobaluser and regular user's db.
GLOBAL_USER should be replaced to getuid() in order to be performed correctly.

JIRA ticket : TC-2314

Change-Id: I71c93090c5756f612cfa383ef7402be502932044
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoamd: check appinfo_init() retcode to exit gracefully 95/39795/1
Stephane Desneux [Fri, 22 May 2015 10:49:10 +0000 (12:49 +0200)]
amd: check appinfo_init() retcode to exit gracefully

Change-Id: Ife80ee7857a4d6eaeb37fb4e877aa539a9fe6492
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
9 years agoMerge "Launch service app on amd_session_agent, handle on-boot" into tizen accepted/tizen/common/20150521.125634 accepted/tizen/common/20150601.070531 accepted/tizen/mobile/20150522.005728 accepted/tizen/mobile/20150601.044249 accepted/tizen/tv/20150522.004813 accepted/tizen/tv/20150601.044238 accepted/tizen/wearable/20150522.005554 accepted/tizen/wearable/20150601.044302 submit/tizen/20150521.024852 submit/tizen/20150528.055123
Semun Lee [Thu, 21 May 2015 02:32:23 +0000 (19:32 -0700)]
Merge "Launch service app on amd_session_agent, handle on-boot" into tizen

9 years agoMerge "Fix _status_app_is_running_v2" into tizen
Semun Lee [Thu, 21 May 2015 02:32:19 +0000 (19:32 -0700)]
Merge "Fix _status_app_is_running_v2" into tizen

9 years agoLaunch service app on amd_session_agent, handle on-boot 87/39587/3
Sangyoon Jang [Tue, 19 May 2015 07:35:13 +0000 (16:35 +0900)]
Launch service app on amd_session_agent, handle on-boot

launch service app on amd_session_agent, not amd.
all applications should be launched by proper session agent.
when user appinfo initialized, amd sends launch request
for applications which have on-boot attributes.

handle on-boot when package installed.

Change-Id: Iaf8fb1c69ff2006d3e835e9e4a981ef9847c4764
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix _status_app_is_running_v2 88/39588/2
Sangyoon Jang [Tue, 19 May 2015 07:38:14 +0000 (16:38 +0900)]
Fix _status_app_is_running_v2

fix __proc_iter_cmdline

Change-Id: I1c65f6ea67bde6a652e859cd53fc0a1418bfa0a2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoUpdate appinfo when package event occured 33/39533/3
Sangyoon Jang [Tue, 19 May 2015 06:37:10 +0000 (15:37 +0900)]
Update appinfo when package event occured

Change-Id: Ia3c33e69c2118b4ebada6c4e63c65500a699c486
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoManage user's appinfo table 16/39516/5
Sangyoon Jang [Mon, 18 May 2015 04:29:55 +0000 (13:29 +0900)]
Manage user's appinfo table

Change-Id: I637d84995526461eff6120b33ae1df6c81d50688
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoCode refactoring 89/39389/1
Sangyoon Jang [Thu, 14 May 2015 07:38:02 +0000 (16:38 +0900)]
Code refactoring

struct amdmgr, struct appinfomgr are not needed.
appinfo table should managed at amd_appinfo.c.
remove some unused functions.

Change-Id: If8f991afb89bcef3dbf300fe5ae0cde3fa478a02
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd missing api: aul_terminate_pid_async 84/39184/1 accepted/tizen/common/20150520.133244 accepted/tizen/mobile/20150521.005931 accepted/tizen/tv/20150521.005315 accepted/tizen/wearable/20150521.005616 submit/tizen/20150512.054616
Sangyoon Jang [Mon, 11 May 2015 10:29:35 +0000 (19:29 +0900)]
Add missing api: aul_terminate_pid_async

Change-Id: Ia2b6c7247aaf939e0d45cc84b81a6d1c4d597a64
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix socket fd leak 80/39180/2
Sangyoon Jang [Mon, 11 May 2015 09:33:26 +0000 (18:33 +0900)]
Fix socket fd leak

TC-2508

when send asynchronously, it needs to close caller's socket after
receiving reply

Change-Id: I0fa9a8c1a401d77a50cbc0c450adfd70a1edfb0d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoRemove "Type=notify" at amd_session_agent.service 98/38898/1 accepted/tizen/common/20150504.070719 accepted/tizen/mobile/20150501.022031 accepted/tizen/tv/20150501.020906 accepted/tizen/wearable/20150501.021403 submit/tizen/20150430.055149
Sangyoon Jang [Thu, 30 Apr 2015 05:44:54 +0000 (14:44 +0900)]
Remove "Type=notify" at amd_session_agent.service

amd_session_agent doesn't need to be notify type

Change-Id: I6367e5f3746e2d31751bafe32d65aa974d5cec71
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "Integration with security-manager" into tizen
Sangyoon Jang [Wed, 29 Apr 2015 08:49:20 +0000 (01:49 -0700)]
Merge "Integration with security-manager" into tizen

9 years agoMake amd_session_agent run as sokcet activation only 54/38754/2 accepted/tizen/common/20150428.154006 accepted/tizen/mobile/20150429.003741 accepted/tizen/tv/20150429.003711 accepted/tizen/wearable/20150429.003724 submit/tizen/20150428.102946
Sangyoon Jang [Tue, 28 Apr 2015 05:19:50 +0000 (14:19 +0900)]
Make amd_session_agent run as sokcet activation only

Change-Id: Ic8085f66a37f977b42efa226e732bd919ccfbde1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoFix _get_app_info_from_db_by_apppath_user 65/38165/1 accepted/tizen/common/20150416.090615 accepted/tizen/mobile/20150415.132907 accepted/tizen/tv/20150415.131749 accepted/tizen/wearable/20150415.132254 submit/tizen/20150415.072638
Sangyoon Jang [Tue, 14 Apr 2015 02:04:41 +0000 (11:04 +0900)]
Fix _get_app_info_from_db_by_apppath_user

use uid took over instead of getuid

Change-Id: I27ce3a6a0206d08ce76fb8a247909cc792d6378f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoIntegration with security-manager 94/29994/11
Zbigniew Jasinski [Thu, 6 Nov 2014 16:57:36 +0000 (17:57 +0100)]
Integration with security-manager

* Removed dependency on libprivilege-control: perm_app_set_privilege()
  switched to security_manager_prepare_app()
* amd_session_agent gets CAP_MAC_ADMIN, CAP_MAC_OVERRIDE and CAP_SETGID for
  Smack label management
* Fix semantics - launching apps by appId

Change-Id: I408a07f2cc249b76a8c6c9928c632863358ed3ae
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
9 years agoFix bug in removing app_info list when get agent dead signal. 81/35981/2 accepted/tizen/mobile/20150313.083937 accepted/tizen/tv/20150302.010500 accepted/tizen/tv/20150313.083819 accepted/tizen/wearable/20150313.083850 submit/tizen/20150304.022845 submit/tizen_mobile/20150313.022842 submit/tizen_tv/20150227.073215 submit/tizen_tv/20150228.021455 submit/tizen_tv/20150313.022842 submit/tizen_wearable/20150313.022842
Jiwoong Im [Fri, 27 Feb 2015 05:14:20 +0000 (14:14 +0900)]
Fix bug in removing app_info list when get agent dead signal.

JIRA ticket : TC-2419

Change-Id: Id795cd024a1076ad87f48dd55a4c777aeb0a5809
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoFix bug: killing apps abnormally when launching app 76/35876/2 accepted/tizen/tv/20150226.011428 accepted/tizen/wearable/20150226.065656 submit/tizen_common/20150226.010729 submit/tizen_mobile/20150225.124301 submit/tizen_tv/20150225.124301 submit/tizen_wearable/20150225.124301
Sangyoon Jang [Wed, 25 Feb 2015 12:20:39 +0000 (21:20 +0900)]
Fix bug: killing apps abnormally when launching app

some local variable is not initialized
set default value when failed to get vconf value

Change-Id: I8e4fa3414f950418899d3bb70c9431341c48a470
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoapply socket activation to amd and amd_session_agent 70/35770/5 accepted/tizen/mobile/20150225.053512 accepted/tizen/tv/20150225.100213 accepted/tizen/wearable/20150225.053943 submit/tizen_mobile/20150225.030152 submit/tizen_tv/20150225.030125 submit/tizen_wearable/20150225.030214
Jiwoong Im [Tue, 24 Feb 2015 11:45:00 +0000 (20:45 +0900)]
apply socket activation to amd and amd_session_agent

- add socket unit and install unit file by making link in .target.wants
folder.
- Before create server socket in daemon, check if there is socket stream.
- amd and amd_session_agent can receive its preinitailized sockets from
systemd.

Change-Id: I0c58245e734796f2a89c751004703082445033af

9 years agoReplace ail api to pkgmgr-info api 68/35668/4
Jiwoong Im [Mon, 23 Feb 2015 08:00:54 +0000 (17:00 +0900)]
Replace ail api to pkgmgr-info api

JIRA ticket : TC-2464

- ail api can be replaced to pkgmgr_info api.
- Because pkgmgr_info api create db if not exists, use pkgmgr_info api.
- At first, remove ail api in amd_main.c and menu_db_util.h

Change-Id: I658deab441e5af1dde361f6b82cc2b1a66d5c6ba
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoMerge "session agent changed to send dead signal to amd." into tizen accepted/tizen/tv/20150213.052913 submit/tizen_tv/20150212.054854
Suchang Woo [Thu, 12 Feb 2015 05:45:38 +0000 (21:45 -0800)]
Merge "session agent changed to send dead signal to amd." into tizen

9 years agosession agent changed to send dead signal to amd. 78/35178/5
Jiwoong Im [Tue, 10 Feb 2015 05:12:46 +0000 (14:12 +0900)]
session agent changed to send dead signal to amd.

JIRA ticket : TC-2419

When amd session agent gets SIGTERM, exits loop and sends agent_dead_siganl to amd.
amd gets uid of amd sessiong agent which is died, and updates running app list
and app status list.

Change-Id: I2f4d9e60803d71c8c04f6f4732fff6f7a132fbd9
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoMerge "Fix path getter API." into tizen
Suchang Woo [Wed, 11 Feb 2015 05:56:14 +0000 (21:56 -0800)]
Merge "Fix path getter API." into tizen

9 years agoFix path getter API. 52/34952/6
Jiwoong Im [Thu, 5 Feb 2015 01:32:11 +0000 (10:32 +0900)]
Fix path getter API.

JIRA ticket : TC-2314

To get application's path, use pkgmgrinfo_pkginfo_get_root_path api.
aul_get_app_xxx_path api search GLOBAL_USER and regular user DB altogether.

Change-Id: I82389591b570cf1998a64e67ce4f3981dfdf3048
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoFix implicit declaration warnings 06/34906/3
Sangyoon Jang [Wed, 4 Feb 2015 09:04:12 +0000 (18:04 +0900)]
Fix implicit declaration warnings

add missing declarations

Change-Id: I47ba874e922b578b2ab6b0095e62db5740f13025
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoAdd rua history at am_session_agent 65/34865/1
Sangyoon Jang [Wed, 4 Feb 2015 01:44:29 +0000 (10:44 +0900)]
Add rua history at am_session_agent

rua should be handled at each user daemon
remove rua from amd

Change-Id: Idf3419867630d8040add819b1f598f1c11768aeb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "Fix calling result callback" into tizen
Suchang Woo [Wed, 21 Jan 2015 02:29:59 +0000 (18:29 -0800)]
Merge "Fix calling result callback" into tizen

9 years agoMerge "Initialize the default args structure to be sure that debug option is disabled... accepted/tizen/ivi/20150121.052814 submit/tizen_ivi/20150120.093852
Baptiste DURAND [Tue, 20 Jan 2015 08:48:08 +0000 (00:48 -0800)]
Merge "Initialize the default args structure to be sure that debug option is disabled by default" into tizen

9 years agoInitialize the default args structure to be sure that debug option is disabled by... 26/34026/2 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common accepted/tizen/common/20150122.094105 submit/tizen_common/20150120.084957 submit/tizen_mobile/20150223.000000
Baptiste DURAND [Tue, 20 Jan 2015 08:34:13 +0000 (09:34 +0100)]
Initialize the default args structure to be sure that debug option is disabled by default

Change-Id: I362baf3ccf32cc70092f74b18347fed2194cf62a
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
9 years agoFix calling result callback 15/34015/1
Sangyoon Jang [Tue, 20 Jan 2015 01:38:22 +0000 (10:38 +0900)]
Fix calling result callback

when adding callback, it prepends the list
but when finding callback, the first matching callback is called (LIFO)
it should be FIFO

Change-Id: Ied1d71b13be6e572c259eea08d29e59200ddf7bd
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
9 years agoMerge "add a support for data-control provider" into tizen accepted/tizen/mobile/20150121.045017 accepted/tizen/tv/20150121.044517 accepted/tizen/wearable/20150121.044750 submit/tizen/20150120.043506 submit/tizen_mobile/20150121.020049 submit/tizen_tv/20150121.020041 submit/tizen_wearable/20150121.020025
Semun Lee [Tue, 20 Jan 2015 00:08:51 +0000 (16:08 -0800)]
Merge "add a support for data-control provider" into tizen

9 years agoAdd path getter API from tizen_2.3 74/32974/5
Seungmin Yu [Wed, 28 May 2014 07:33:15 +0000 (16:33 +0900)]
Add path getter API from tizen_2.3

To support path getter API in capi-appfw-application and capi-appfw-app-manager,
add path getter API in aul-1.
JIRA ticket : TC-2314

- Get path of appliation's own. (There is no need to introduce user id)
aul_get_app_external_root_path
aul_get_app_root_path
aul_get_app_data_path
aul_get_app_cache_path
aul_get_app_resource_path
aul_get_app_shared_data_path
aul_get_app_shared_resource_path
aul_get_app_shared_trusted_path
aul_get_app_external_data_path
aul_get_app_external_cache_path
aul_get_app_external_shared_data_path
aul_get_app_specific_path
aul_get_app_external_specific_path

- Get path of application which is installed by global user.
aul_get_app_shared_data_path_by_appid
aul_get_app_shared_resource_path_by_appid
aul_get_app_shared_trusted_path_by_appid
aul_get_app_external_shared_data_path_by_appid

- Introduce user id to get other user's application path.
aul_get_app_usr_shared_data_path_by_appid
aul_get_app_usr_shared_resource_path_by_appid
aul_get_app_usr_shared_trusted_path_by_appid
aul_get_app_usr_external_shared_data_path_by_appid

Change-Id: I1e4bbee8948a9e6be13d2c02b02cba0ea4d930ba
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoadd a support for data-control provider 81/33481/3
Jiwoong Im [Mon, 12 Jan 2015 06:43:20 +0000 (15:43 +0900)]
add a support for data-control provider

- set/unset data-control provider callback
- handle data-control request

Change-Id: Id39d47a9a6c5ffd8d656aac330859d74b6aa28e1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
9 years agoRemove unnecessary execution bits from files 95/31495/1 accepted/tizen/common/20141209.182553 accepted/tizen/ivi/20150104.010551 submit/tizen_common/20141208.164856 submit/tizen_common/20141209.181617 submit/tizen_ivi/20141212.121212 submit/tizen_ivi/20141215.444555 submit/tizen_ivi/20141229.291214 submit/tizen_ivi/20141231.424242
Radoslaw Bartosiak [Fri, 5 Dec 2014 10:23:45 +0000 (11:23 +0100)]
Remove unnecessary execution bits from files

Source files (*.c, *.h) and doxygen.conf should not have execution bit set.

Change-Id: I8c49b37159c55014b3d71db184f837a1e6c5baf3
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
9 years agoMerge "packaging: fix for multi-user" into tizen
Baptiste DURAND [Fri, 28 Nov 2014 13:55:58 +0000 (05:55 -0800)]
Merge "packaging: fix for multi-user" into tizen

9 years agopackaging: fix for multi-user 55/30455/2
Jussi Laako [Tue, 7 Oct 2014 14:40:14 +0000 (17:40 +0300)]
packaging: fix for multi-user

Change-Id: I84525d0b76fe656d79ad724cc7047903807dd773
Signed-off-by: Jussi Laako <jussi.laako@linux.intel.com>
9 years agoMerge "change hard coded path in cmake file" into tizen
Semun Lee [Wed, 12 Nov 2014 23:59:59 +0000 (15:59 -0800)]
Merge "change hard coded path in cmake file" into tizen

9 years agoFix file descriptor leak around the reception of APP_DEAD_SIGNAL 50/29850/1 accepted/tizen/common/20141107.085048 accepted/tizen/ivi/20141112.110518 accepted/tizen/mobile/20141117.085705 submit/tizen/20141105.092117 submit/tizen_common/20141105.130459 submit/tizen_ivi/20141111.000000 submit/tizen_mobile/20141120.000000
Baptiste DURAND [Wed, 5 Nov 2014 09:10:40 +0000 (10:10 +0100)]
Fix file descriptor leak around the reception of APP_DEAD_SIGNAL

BUG-Tizen=TC-1835
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Change-Id: I69e5ab5fc24f7c321d5c92d3de4f8a2c7a8be45f

9 years agoUsage strcpy instead of strncpy. 46/29546/1 accepted/tizen/common/20141029.134507 submit/tizen_common/20141029.113059
Baptiste DURAND [Wed, 29 Oct 2014 11:20:09 +0000 (12:20 +0100)]
Usage strcpy instead of strncpy.

Sometimes   strncpy seems to have strange behavior

BUG=XWALK-2800
Change-Id: Idf11bb372e384fb23835b2a062a46d6ca0853ab1
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
9 years agoAdd app_launcher binary to provide this feature 11/29211/4 accepted/tizen/common/20141023.130915 submit/tizen_common/20141023.083752
Baptiste DURAND [Wed, 22 Oct 2014 14:43:53 +0000 (16:43 +0200)]
Add app_launcher binary to provide this feature

Usage : app_launcher
-h --help Display this usage information.
-l --list Display installed apps list
-S --status Display running apps list
-s [tizen application ID] --start Launch application with tizen application ID
-k [tizen application ID] --kill Kill application with tizen application ID
-r [tizen application ID] --is-running Check whether application is running by tizen application ID,
If application is running, 0(zero) will be returned.
-d --debug Activate debug mode
BUG-Tizen:TC-1883

Change-Id: Iea647fc6cb24e22c1537c6322dcac6f66cd487ad
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
9 years agochange hard coded path in cmake file 26/28726/1
Ronan Le Martret [Tue, 14 Oct 2014 16:54:49 +0000 (18:54 +0200)]
change hard coded path in cmake file

 - allow yocto build

Change-Id: I285ef38f94ad8b70d3187611ed07685c0b48f0b8
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
9 years agoRemove useless launchpad-preload systemd service 20/28720/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/3.0.2014.q3/common/20141020.112642 accepted/tizen/3.0.m14.3/ivi/20141017.215417 accepted/tizen/common/20141014.155446 accepted/tizen/ivi/20141017.224350 submit/tizen_3.0.2014.q3_common/20141020.111623 submit/tizen_3.0.m14.3_ivi/20141017.000000 submit/tizen_common/20141014.135300 submit/tizen_ivi/20141017.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
Baptiste DURAND [Tue, 14 Oct 2014 13:04:23 +0000 (15:04 +0200)]
Remove useless launchpad-preload systemd service

BUG-Tizen=TC-1675
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Change-Id: Ibabe7443d814106e0f2f74f6ce23e75b7ec5c13b

9 years agoAdd debug feature for debugging apps purpose 64/28664/2
Baptiste DURAND [Mon, 13 Oct 2014 15:00:12 +0000 (17:00 +0200)]
Add debug feature for debugging apps purpose

-d argument permits to enable debug on the apps.

xwalk deamon should be launched with remote-debbugging-port option

BUG-Tizen=TC-1666
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Change-Id: I7f52a31a6d45237f022707f798d8d317c562719d

9 years agouse systemd macro instead of hard path. 62/27762/1 accepted/tizen/3.0.2014.q3/common/20141020.094319 accepted/tizen/common/20140930.171003 accepted/tizen/ivi/20141007.214541 submit/tizen_3.0.2014.q3_common/20141020.090531 submit/tizen_3.0.2014.q3_common/20141020.093726 submit/tizen_common/20140929.110645 submit/tizen_ivi/20141007.111111
Ronan Le Martret [Thu, 18 Sep 2014 14:23:07 +0000 (16:23 +0200)]
use systemd macro instead of hard path.

Change-Id: I9c424e75cca50038246391acdd84d608dfb7f614
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
9 years agoFix applications management when a request is made by a process run as root. 23/27623/1 accepted/tizen/common/20140917.103348 accepted/tizen/ivi/20140925.212644 submit/tizen_common/20140916.181156 submit/tizen_common/20140916.203010 submit/tizen_ivi/20140919.000000 submit/tizen_ivi/20140924.000000 submit/tizen_ivi/20140924.063121 submit/tizen_ivi/20140924.150732
Baptiste DURAND [Wed, 10 Sep 2014 10:22:22 +0000 (12:22 +0200)]
Fix applications management when a request is made by a process run as root.

When a request comes from ROOT User we switch from ROOT USER to default USER to allow launch etc...

Change-Id: Ia5a2155351de6b3272569cb257eb04b5927a86d4
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
9 years agoUpdate aul function prototype related to status request to include Multi user changes 83/27283/2
Baptiste DURAND [Wed, 10 Sep 2014 08:57:50 +0000 (10:57 +0200)]
Update aul function prototype related to status request to include Multi user changes

Change-Id: Ia9dbee491ecfe586861b8e5ed2eb3e3946c99db2
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
9 years agoRetrieve tizenglobalapp uid with tzplatform_getuid 22/27622/1
Sabera Djelti (sdi2) [Tue, 2 Sep 2014 16:17:25 +0000 (18:17 +0200)]
Retrieve tizenglobalapp uid with tzplatform_getuid

+ fix ail_package_get_usr_appinfo

Change-Id: I137803a35353570aa96db9ce85fc8243ed61e590
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
9 years agofix __app_dbus_signal_filter() not to fail on a valid unix user 46/26246/2 accepted/tizen/common/20140905.091300 accepted/tizen/ivi/20140909.103718 submit/tizen_common/20140904.145308 submit/tizen_ivi/20140909.000000
Janos Kovacs [Tue, 19 Aug 2014 17:08:56 +0000 (20:08 +0300)]
fix __app_dbus_signal_filter() not to fail on a valid unix user

Change-Id: Ib67ddfaebf62d26f01256c625d13d770e71f8d48

9 years agoRemove useless cgroup management functions 14/25514/4
Baptiste DURAND [Wed, 6 Aug 2014 10:00:55 +0000 (12:00 +0200)]
Remove useless cgroup management functions

Bug-Tizen: TC-1356

Change-Id: If0be73523b3633583aad412583d51cb503e52bda
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
9 years agoRemove Wayland,X11 and EFL dependencies 19/24819/3
Stephane Desneux [Tue, 22 Jul 2014 17:31:49 +0000 (19:31 +0200)]
Remove Wayland,X11 and EFL dependencies

ecore_main_loop calls were replaced by g_main_loop calls

Change-Id: I76ad2615aa66eb9c1af3e482f528aebb45708401
Bug-Tizen: BTY-3
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
9 years agofix build after pkgmgr-info api change 79/25879/1 submit/tizen_common/20140811.192137 submit/tizen_ivi/20140813.000000 submit/tizen_ivi/20140818.000000 submit/tizen_ivi/20140818.000001 submit/tizen_ivi/20140818.000002 submit/tizen_ivi/20140822.000000 submit/tizen_ivi/20140827.000000 submit/tizen_ivi/20140828.000000 submit/tizen_ivi/20140829.000000
Stephane Desneux [Mon, 11 Aug 2014 17:14:01 +0000 (19:14 +0200)]
fix build after pkgmgr-info api change

am_daemon: call to pkgmgrinfo_appinfo_get_appinfo_user()
is renamed to pkgmgrinfo_appinfo_get_usr_appinfo()

Change-Id: I9a44d34cb1782db07ed4e6f2fbfbdd53f40f4cbb
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
9 years agoMulti user features : 22/25722/2 submit/tizen_common/20140811.160835 submit/tizen_common/20140811.161134
Sabera Djelti (sdi2) [Tue, 1 Jul 2014 13:19:35 +0000 (15:19 +0200)]
Multi user features :

    ->Add/Use Usr App related fonctions instead of Global App related Functions

Change-Id: I7c5cfb48ed6725f118c0117cc0482cccaf333669
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
10 years agoFix AMD crashs when we try to launch an app by using a wrong appid 45/24645/1 accepted/tizen/common/20140723.152158 submit/tizen/20140717.160010
Baptiste DURAND [Thu, 17 Jul 2014 13:53:19 +0000 (15:53 +0200)]
Fix AMD crashs when we try to launch an app by using a wrong appid

-> Return an error in appinfo_find when we don't find the app information
-> NULL is the correct way to return an error

Change-Id: I243c6cd81099aff40b64a5f1afb0e0c816619713
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
10 years agoFix TC-1347 96/23696/1 tizen_3.0.m14.2_ivi accepted/tizen/common/20140701.163920 accepted/tizen/ivi/20140701.221539 submit/tizen/20140701.160550 tizen_3.0.m14.2_ivi_release
Baptiste DURAND [Tue, 1 Jul 2014 13:53:03 +0000 (15:53 +0200)]
Fix TC-1347

Change smack label on AMD cmd socket => add chsmack call in service
Remove app from running list when app is closed. => Append buffer null end byte + Fix User check

Change-Id: I068ca441c7085ee2830e6ac8e520e7ef5c842287
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
10 years agoRemove spurious ELM_ENGINE setting in amd_agent 92/23492/1 accepted/tizen/common/20140626.124226 submit/tizen/20140626.124123 submit/tizen_ivi/20140626.125712 submit/tizen_ivi/20140626.130032 submit/tizen_ivi/20140626.144348
Stephane Desneux [Thu, 26 Jun 2014 12:34:22 +0000 (14:34 +0200)]
Remove spurious ELM_ENGINE setting in amd_agent

This setting prevents EFL apps to start correctly.

Change-Id: Ic7c9ee59bd504fbc5db7839111ca7224c0fb1f77
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
10 years agoRemove hardcoded paths in aul.manifest 71/22971/1
Christophe Moreau [Fri, 13 Jun 2014 14:09:30 +0000 (16:09 +0200)]
Remove hardcoded paths in aul.manifest

Bug-Tizen : TC-4

Change-Id: Ib177266275d459db9c457352588f0fee27e86e0b
Signed-off-by: Christophe Moreau <christophe.moreau@open.eurogiciel.org>
10 years agoMulti-user implementation feature 94/21994/1 submit/tizen_common/20140528.173953 submit/tizen_common/20140528.183233 submit/tizen_common/20140529.194900 submit/tizen_common/20140530.020532 submit/tizen_common/20140530.021300 submit/tizen_common/20140602.071652 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
Baptiste DURAND [Fri, 28 Feb 2014 17:01:18 +0000 (18:01 +0100)]
Multi-user implementation feature

- Desactivate preload features
- Create am_agent process
- Remove old launchpad daemon
- Make am_agent discuss with amd process to launch an app
- Add Crosswalk Launchpad capabilities
- renamed am_agent to am_session_agent; fix segfault in amd_session_agent after first app launch
- cleanup agent code, added uid in amd request to agent
- Fix build with Cosswalk and add Dbus call
- fix build; added specific dlog tag for agent
- fix caller_uid check in agent
- Use DBUS SESSION bus instead of DBUS SYSTEM bus
- amd_session_agent now sends an APP_DEAD_SIGNAL request to amd daemon to signal the end of an app
- Fix Error Management
- amd: check that sender of APP_DEAD_SIGNAL is /usr/bin/amd_session_agent
- Add systemd service
- Add User Management for get applications ,Remove DBUS launch mechanism
- get uid for multiuser support

more info : https://wiki.tizen.org/wiki/Multi-user_Architecture

Change-Id: Iee37e603cb366d94bcc945df7edf3c3817fdee82
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
10 years agoModification about smack label of db file belong to process. 81/20581/2 accepted/tizen/common/20140519.230419 accepted/tizen/ivi/20140521.203120 accepted/tizen/mobile/20140602.132704 submit/tizen/20140516.061434
jooseong.lee [Fri, 9 May 2014 10:10:46 +0000 (19:10 +0900)]
Modification about smack label of db file belong to process.

[Problem]
Most db files have 'floor' label.  Because these are created during image creation time.
Therefore no process can write the dbs (since 'floor' label allows only read and execute)

[Solution]
Modify smack label of the db files based on condition below referring three domain model
Condition1. Assign domain of process which creates db files
Condition2. Assign domain of process accesses db files.

Change-Id: I705b4f646ad3f9e41f014573c8cebfbabc8bdcd8
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
10 years agoChange /tmp/amd_ready to /run/amd_ready 29/20029/3 accepted/tizen/common/20140512.080251 submit/tizen/20140510.055129
Semun Lee [Fri, 25 Apr 2014 06:23:29 +0000 (15:23 +0900)]
Change /tmp/amd_ready to /run/amd_ready

/tmp/amd_ready file was used for path activation in the systemd user session.
Path is changed to /run/amd_ready to fix issue on SMACK label issue and
to use the right directory for the purpose.

Change-Id: Iceb5e61e5956cc367f5501a09cd727c76b76c177
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
10 years agoRemove SMACK rule file(.rule) according three domain model 50/19350/2 accepted/tizen/common/20140506.144121 submit/tizen/20140502.084937
seong.chung [Fri, 11 Apr 2014 03:59:38 +0000 (12:59 +0900)]
Remove SMACK rule file(.rule) according three domain model

Since SMACK only allows three labels, "_"(floor), "User", "System"
The labels of current rule file are not appropriate
Result :
- Remove rule file
- Remove file declaration statement of spec file

Reference site
https://wiki.tizen.org/wiki/Security:SmackThreeDomainModel

Change-Id: Ibdb278463e6a206afb8a7d82b56c8eae800f6b22
Signed-off-by: seong.chung <seong.chung@samsung.com>
10 years agoMerge "Update deprecated libprivilege-control API functions." into tizen
Semun Lee [Wed, 9 Apr 2014 23:39:51 +0000 (16:39 -0700)]
Merge "Update deprecated libprivilege-control API functions." into tizen

10 years agoRemove smack hardcoded path 19/19119/1
Jean-Benoit MARTIN [Mon, 7 Apr 2014 15:10:19 +0000 (17:10 +0200)]
Remove smack hardcoded path

Bug-Tizen: PTREL-776

Change-Id: I92032cb365fca44cefa5e6fe393e71d625ad1e14
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
10 years agoUpdate deprecated libprivilege-control API functions. 73/19173/1
Marcin Lis [Mon, 7 Apr 2014 11:20:44 +0000 (13:20 +0200)]
Update deprecated libprivilege-control API functions.

Change-Id: Ia3bd3396471e63b5baf1815c2828e7e423b1ed13
Signed-off-by: Marcin Lis <m.lis@samsung.com>
10 years agoUse fsetxattr() directly to set '@' and '*' for the socket. 52/18252/2
Jarkko Sakkinen [Wed, 19 Mar 2014 11:17:13 +0000 (13:17 +0200)]
Use fsetxattr() directly to set '@' and '*' for the socket.

The functions that were used are not part of libsmack v1.0 API.

Change-Id: I52690bc09ff5d712df410e7ec3e1f5687b8d2ae6
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
10 years agoAdd multi-user support 02/18202/2
Jiwoong Im [Mon, 17 Mar 2014 06:58:17 +0000 (15:58 +0900)]
Add multi-user support

Bug-Tizen: PTREL-331
Change-Id: I989696309e9e76cfd54682e0556729beb89a849e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
10 years agoFix PTREL-624 20/15320/1 38/15238/2 tizen_ivi_panda submit/tizen/20140125.005007 submit/tizen_ivi_panda/20140403.192401
Alex Wu [Fri, 17 Jan 2014 07:15:58 +0000 (15:15 +0800)]
Fix PTREL-624

launchpad-preload@app.service set a wrong XDG_RUNTIME_DIR
environment.

We use new unit (user-session-launch@.service ) and symbol link
(user-session-launch@seat0-5000.service) to auto-trigger a user
session. This results in a environment
"XDG_RUNTIME_DIR=/run/user/5000" in the user session. But the
lauchpad service still use symbol link
"launchpad-preload@app.service" which result in a environment
"XDG_RUNTIME_DIR=/run/user/app". This make XDG_RUMTIME_DIR
dismatch between app launched by launchpad and program, e.g.
weston, launched in user session. And hence app launched by
launchpad failed at connecting socket /run/user/5000/wayland-0
that created by weston.

Change-Id: I7896dd001e9602772d96f4a20057cd90369a3a9f
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
10 years agoinit wayland support. 13/13413/6 accepted/tizen/generic accepted/tizen/ivi accepted/tizen/mobile accepted/tizen_generic accepted/tizen_ivi_panda accepted/tizen_ivi_release tizen_ivi_release accepted/tizen/generic/20140114.095645 accepted/tizen/generic/20140312.091821 accepted/tizen/ivi/20140110.223927 accepted/tizen/ivi/panda/20140312.093539 accepted/tizen/ivi/release/20140312.044259 accepted/tizen/ivi/release/20140312.104114 accepted/tizen/mobile/20140113.182020 submit/tizen/20140110.215130 submit/tizen/20140312.070641 submit/tizen_ivi_release/20140312.044451 submit/tizen_ivi_release/20140312.071107
wangfei [Thu, 9 Jan 2014 06:51:58 +0000 (01:51 -0500)]
init wayland support.

The display server based on X or Wayland, is now a choice of different profile in Tizen 3.0.
Basically and consistently, two macros were used "with wayland" and "with x".
Below summarize the combination of the macros:

| wayland |  x  | meaning
|---------------------------
|   0     |  1  | pure X11 platform(no wayland)
|   1     |  0  | pure wayland platform (no X11)
|   1     |  1  | wayland but X compatibility
|   0     |  0  | no X and no wayland

This method unifies the meaning and usage. Deploy this method to aul-1 package.
Currently we need "pure wayland platform (no X11)" status,so "with wayland" and "with x" are
defined into "1" and "0" in build.conf file.If you need other status of above illustration,
please change values of "with x" and "with wayland" in your build.conf file.

Signed-off-by: wangfei <feix.w.wang@intel.com>
Change-Id: I50cbee1ae458ac49bd0ffc839f65f4c7fb11ac9b

10 years agoRemove the app2sd dependency 73/12973/1 accepted/tizen/generic/20140106.141215 accepted/tizen/generic/20140108.092534 accepted/tizen/ivi/20140106.203803 accepted/tizen/mobile/20140107.212856 submit/tizen/20140106.041919 submit/tizen/20140108.022349 submit/tizen_ivi_release/20140108.030038
Jaeho Lee [Thu, 17 Oct 2013 10:48:56 +0000 (19:48 +0900)]
Remove the app2sd dependency

Change-Id: I9cfcbec028d299ef967a625e0c8eeaea280b39c4
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>