CommandTool: Fixed help message of command oat_analysisType

This patch fixes the help message printed by the command
oat_analysisType when given parameters are wrong.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Installer: Fixed installation process on Fedora and SLES

This patch fixes the installation of configuration file
OpenAttestationWebServices.properties, applying on Fedora
and SLES the same process already used on Ubuntu.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Installer: Directory for IRs created at installation time

This patch extends the installation process with the creation
of directory /var/log/oat_ir. This is the default directory for
saving integrity reports when the "IR on file" feature is active.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
HisAppraiser: Moved function findHostOS() in new OSDao

This patch moves the function findHostOS() from the class
AttestService to a new DAO, called "OSDao". The function
queries the DB in order to obtain the OS corresponding to
a given hostName; this kind of functions should be placed
in a DAO.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
HisClient: Level of valuesType defined from PCR num instead of eventType

This patch updates the generation of the element valuesType. The level
(LV0 or LV1) was defined using eventType, but this method does not
cover all of eventTypes used by IMA. The eventType is now replaced
with the PCR number: valuesType for PCR 10 is always LV1; all other
PCRs have level LV0.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
HisClient: Fixed creation of Snapshot when PCR mask is not FFFFFF

This patch fixes the reading of PCR values when the PCR mask differs
from FFFFFF. Two issues have been solved:
 - The output of TPMModule does not include PCRs not present in
   the PCR mask, but the Client always expected all PCR values;
 - When scalability feature is active, the Client skips all bytes
   already read from the measurements file; the bytes counter must
   be incremented for every PCR, but it was incremented only for
   PCRs present in the PCR mask.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
HisClient: Fixed scalability mechanism in case of Appraiser restart

When the Appraiser restarts some configuration property (e.g. PCR
mask) could be changed, then the Client can't continue last sent
IR and must send to the Appraiser the entire set of integrity
measurements. This patch updates the Client in order to be compliant
with this behaviour.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
CommandTool: Command oat_posthosts made executable

This patch makes executable the previously introduced command
oat_posthosts.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
CommandTool: Fixed help message of command oat_posthosts

This patch fixes the help message printed by the command
oat_posthosts when given parameters are wrong.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
HisAppraiser: Added PATH to the env variables passed to analysis tools

This patch extends the set of environment variables that OAT passes to
the external analysis tool, adding the variable PATH. It can be
useful to the script in order to call programs without referring to
their absolute paths.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
HisClient: Fixed bug in scalability mechanism with template "ima"

This patch fixes a bug in scalability mechanism when the template
is "ima". The counter of last read byte was miscalculated, then
reports of type "continue" didn't contain expected measurements.

Signed-off-by: Nicola Barresi <nicola.barresi@polito.it>
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
bugfix: cannot edit the field of "Description" in  oat_mle according to README.
        This is caused by wrong example in README.

Signed-off-by: Emily <lijuan.zhang@intel.com>
Merge branch 'for-rc1' for bug fixing
remove sslv3 in command tool and define env to identify the location of certificate

Signed-off-by: Quan Xu <quan.xu@intel.com>
modify the usage hint in command tool

Signed-off-by: Quan Xu <quan.xu@intel.com>
modify hint in commandtools
Signed-off-by: Dave Chen <wei.d.chen@intel.com>
add xerces-j2.jar to download list and distribute to corresponding projects

Signed-off-by: Emily <lijuan.zhang@intel.com>
fix incorrect description in README
Signed-off-by: Dave Chen <wei.d.chen@intel.com>
rollback commit 8370...4ac6 :add xerces-j2.jar to download list and distribute to corresponding projects

Signed-off-by: Emily <lijuan.zhang@intel.com>
Modify docs for OAT 1.7 release
Signed-off-by: Dave Chen <wei.d.chen@intel.com>