Fix get_size result file path 82/48082/2
authorSangyoon Jang <s89.jang@samsung.com>
Mon, 14 Sep 2015 06:59:05 +0000 (15:59 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 14 Sep 2015 07:03:58 +0000 (16:03 +0900)
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>
client/include/package-manager.h
packaging/pkgmgr.conf [new file with mode: 0644]
packaging/pkgmgr.spec

index 576e192..8f975a4 100644 (file)
@@ -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 (file)
index 0000000..129544b
--- /dev/null
@@ -0,0 +1,3 @@
+d      /tmp/pkgmgr     1777    root    users
+t      /tmp/pkgmgr     -       -       -       -       security.SMACK64="User::App::Shared"
+t      /tmp/pkgmgr     -       -       -       -       security.SMACK64TRANSMUTE="TRUE"
index c32da86..f8c3d58 100644 (file)
@@ -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