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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
Semun Lee [Wed, 15 Jul 2015 00:52:16 +0000 (17:52 -0700)]
Merge "Use tmpfiles to create volatile directory, cleanup" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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
Semun Lee [Thu, 21 May 2015 02:32:19 +0000 (19:32 -0700)]
Merge "Fix _status_app_is_running_v2" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
Sangyoon Jang [Wed, 29 Apr 2015 08:49:20 +0000 (01:49 -0700)]
Merge "Integration with security-manager" into tizen
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>
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>
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>
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>
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>
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
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>
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
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>
Suchang Woo [Wed, 11 Feb 2015 05:56:14 +0000 (21:56 -0800)]
Merge "Fix path getter API." into tizen
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>
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>
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>
Suchang Woo [Wed, 21 Jan 2015 02:29:59 +0000 (18:29 -0800)]
Merge "Fix calling result callback" into tizen
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
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>
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>
Semun Lee [Tue, 20 Jan 2015 00:08:51 +0000 (16:08 -0800)]
Merge "add a support for data-control provider" into tizen
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>
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>
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>
Baptiste DURAND [Fri, 28 Nov 2014 13:55:58 +0000 (05:55 -0800)]
Merge "packaging: fix for multi-user" into tizen
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>
Semun Lee [Wed, 12 Nov 2014 23:59:59 +0000 (15:59 -0800)]
Merge "change hard coded path in cmake file" into tizen
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
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>
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>
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>
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
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
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Semun Lee [Wed, 9 Apr 2014 23:39:51 +0000 (16:39 -0700)]
Merge "Update deprecated libprivilege-control API functions." into tizen
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>
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>
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>
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>
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>
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
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>
Jaeho Lee [Sat, 12 Oct 2013 05:41:24 +0000 (14:41 +0900)]
Fix a launch bug at installation
Change-Id: I51e944de3bc6647f425ace0a6ea48c50b43dc5ff
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>