summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/dlog.spec11
-rw-r--r--packaging/dlog_logger.conf-debug.in (renamed from packaging/dlog_logger.conf-micro-debug.in)2
-rw-r--r--packaging/dlog_logger.conf.in6
-rw-r--r--packaging/dlog_logger.service4
-rw-r--r--packaging/dlogutil.manifest5
5 files changed, 16 insertions, 12 deletions
diff --git a/packaging/dlog.spec b/packaging/dlog.spec
index 5eda452..97d1f9e 100755
--- a/packaging/dlog.spec
+++ b/packaging/dlog.spec
@@ -10,7 +10,7 @@ Source102: packaging/libdlog.manifest
Source201: packaging/dlog.conf.in
Source202: packaging/dlog_logger.conf.in
Source203: packaging/dlog_logger.conf-micro.in
-Source204: packaging/dlog_logger.conf-micro-debug.in
+Source204: packaging/dlog_logger.conf-debug.in
Source301: packaging/dlog_logger.service
Source302: packaging/dlog_logger.path
BuildRequires: autoconf
@@ -60,16 +60,10 @@ Utilities for print log data
cp %{SOURCE101} .
cp %{SOURCE102} .
%autogen --disable-static
-%configure --disable-static \
-%if 0%{?tizen_build_binary_release_type_daily}
+%configure --disable-static \
--enable-fatal_on \
-%endif
-%if 0%{?tizen_build_binary_release_type_eng}
--enable-engineer_mode \
-%endif
-%if 0%{?sec_build_binary_debug_enable}
--enable-debug_enable \
-%endif
--without-systemd-journal
make %{?jobs:-j%jobs}
@@ -134,6 +128,7 @@ systemctl daemon-reload
%files -n libdlog-devel
%{_includedir}/dlog/dlog.h
+%{_includedir}/dlog/dlog-internal.h
%{_libdir}/pkgconfig/dlog.pc
%{_libdir}/libdlog.so
diff --git a/packaging/dlog_logger.conf-micro-debug.in b/packaging/dlog_logger.conf-debug.in
index a9c892f..7fbfa33 100644
--- a/packaging/dlog_logger.conf-micro-debug.in
+++ b/packaging/dlog_logger.conf-debug.in
@@ -1,3 +1,3 @@
dlogutil -b system -r 5120 -n 1 -f /var/log/dlog_system -v dump *:I
dlogutil -b main -r 3072 -n 1 -f /var/log/dlog_main -v dump *:W
-dlogutil -b radio -r 2048 -n 4 -f /var/log/dlog_radio -v dump
+dlogutil -b radio -r 2048 -n 3 -f /var/log/dlog_radio -v dump
diff --git a/packaging/dlog_logger.conf.in b/packaging/dlog_logger.conf.in
index 5445824..d8c301d 100644
--- a/packaging/dlog_logger.conf.in
+++ b/packaging/dlog_logger.conf.in
@@ -1,3 +1,3 @@
-dlogutil -b system -r 512 -n 1 -f /var/log/dlog_system -v dump *:I
-dlogutil -b main -r 256 -n 1 -f /var/log/dlog_main -v dump *:W
-dlogutil -b radio -r 512 -n 1 -f /var/log/dlog_radio -v dump
+dlogutil -b system -r 5120 -n 1 -f /var/log/dlog_system -v dump *:I
+dlogutil -b main -r 3072 -n 1 -f /var/log/dlog_main -v dump *:W
+dlogutil -b radio -r 1024 -n 1 -f /var/log/dlog_radio -v dump
diff --git a/packaging/dlog_logger.service b/packaging/dlog_logger.service
index 7ee6f1d..9b165ee 100644
--- a/packaging/dlog_logger.service
+++ b/packaging/dlog_logger.service
@@ -2,6 +2,10 @@
Description=Dumps dlog logs onto disk
[Service]
+Nice=19
+User=log
+Group=log
+SmackProcessLabel=dlogutil
ExecStart=/usr/bin/dlog_logger -b 99 -t 600
Restart=always
diff --git a/packaging/dlogutil.manifest b/packaging/dlogutil.manifest
index fc0a1bf..eb0a07b 100644
--- a/packaging/dlogutil.manifest
+++ b/packaging/dlogutil.manifest
@@ -1,6 +1,11 @@
<manifest>
<define>
<domain name="dlogutil"/>
+ <request>
+ <smack request="device::app_logging" type="r"/>
+ <smack request="device::sys_logging" type="r"/>
+ <smack request="system::sys_logging" type="rwx"/>
+ </request>
</define>
<assign>
<filesystem path="/usr/bin/dlog_logger" label="_" exec_label="none"/>