Fix security-manager-policy-reload erasing existing entries 46/55346/2
authorRafal Krypa <r.krypa@samsung.com>
Wed, 23 Dec 2015 08:39:23 +0000 (09:39 +0100)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 14 Jan 2016 16:58:09 +0000 (08:58 -0800)
commit292131f4caf3996c54aebf44728449e730177f7f
tree56a28aa50dad1726732b1ff3bffbfa8778d42603
parent7adf9370065bffee3f32edd10a42a0fc207816c6
Fix security-manager-policy-reload erasing existing entries

The policy reload script, while reloading user type buckets, used to
unintentionally erase existing entries mapping users to user types.
This was caused by the way in which user type buckets were reloaded:
by removing the bucket and recreating it with intended contents.
Erasing the bucket is wrong - it also erases all links to it.
Changing the reload mechanism to clean the bucket instead.

Change-Id: I6279b2f75d1b7136679edf228d89eb2b001bd76b
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
policy/security-manager-policy-reload