Make dowload provider run properly with multi-user and on 64 bit architecture 23/24123/3 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20140813.164908 submit/tizen_common/20140813.163208 submit/tizen_ivi/20140818.000000 submit/tizen_ivi/20140818.000001 submit/tizen_ivi/20140818.000002 submit/tizen_ivi/20140820.000000 submit/tizen_ivi/20140822.000000 submit/tizen_ivi/20140825.000000 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
authorRomuald Texier-Marcadé <romuald.texier-marcade@open.eurogiciel.org>
Mon, 7 Jul 2014 13:01:02 +0000 (15:01 +0200)
committerRomuald Texier-Marcadé <romuald.texier-marcade@open.eurogiciel.org>
Fri, 11 Jul 2014 13:39:38 +0000 (15:39 +0200)
commit0bf02f3d4683689e0bdb132e0ff1ccee1e328ad9
tree9440c7a3e9ffc736271276eee00492fb3a0f5a46
parent6ad4737fe27b987c48391debc24b3678fd002a38
Make dowload provider run properly with multi-user and on 64 bit architecture

bug fixes:
 - get smack fs path from smack API
 - use int type with ioctl FIONREAD to get correct values on both 64 and 32 bits arches
 - fixed wrong usage of smack_new_label_from_socket
 - moved management of default destination to CAPI in order to run the code
with user privileges
 - removed code trying to guess remaining disk space because it only checked an
unreachable, hard coded folder instead of real destination. The case when the disk
is full is already handled at writing time.
 - added dependency on net-config (in specfile) because DP can't work properly
without it.

Bug-Tizen: TC-1409
Bug-Tizen: TC-1415
Change-Id: Ib98cabfd074313e2ac37300ce1af5e318de6327f
Signed-off-by: Romuald Texier-Marcadé <romuald.texier-marcade@open.eurogiciel.org>
agent/download-agent-file.c
agent/download-agent-http-mgr.c
agent/download-agent-utils.c
agent/include/download-agent-file.h
agent/include/download-agent-utils.h
packaging/download-provider.spec
provider-interface/download-provider-interface.c
provider/download-provider-request.c
provider/download-provider-thread-request.c