[Problem] Key-manager data dir was labeled and chowned in key-manager-listener
post install section.
[Solution] Moved to key-manager post section
[Verification] Install key-manager. Smack shouldn't report any denials to data
directory.
Change-Id: I345716a676f6abaa8670911e1ec7af3e57e9cb54
if [ $1 = 2 ]; then
# update
+
+ # In ckm version <= 0.1.18 all files were owned by root.
+ find /opt/data/ckm -exec chsmack -a %{smack_domain_name} {} \;
+ chown %{user_name}:%{group_name} -R /opt/data/ckm
systemctl restart central-key-manager.service
fi
fi
if [ $1 = 2 ]; then
# update
-
- # In ckm version <= 0.1.18 all files were owned by root.
- find /opt/data/ckm -exec chsmack -a %{smack_domain_name} {} \;
- chown %{user_name}:%{group_name} -R /opt/data/ckm
systemctl restart central-key-manager-listener.service
fi