platform/core/security/ima-evm-reference-utils.git
9 years agoFix translate EVM state from IMAEVMServer to libimaevm 36/28536/1 experimental
Janusz Kozerski [Wed, 8 Oct 2014 11:21:29 +0000 (13:21 +0200)]
Fix translate EVM state from IMAEVMServer to libimaevm

Change-Id: Id6c9439073c3eeaa1acda2f3d356b31b9739519d
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoFix bug in ima_evm_server_get_policy() 44/28444/1
Janusz Kozerski [Fri, 3 Oct 2014 09:56:35 +0000 (11:56 +0200)]
Fix bug in ima_evm_server_get_policy()

Change-Id: Ie0aba75bb2750abd0950990d78eeb0a44dbb88c3
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAdd checking "evm" param while seting/getting EVM state 43/28443/1
Janusz Kozerski [Mon, 15 Sep 2014 13:28:25 +0000 (15:28 +0200)]
Add checking "evm" param while seting/getting EVM state

Change-Id: I07d86b5c4b77022a278f1daaa3d4eae4c24a3c01
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoUse libimaevm to check file state from console tool 42/28442/1
Janusz Kozerski [Mon, 15 Sep 2014 13:25:11 +0000 (15:25 +0200)]
Use libimaevm to check file state from console tool

Change-Id: I50fa7d6221a4fd7132bdc0406b1beb93161520b0
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoUse libimaevm to check file state from UI 41/28441/1
Janusz Kozerski [Mon, 15 Sep 2014 12:58:02 +0000 (14:58 +0200)]
Use libimaevm to check file state from UI

Change-Id: I4c5c0af0e95bcfac78713d7d6d7710b7b38114ba
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoRemoved unused UI files 52/26752/1
Janusz Kozerski [Thu, 28 Aug 2014 11:45:31 +0000 (13:45 +0200)]
Removed unused UI files

Change-Id: I820764eb91d87a4b4c1a9991c3a5076640697a3b
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAdd posibility to change policy from console tool 51/26751/1
Janusz Kozerski [Thu, 28 Aug 2014 11:26:33 +0000 (13:26 +0200)]
Add posibility to change policy from console tool

Change-Id: If9345e3f31ecce0bb3e6791faf7a10bd8e44c613
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoUpdate IMA states. 50/26750/1
Janusz Kozerski [Wed, 27 Aug 2014 08:28:53 +0000 (10:28 +0200)]
Update IMA states.

Change-Id: I86ba6c411e8b7e2c014d6a5d7c2b4e7f8cfb8bcd
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoFree the memory allocated for the policy in console tool. 49/26749/1
Janusz Kozerski [Wed, 27 Aug 2014 07:41:26 +0000 (09:41 +0200)]
Free the memory allocated for the policy in console tool.

Change-Id: I59e83b9c3f9441cfd56a6b404e1cbbd231198527
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAdd ima_evm_server_free_policy() function 48/26748/1
Janusz Kozerski [Tue, 26 Aug 2014 14:49:17 +0000 (16:49 +0200)]
Add ima_evm_server_free_policy() function

This is function is just a wrapper for ima_free_policy from libimaevm.

Change-Id: Ib6a7e3d1c1f5850110fc70f32598694f55e6bb12
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAdd console tool (UI substitute) 47/26747/1
Janusz Kozerski [Tue, 26 Aug 2014 10:38:31 +0000 (12:38 +0200)]
Add console tool (UI substitute)

Change-Id: I100fc585828f9fc24896ef18c856db69a809e7fe
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoCode cleaning. 46/26746/1
Janusz Kozerski [Mon, 25 Aug 2014 14:01:08 +0000 (16:01 +0200)]
Code cleaning.

Change-Id: I98fb1d9a306453b4a86e8b92a055f2cd2afc9a18
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoRemove "echo" test service. 45/26745/1
Janusz Kozerski [Mon, 25 Aug 2014 13:39:10 +0000 (15:39 +0200)]
Remove "echo" test service.

Change-Id: Id1467be7f3630707db6f8797c072f4feeda5af1c
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoFix ima/evm set_state functions. Remvoe unwanted header code. 44/26744/1
Janusz Kozerski [Mon, 25 Aug 2014 13:03:20 +0000 (15:03 +0200)]
Fix ima/evm set_state functions. Remvoe unwanted header code.

Functions ima/evm set_state() works good.

Change-Id: I192250adf36678b0736afcc128b4c80986a9176c
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAdd policy loading from UI 43/26743/1
Janusz Kozerski [Fri, 22 Aug 2014 13:50:22 +0000 (15:50 +0200)]
Add policy loading from UI

The UI uses the ima_evm_server_set_policy_file()
Add "Error: " message

Change-Id: Idf7eb32524674c127bb9933178903de99cdfd501
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoChnage the UI for using ima-evm-server 42/26742/1
Janusz Kozerski [Thu, 21 Aug 2014 10:04:45 +0000 (12:04 +0200)]
Chnage the UI for using ima-evm-server

