platform/core/security/nice-lad.git
9 years agoAdd objective wrappers for libaudit functions 32/43732/1
Aleksander Zdyb [Fri, 19 Jun 2015 09:38:16 +0000 (11:38 +0200)]
Add objective wrappers for libaudit functions

The wrapper is needed to make unit testing possible.

Change-Id: Ic3ca40e04d11d9151b8c0a8e358a4697a641cd22

9 years agoAdd tests for Lad::AuditEventHandler 31/43731/1
Aleksander Zdyb [Fri, 19 Jun 2015 09:44:38 +0000 (11:44 +0200)]
Add tests for Lad::AuditEventHandler

Change-Id: I37210bc9bb6315749a43c8c1ddfdf2b92dc0bfdd

9 years agoAdd AuditEventHandler 30/43730/1
Aleksander Zdyb [Mon, 29 Jun 2015 17:40:33 +0000 (19:40 +0200)]
Add AuditEventHandler

The class dispatches different types of audit event and collects
required properties according to type of event.

Change-Id: I492f93143489acc1bf72d6122b93a5e099c7c631

9 years agoAdd tests for Audit::Parser 29/43729/1
Aleksander Zdyb [Mon, 15 Jun 2015 09:00:49 +0000 (11:00 +0200)]
Add tests for Audit::Parser

Change-Id: I45f5da9fcbc37c5e6df2223f4c9a237c289dc9d8

9 years agoImplement Audit::Parser 28/43728/1
Aleksander Zdyb [Fri, 22 May 2015 10:20:46 +0000 (12:20 +0200)]
Implement Audit::Parser

It aggregates audit records. Invokes a callback, when full event
is collected.

Change-Id: I5bc1b526d88dc3b42c70965c3be38e25dab5401d

9 years agoAdd objective wrappers for auparse functions 27/43727/1
Aleksander Zdyb [Mon, 29 Jun 2015 16:08:43 +0000 (18:08 +0200)]
Add objective wrappers for auparse functions

The wrapper is needed to make unit testing possible.

Change-Id: I4c8a09ce722df525791c63e9a571abf527c3220b

9 years agoAdd feed utility 26/43726/1
Aleksander Zdyb [Fri, 22 May 2015 09:15:31 +0000 (11:15 +0200)]
Add feed utility

Feed successively reads chunks of data from given fd.
It invokes callback in case of:
* data read
* signal caught
* EOD encountered
* timeout

Change-Id: I1bcdfd51e2a9d90f552587ec337ed35097cd135c

9 years agoAdd helper utils for signal fd 25/43725/1
Aleksander Zdyb [Fri, 22 May 2015 09:10:08 +0000 (11:10 +0200)]
Add helper utils for signal fd

Change-Id: If2d5cd14ff3a66d3770d5282c8a88d113e8a3448

9 years agoInitialize tests 24/43724/1
Aleksander Zdyb [Mon, 15 Jun 2015 08:57:36 +0000 (10:57 +0200)]
Initialize tests

Change-Id: If526ef37babdc4466b7602f13e0615f7b370c25d

9 years agoImplement Utils::WithMessageException 23/43723/1
Aleksander Zdyb [Mon, 15 Jun 2015 08:25:39 +0000 (10:25 +0200)]
Implement Utils::WithMessageException

Generic exception with error message.

Change-Id: If14ed24861437dbadcf3880a62d1fccd7f6c822d

9 years agoAdd logging support 22/43722/1
Aleksander Zdyb [Fri, 22 May 2015 08:59:48 +0000 (10:59 +0200)]
Add logging support

Logging functions are borrowed from Cynara:
https://github.com/Samsung/cynara

Change-Id: I76752bc54085b08567c0f615be2ee9948d30f18c

9 years agoInitial empty repository
Aleksander Zdyb [Fri, 10 Jul 2015 12:49:48 +0000 (14:49 +0200)]
Initial empty repository

Change-Id: Ida453ec4aa4e66d73a07823c997cb6fd05fbcc0a