- Security team requested apply the smack rule to the db files so that
only ua-manager can get access to the db files.
Change-Id: I454153a5167a66d61003f947cc93d53aaba1a915
Signed-off-by: saerome kim <saerome.kim@samsung.com>
mkdir -p %{buildroot}%{_unitdir}
cp ua-manager.service %{buildroot}%{_unitdir}/ua-manager.service
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+
+/usr/bin/chsmack -a 'System' %{database_full_path}
+/usr/bin/chsmack -a 'System' %{database_full_path}-journal
%postun -p /sbin/ldconfig