mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-18 02:39:56 +00:00
* Update Docker TPMProvisioner images to latest PACCOR. * Test updated docker images from hirs Docker Hub
This commit is contained in:
parent
da836a0862
commit
6838a38fbc
@ -5,7 +5,7 @@ RUN yum -y update && yum clean all
|
||||
RUN yum install -y tpm2-tools libcurl procps-ng wget dbus python-requests python2-future python36-future && yum clean all
|
||||
|
||||
# Install PACCOR for Device Info Gathering
|
||||
RUN mkdir paccor && pushd paccor && wget https://github.com/nsacyber/paccor/releases/download/v1.1.3r3/paccor-1.1.3-3.noarch.rpm && yum -y install paccor-*.rpm && popd
|
||||
RUN mkdir paccor && pushd paccor && wget https://github.com/nsacyber/paccor/releases/download/v1.1.3r4/paccor-1.1.3-4.noarch.rpm && yum -y install paccor-*.rpm && popd
|
||||
|
||||
# Install Software TPM for Provisioning
|
||||
RUN mkdir ibmtpm && pushd ibmtpm && wget https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm1332.tar.gz && tar -zxvf ibmtpm1332.tar.gz && cd src && make -j5 && popd
|
||||
|
@ -8,7 +8,7 @@ RUN yum install -y java-1.8.0-openjdk wget util-linux chkconfig sed systemd gmp-
|
||||
RUN mkdir tpm_module && pushd tpm_module && wget https://github.com/nsacyber/HIRS/releases/download/v1.0.4/tpm_module-1.0.4-1558547257.cedc93.x86_64.rpm && yum -y install tpm_module-*.rpm && popd
|
||||
|
||||
# Install PACCOR for Device Info Gathering
|
||||
RUN mkdir paccor && pushd paccor && wget https://github.com/nsacyber/paccor/releases/download/v1.1.3r3/paccor-1.1.3-3.noarch.rpm && yum -y install paccor-*.rpm && popd
|
||||
RUN mkdir paccor && pushd paccor && wget https://github.com/nsacyber/paccor/releases/download/v1.1.3r4/paccor-1.1.3-4.noarch.rpm && yum -y install paccor-*.rpm && popd
|
||||
|
||||
# Install Software TPM for Provisioning
|
||||
RUN mkdir tpm_emulator && pushd tpm_emulator && wget https://phoenixnap.dl.sourceforge.net/project/ibmswtpm/tpm4769tar.gz && tar -xzvf tpm4769tar.gz && pushd libtpm && ./autogen && ./configure && make && popd && pushd tpm && make -f makefile-tpm && popd && popd
|
||||
|
@ -610,11 +610,12 @@ parseNicData () {
|
||||
|
||||
for ((i = 0 ; i < numHandles ; i++ )); do
|
||||
manufacturer=$(lshwGetVendorIDFromBusItem "$i")
|
||||
model=$(lshwGetProductIDFromBusItem "$i")
|
||||
serialConstant=$(lshwGetSerialFromBusItem "$i")
|
||||
model=$(lshwGetProductIDFromBusItem "$i")
|
||||
serialConstant=$(lshwGetLogicalNameFromBusItem "$i")
|
||||
serialConstant=$(ethtoolPermAddr "$serialConstant")
|
||||
serialConstant=$(standardizeMACAddr "${serialConstant}")
|
||||
serial=""
|
||||
revision=$(lshwGetVersionFromBusItem "$i")
|
||||
revision=$(lshwGetVersionFromBusItem "$i")
|
||||
|
||||
if [[ -z "${manufacturer// }" ]] && [[ -z "${model// }" ]] && (! [[ -z "${serialConstant// }" ]] || ! [[ -z "${revision// }" ]]); then
|
||||
manufacturer=$(lshwGetVendorNameFromBusItem "$i")
|
||||
@ -690,9 +691,9 @@ parseHddData () {
|
||||
|
||||
for ((i = 0 ; i < numHandles ; i++ )); do
|
||||
manufacturer=$(lshwGetVendorIDFromBusItem "$i")
|
||||
model=$(lshwGetProductIDFromBusItem "$i")
|
||||
serial=$(lshwGetSerialFromBusItem "$i")
|
||||
revision=$(lshwGetVersionFromBusItem "$i")
|
||||
model=$(lshwGetProductIDFromBusItem "$i")
|
||||
serial=$(lshwGetSerialFromBusItem "$i")
|
||||
revision=$(lshwGetVersionFromBusItem "$i")
|
||||
|
||||
if [[ -z "${manufacturer// }" ]] && [[ -z "${model// }" ]] && (! [[ -z "${serial// }" ]] || ! [[ -z "${revision// }" ]]); then
|
||||
model=$(lshwGetProductNameFromBusItem "$i")
|
||||
@ -757,7 +758,7 @@ parseGfxData () {
|
||||
|
||||
if [[ -z "${manufacturer// }" ]] && [[ -z "${model// }" ]] && (! [[ -z "${serial// }" ]] || ! [[ -z "${revision// }" ]]); then
|
||||
manufacturer=$(lshwGetVendorNameFromBusItem "$i")
|
||||
model=$(lshwGetProductNameFromBusItem "$i")
|
||||
model=$(lshwGetProductNameFromBusItem "$i")
|
||||
fi
|
||||
|
||||
if [[ -z "${manufacturer// }" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user