Add better debug logs to libprivilege-control
authorLukasz Kostyra <l.kostyra@partner.samsung.com>
Thu, 18 Jul 2013 07:33:14 +0000 (09:33 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 19 Aug 2013 12:13:59 +0000 (14:13 +0200)
commit9bb824a83e6c59dfe2558fcf8bb3e9751729c2ba
treedbe3554926c096fa221147cb86d04df814645b49
parent705b5e3aad4c99027a2163c9da2a07ceefdbd65d
Add better debug logs to libprivilege-control

[Issue#]        SSDWSSP-406
[Feature]       Adds debug logs which log additional useful informations in libprivilege-control. Create additional defines for SECURE_SLOG*
                logs to allow disabling specific types of SECURE logs.
[Cause]         Many functions in libprivilege-control didn't log useful information - input parameters, files used or switch branches taken.
[Solution]      Add macros which log such information. Additional defines wrapping SECURE_SLOG* log macros are now defined as SECURE_C_LOG*.
[Verification]  Run libprivilege-control-test from security-tests package and check using dlogutil whether functions log their input
                parameters, files used and switch branches taken. Make sure to enable definition DLOG_DEBUG_ENABLED in CMakeLists.txt
                before building the package.

Change-Id: Ifec47d04b7a5aef806caab85fe3709e36aae8afe
include/common.h
src/access-db.c
src/common.c
src/privilege-control.c
src/slp-su.c