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>
Young Ik Cho [Fri, 11 Oct 2013 12:13:49 +0000 (21:13 +0900)]
add exception for submode request
Change-Id: I9714d5552db92af333d4bfbf77cb2897de081ba7
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
Patrick McCarty [Wed, 20 Nov 2013 06:37:51 +0000 (22:37 -0800)]
Update changelog
Change-Id: Icd411db6cc1ccbff307431d865b227247bc28153
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Casey Schaufler [Fri, 8 Nov 2013 22:51:52 +0000 (14:51 -0800)]
Assign launchpad_preloading_preinitializing_daemon a Smack
execution label of "User". This sets the Smack label on the
daemon process upon invocation. This allows the daemon to
launch applications into the User security domain.
Change-Id: I8b870b846da1d2349b9f8b225b5f77bdaf28eb86
Signed-off-by: Casey Schaufler <casey.schaufler@intel.com>
Patrick McCarty [Tue, 19 Nov 2013 20:55:08 +0000 (12:55 -0800)]
Move package manifest to the packaging/ directory
The Smack manifests are package collateral, so they should live in the
packaging/ directory.
Change-Id: I243d59680a7b3d72858df740238a3e7ea51b8eec
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Rusty Lynch [Thu, 31 Oct 2013 17:08:51 +0000 (10:08 -0700)]
Adding changelog
Change-Id: I6cd760a4f4715b9e9ba9804d1633141b8e2c9dc5
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Chengwei Yang [Tue, 29 Oct 2013 06:16:22 +0000 (14:16 +0800)]
Fix: amd will crash if ecore_x_init() failed
if ecore_x_init() failed, then its internal variable _ecore_x_disp is
NULL and will cause crash in _key_init().
Bug: https://bugs.tizen.org/jira/browse/PTREL-137
Change-Id: I116fca62b35cc38a7ff14036ecf726000770f4b0
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Rusty Lynch [Sat, 19 Oct 2013 00:35:46 +0000 (17:35 -0700)]
Restore previously clobbered fix for manifest file
Tizen 3.0 has not yet established security domains, so all packages
must use a basic floor manifest or else the system will not function
Change-Id: I3fe71117bf894b2121ea55b451b4a44947d2d1ad
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Rusty Lynch [Wed, 9 Oct 2013 01:00:43 +0000 (18:00 -0700)]
Add wayland support
Change-Id: If9dc1879e63e53e5f938207abaed2099e3e285b5
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Patrick McCarty [Mon, 21 Oct 2013 22:02:50 +0000 (15:02 -0700)]
Merge "Fix ac.service * Removed the mobile specific environment entries with a new EnvironmentFile entry added to allow profile specific entries * Removed the horrible wait hack from the exec line. This is not the way to handle dependencies * Removed the precondition hacks which are not needed" into tizen
Patrick McCarty [Mon, 21 Oct 2013 21:58:58 +0000 (14:58 -0700)]
Merge "Fix spec licence name to pass rpmlint test" into tizen
Patrick McCarty [Mon, 21 Oct 2013 21:58:36 +0000 (14:58 -0700)]
Merge "Restore previously lost fix to systemd unit file" into tizen
Chengwei Yang [Mon, 21 Oct 2013 02:49:40 +0000 (10:49 +0800)]
Init local variable to avoid crash if loading pkg info failed
The uninitialized local variable will cause amd crash (coredump) at
g_hash_table_foreach since the junk pointer in amd.af, this is triggered
by pkg info load failure from pkgmgr.
Change-Id: I1145c11dc88030b40834de769de1443786ca5dda
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Rusty Lynch [Wed, 9 Oct 2013 01:10:08 +0000 (18:10 -0700)]
Fix ac.service
* Removed the mobile specific environment entries with a new
EnvironmentFile entry added to allow profile specific entries
* Removed the horrible wait hack from the exec line. This is not
the way to handle dependencies
* Removed the precondition hacks which are not needed
Change-Id: I5e31a3df5d126358d850f08553231fc8f180614f
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Rusty Lynch [Tue, 8 Oct 2013 23:59:12 +0000 (16:59 -0700)]
Fix spec licence name to pass rpmlint test
Change-Id: Iae4fe68312c2c2e5ae8b379d96bf9fb3ce02b330
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Rusty Lynch [Tue, 8 Oct 2013 22:54:58 +0000 (15:54 -0700)]
Restore previously lost fix to systemd unit file
* change the name of the env file to reflect the fact that this
service is shared across all profiles. The actual env file is
created in a platform specific manager, allowing platform specific
environment variables
* use "=-" when declaring the env file so the service will start even
if the env file does not exist
* remove hard coding DISPLAY environment. if mobile still needs this
hack then add it to the environment file
Change-Id: I1279224990f1bc176e750b24945fa9734ae45d00
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
KyungwooNoh [Wed, 2 Oct 2013 01:58:44 +0000 (10:58 +0900)]
Merge branch 'tizen_2.2' into tizen
Conflicts:
am_daemon/amd_launch.c
Change-Id: I19b1529045ef9ccc9cd222a23c6dba7be1e55542
Signed-off-by: KyungwooNoh <kw1004.noh@samsung.com>
Jaeho Lee [Thu, 26 Sep 2013 07:42:21 +0000 (16:42 +0900)]
Add license file
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
Anas Nashif [Mon, 16 Sep 2013 18:22:09 +0000 (14:22 -0400)]
update changelog
Change-Id: Ibb34c24777e7606c3a4dc978daf1210127918c34
Anas Nashif [Mon, 16 Sep 2013 18:19:20 +0000 (14:19 -0400)]
Merge branch 'tizen_2.2' into tizen
Conflicts:
am_daemon/amd_main.c
packaging/ac.service
packaging/aul.spec
Change-Id: Idda822820f548a705da0db53c952f1faafd78fb3
Jaeho Lee [Fri, 6 Sep 2013 06:40:35 +0000 (15:40 +0900)]
Fix valrind bug
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
Change-Id: Ic802d5410060624ff6a6693460d477136915152a
Anas Nashif [Tue, 3 Sep 2013 16:02:04 +0000 (12:02 -0400)]
Cleanup Packaging
- Do not install sysvinti scripts
- Fixed license and groups
Change-Id: I1d815be4cae744b9926ba1ce635ba9d05f483fc2
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Young Ik Cho [Fri, 23 Aug 2013 06:30:41 +0000 (15:30 +0900)]
fix redundant launchpad code
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
Change-Id: I6593565662b1ba6e94bdc93be7cfdce8831182a8
Patrick McCarty [Mon, 12 Aug 2013 22:53:54 +0000 (15:53 -0700)]
packaging: fix errors in %preun and %postun scriptlets
- If /sbin/ldconfig is not the only action for a scriptlet, the -p
option should not be used.
- If the 'with multi user' option is not true, the shell conditional
will be invalid.
This commit fixes both issues.
Change-Id: Ia610aad0576b9132a60f26063cbb35345ed58f92
Jaeho Lee [Thu, 8 Aug 2013 06:54:44 +0000 (15:54 +0900)]
merge private
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
Jaeho Lee [Wed, 7 Aug 2013 09:58:56 +0000 (18:58 +0900)]
Fix DCM-2250 issue
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>