Include empty rules.merged file in the package 44/159544/1
authorRafal Krypa <r.krypa@samsung.com>
Wed, 8 Nov 2017 15:11:35 +0000 (16:11 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 9 Nov 2017 14:12:52 +0000 (15:12 +0100)
commitec4f17102be8665eee8e5f5f1c321f0ac46d40e8
treefde6fc720dc6e336dba2cace87735aef3b8e666c
parent50683fddbfaa198f983098f1c064e8cd7c84bcb7
Include empty rules.merged file in the package

This is to fix startup of security-manager-rules-loader.service systemd
unit in case when no applications are registered in security-manager.

This is a rare scenario, that wasn't considered until now, because there
were always some preloaded applications on snapshot images. But IoT images
are actually built with no preloaded applications, triggering the bug.

Empty file with aggregated Smack rules is provided to handle such case.
In case of package upgrade, existing file will not be overwritten thanks
to %config(noreplace) directive.

Change-Id: I1743672547abcdd42f520b34eba45c67402b37b1
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
packaging/security-manager.spec