diff options
author | Sangyoon Jang <s89.jang@samsung.com> | 2015-09-14 15:59:05 +0900 |
---|---|---|
committer | Sangyoon Jang <s89.jang@samsung.com> | 2015-09-14 16:03:58 +0900 |
commit | a7ce753776a7ec5515f0ab5c66071407637c71da (patch) | |
tree | 26ff1d61530ea0cb4674783029fc056cd2177d64 | |
parent | d84fc9845c7bfc42624458cc989a4021a727a2d4 (diff) | |
download | slp-pkgmgr-a7ce753776a7ec5515f0ab5c66071407637c71da.tar.gz slp-pkgmgr-a7ce753776a7ec5515f0ab5c66071407637c71da.tar.bz2 slp-pkgmgr-a7ce753776a7ec5515f0ab5c66071407637c71da.zip |
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 <s89.jang@samsung.com>
-rw-r--r-- | client/include/package-manager.h | 2 | ||||
-rw-r--r-- | packaging/pkgmgr.conf | 3 | ||||
-rw-r--r-- | packaging/pkgmgr.spec | 5 |
3 files changed, 9 insertions, 1 deletions
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 |