The UI uses now the client-server architecture instead of using libimaevm directly.

Change-Id: I8665b7e5073a3a9d12d82a1458f003a34db0b7d6
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoImplement ima/evm set/get state and set/get policy on server side 41/26741/1
Janusz Kozerski [Wed, 6 Aug 2014 13:03:31 +0000 (15:03 +0200)]
Implement ima/evm set/get state and set/get policy on server side

List of implemeted fuction:
 * ima_set_state()
 * ima_get_state()
 * evm_set_state()
 * evm_get_state()
 * ima_set_policy()
 * ima_get_policy()

Change-Id: I1587b231a0c5983317302db4de7e8feec0747833
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAdd core of ima-evm-service 40/26740/1
Janusz Kozerski [Thu, 28 Aug 2014 11:41:46 +0000 (13:41 +0200)]
Add core of ima-evm-service

This is just copy of source from security-server (core stuff).
Code builds, but is non-functional. Some fix needs to be done.

Change-Id: I854e874a1586aa8349fce3ae4caa2d23af98007a
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoDisabling the EVM will not disable other menu options in UI 39/26739/1
Janusz Kozerski [Mon, 7 Jul 2014 13:47:54 +0000 (15:47 +0200)]
Disabling the EVM will not disable other menu options in UI

Change-Id: I5d2d8bcb7679f9d539d4345eab419c7fcf343c34
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoFix xattr 38/26738/1
Janusz Kozerski [Fri, 4 Jul 2014 09:46:03 +0000 (11:46 +0200)]
Fix xattr

Change-Id: I29a2ff60893852f402c2c32b710cfb119826b358
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAdapt (part 2) 37/26737/1
Janusz Kozerski [Thu, 26 Jun 2014 08:46:23 +0000 (10:46 +0200)]
Adapt (part 2)

Change-Id: I486ebbb075fec323428d0c21ac8de699fb4cbc18
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAddapt to tizen common profile. Change from UG to APP 36/26736/1
Janusz Kozerski [Thu, 12 Jun 2014 14:31:23 +0000 (16:31 +0200)]
Addapt to tizen common profile. Change from UG to APP

Change-Id: I307a9e2187ec769cdcc8652d52ce1c1cb371b236
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAdd posibility to check file xattrs (secutity.ima, security.evm) 35/26735/1
Janusz Kozerski [Wed, 4 Jun 2014 13:03:08 +0000 (15:03 +0200)]
Add posibility to check file xattrs (secutity.ima, security.evm)

Change-Id: Idbd6217e42e5bd1b9423e732d25a3e15ce664e93
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoUse ima_get_policy() from libimaevm to get policy. 87/21387/1
Janusz Kozerski [Mon, 28 Apr 2014 12:32:12 +0000 (14:32 +0200)]
Use ima_get_policy() from libimaevm to get policy.

Change-Id: I523cf80a35f020c1fe5f9470ed9444158ffe19f6
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoDisabling libimaevm error checking is now possible by define. 86/21386/1
Janusz Kozerski [Mon, 28 Apr 2014 08:59:47 +0000 (10:59 +0200)]
Disabling libimaevm error checking is now possible by define.

Add define that can be used to test the UI without checking the
values reduned by libimaevm (no library error checking).

Change-Id: Iae86a87bbd003a4685bd1eb62ee3bc8cf3fe1221
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoAdd switches for EVM state. Fix logs. 85/21385/1
Janusz Kozerski [Fri, 25 Apr 2014 12:58:16 +0000 (14:58 +0200)]
Add switches for EVM state. Fix logs.

Changes:
 * Rename existing switch and checkbox from "IMA/EVM" to "IMA".
 * Add switch for enable/disbale EVM.
 * Add checkbox for EVM Fix.

Change-Id: I0e6972b0e4014cdf4519db1976b829ce0b627252
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoFirst well-working version. 84/21384/1
Janusz Kozerski [Mon, 17 Feb 2014 14:47:58 +0000 (15:47 +0100)]
First well-working version.

Contains:
 * Switch enable/disbale IMA
 * Checkbox IMA Fix
 * Load policy window (file selector)
 * Get policy
 * Check file status (file selector, popup as a reponse).

The UI is using the libimaevm in a few places. In other it is only
a clickable demo that doesn't do anything on the target.
Checking errors codes from libimaevm is disabled - for testing purpose.
This is rather "non-functional UI demo" than fully working version.

Change-Id: I0fbe888f6784df3c0fa36df4bf623eff59d36487
Signed-off-by: Janusz Kozerski <j.kozerski@samsung.com>
9 years agoInitial empty repository master
Sehong Na [Thu, 8 May 2014 23:55:57 +0000 (16:55 -0700)]
Initial empty repository