From: Sangyoon Jang Date: Mon, 14 Sep 2015 06:59:05 +0000 (+0900) Subject: Fix get_size result file path X-Git-Tag: submit/tizen/20150914.121938~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F82%2F48082%2F2;p=platform%2Fcore%2Fappfw%2Fslp-pkgmgr.git Fix get_size result file path create result file at /tmp/pkgmgr/ set smack label to result file as "*" note that this method(result to tmp file) will be changed later (this is workaround) Change-Id: I4cda27a0e3e06bcbe1a59d9e92d6b69b599884df Signed-off-by: Sangyoon Jang --- diff --git a/client/include/package-manager.h b/client/include/package-manager.h index 576e192..8f975a4 100644 --- a/client/include/package-manager.h +++ b/client/include/package-manager.h @@ -162,7 +162,7 @@ extern "C" { #define PKGCMD_ERR_UNKNOWN_STR "Unknown Error" #define PKG_SIZE_INFO_FILE "/tmp/pkgmgr_size_info.txt" -#define PKG_SIZE_INFO_PATH "/tmp" +#define PKG_SIZE_INFO_PATH "/tmp/pkgmgr" #define PKG_SIZE_INFO_TOTAL "__TOTAL__" #define PKG_CLEAR_ALL_CACHE "__ALL__" diff --git a/packaging/pkgmgr.conf b/packaging/pkgmgr.conf new file mode 100644 index 0000000..129544b --- /dev/null +++ b/packaging/pkgmgr.conf @@ -0,0 +1,3 @@ +d /tmp/pkgmgr 1777 root users +t /tmp/pkgmgr - - - - security.SMACK64="User::App::Shared" +t /tmp/pkgmgr - - - - security.SMACK64TRANSMUTE="TRUE" diff --git a/packaging/pkgmgr.spec b/packaging/pkgmgr.spec index c32da86..f8c3d58 100644 --- a/packaging/pkgmgr.spec +++ b/packaging/pkgmgr.spec @@ -14,6 +14,7 @@ Source1004: %{name}-server.manifest Source1005: %{name}-installer.manifest Source1006: %{name}-installer-devel.manifest Source1007: %{name}-types-devel.manifest +Source1008: %{name}.conf BuildRequires: cmake BuildRequires: unzip @@ -107,6 +108,9 @@ rm -f %{buildroot}%{_bindir}/pkgmgr_backend_sample rm -f %{buildroot}%{_libdir}/libpkgmgr_backend_lib_sample.so rm -f %{buildroot}%{_libdir}/libpkgmgr_parser_lib_sample.so +mkdir -p %{buildroot}%{_tmpfilesdir}/ +install -m 0644 %{SOURCE1008} %{buildroot}%{_tmpfilesdir}/pkgmgr.conf + mkdir -p %{buildroot}%{_sysconfdir}/package-manager/backend mkdir -p %{buildroot}%{_sysconfdir}/package-manager/backendlib mkdir -p %{buildroot}%{_sysconfdir}/opt/upgrade @@ -162,6 +166,7 @@ chsmack -a '*' %{TZ_SYS_RW_PACKAGES} %{_bindir}/pkginfo %{_datadir}/mime/packages/mime.wac.xml %{_datadir}/mime/packages/mime.tpk.xml +%{_tmpfilesdir}/pkgmgr.conf %exclude %{_includedir}/pkgmgr/comm_client.h %exclude %{_includedir}/pkgmgr/comm_config.h %exclude %{_sysconfdir}/package-manager/server/queue_status