hal-rpmdb-checker.service has used /opt/etc/hal path in order to create
the files for both checking the platform booting is first booting and
hal rpmdb version are matched or not. So that /opt/etc/hal patch
should be set with the proper capability with UID/GID/Smack lable.
Change-Id: I07bec1b2f824d8a0114659346bab09911f863e42
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
FILES_MATCHING PATTERN "*.h")
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/${PROJECT_NAME}.pc
DESTINATION ${LIBDIR}/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/hal-rpmdb-checker.conf
+ DESTINATION /usr/lib/tmpfiles.d)
ADD_SUBDIRECTORY(tests)
%post
/sbin/ldconfig
chsmack -a "System" -t %{hal_rpmdb_checker_path}
+systemd-tmpfiles /usr/lib/tmpfiles.d/hal-rpmdb-checker.conf --create
%postun
/sbin/ldconfig
%{_unitdir}/sysinit.target.wants/hal-rpmdb-checker.service
%{_unitdir}/hal-rpmdb-checker.service
%{_bindir}/hal-rpmdb-checker
+/usr/lib/tmpfiles.d/hal-rpmdb-checker.conf
--- /dev/null
+z /opt/etc/hal/* 0664 root system_fw -
+t /opt/etc/hal/* - - - - security.SMACK64="System"