Rewrite internal function app_uninstall_remove_early_rules()
authorRafal Krypa <r.krypa@samsung.com>
Wed, 24 Jul 2013 12:02:34 +0000 (14:02 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 19 Aug 2013 12:13:59 +0000 (14:13 +0200)
commitc80edae551acd4b4190f9291f5ef2df0afe1e9f8
tree6fadeef01987c99cf4895f9991b3e4ad1fbca4f2
parent65ae887cc41e161bd2b00d9e590ccd2827cb42f4
Rewrite internal function app_uninstall_remove_early_rules()

[Issue#]       SSDWSSP-372
[Bug]          Old code prone to errors, with implementation problems.
[Cause]        Fragile file parsing. Using temporary file. Unneeded semaphore, with wrong permissions.
[Solution]     Write more robust function, copying the file in place.
[Verification] Run libprivilege-control-tests.

Change-Id: I12f89f1c1c0c4bc43ffbb69db84cfb88b98c821b
include/common.h
src/privilege-control.c