Refactoring Smack-related code for exception-based error handling 66/36066/4
authorRafal Krypa <r.krypa@samsung.com>
Mon, 2 Mar 2015 11:43:48 +0000 (12:43 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 2 Mar 2015 15:19:54 +0000 (16:19 +0100)
commit5a80e0b13efec880d97fb74ad0aa02fa6b0982ab
tree6f29cabcfe39339189c0ec69f183c0528226f2e1
parent278e77f572e3ae07d86c58165e085d7a79bfe99d
Refactoring Smack-related code for exception-based error handling

Smack functions were incoherent with rest of security-manager with regard
to error handling. Functions and methods returned bool value to indicate
their success. This patch changes this schema to use exceptions for error
handling.

Change-Id: If4ec3cac6b63bb411b13a4eb8d9b553e7b5d1c86
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/client/client-security-manager.cpp
src/common/include/smack-exceptions.h [new file with mode: 0644]
src/common/include/smack-labels.h
src/common/include/smack-rules.h
src/common/service_impl.cpp
src/common/smack-labels.cpp
src/common/smack-rules.cpp