Hello all TrouSerS users,
I use Arch Linux and my platform has no hardware TPM, so I need to interface 
TrouSerS with IBM's Software TPM.
I followed the README file to compile the standard TPM, for working with TCP/IP 
socket interface, using the 'comp-sockets.sh' script.I followed the INSTALL 
file to set environment variables for the server and the client and to run the 
server for the first time.I executed the "IBM Regression Test": launched 
'test_console.sh', had no errors.
While following the procedure on http://ibmswtpm.sourceforge.net/tpm_tss.html, 
I got some problems with tcsd.
Moreovere, my gol would be to execute the "TSS Test Suite", but the file 
'tsstests.sh' is missing on my drive: is it regular?
I launched a terminal to run the TPM server (TERMINAL 1) and another terminal 
to simulate BIOS and to launch 'tcsd' (TERMINAL 2).
Below the output of terminals, there are the contents of 'tcsd.conf' and 
'tcsd.service' (if eventually needed).

----- TERMINAL 1 -----
[root@archlinux ~]# grep tss /etc/grouptss:x:995:
[root@archlinux ~]# grep tss /etc/passwdtss:x:996:995::/var/lib/tpm:/bin/false
[root@archlinux ~]# ls -la /var/lib/tpm/totale 8drwx------  2 tss  tss  4096  9 
dic 23.08 .drwxr-xr-x 24 root root 4096 11 dic 00.00 ..-rw-------  1 root root  
  0  9 dic 23.08 system.data[root@archlinux /]# exit
[max@archlinux ~/Scrivania/tpm4720/tpm]> env | grep 
TPMTPM_PORT=6543TPM_SERVER_NAME=localhostTPM_SERVER_PORT=6543TPM_PATH=/home/max/Scrivania/tpm4720/tpm/NON-VOLATILE_DATA
[max@archlinux ~/Scrivania/tpm4720/tpm]> ls -la NON-VOLATILE_DATA/totale 
8drwxr-xr-x 2 max max 4096 10 dic 19.56 .drwxr-xr-x 3 max max 4096 28 nov 19.18 
..
[max@archlinux ~/Scrivania/tpm4720/tpm]> ./tpm_server...TPM_IO_Connect: Waiting 
for connections on port 6543----------------------

----- TERMINAL 2 -----
[max@archlinux ~/Scrivania/tpm4720/tpm]> env | grep 
TPMTPM_PORT=6543TPM_SERVER_NAME=localhostTPM_SERVER_PORT=6543TPM_PATH=/home/max/Scrivania/tpm4720/tpm/NON-VOLATILE_DATA
[max@archlinux ~/Scrivania/tpm4720/tpm]> ls -la NON-VOLATILE_DATA/totale 
12drwxr-xr-x 2 max max 4096 11 dic 00.28 .drwxr-xr-x 3 max max 4096 28 nov 
19.18 ..-rw-r--r-- 1 max max  785 11 dic 00.28 00.permall
[max@archlinux ~/Scrivania/tpm4720/tpm]> cd ../libtpm/utils/
[max@archlinux ~/Scrivania/tpm4720/libtpm/utils]> ./tpmbios
[max@archlinux ~/Scrivania/tpm4720/libtpm/utils]> ./createekError TPM 
deactivated from TPM_CreateEndorsementKeyPair (...I launched tpm_takeownership 
in the past: is this the reason for the error?)
[max@archlinux ~/Scrivania/tpm4720/libtpm/utils]> ./nv_definespace -in ffffffff 
-sz 0
[max@archlinux ~/Scrivania/tpm4720/libtpm/utils]> suPassword: [root@archlinux 
/home/max/Scrivania/tpm4720/libtpm/utils]# cd
[root@archlinux ~]# export TCSD_TCP_DEVICE_PORT=6543
[root@archlinux ~]# systemctl enable tcsdCreated symlink from 
/etc/systemd/system/default.target.wants/tcsd.service to 
/usr/lib/systemd/system/tcsd.service.
[root@archlinux ~]# systemctl status tcsd ● tcsd.service - Manager for Trusted 
Computing resources   Loaded: loaded (/usr/lib/systemd/system/tcsd.service; 
enabled)   Active: failed (Result: exit-code) since mer 2014-12-10 22:48:15 
CET; 2h 24min ago Main PID: 1183 (code=exited, status=137)
dic 10 22:48:15 archlinux tcsd[1183]: TCSD TDDL ERROR: Could not find a device 
to open!dic 10 22:48:15 archlinux systemd[1]: tcsd.service: main process 
exited, code=exited, status=137/n/adic 10 22:48:15 archlinux systemd[1]: Unit 
tcsd.service entered failed state.dic 10 22:48:15 archlinux systemd[1]: 
tcsd.service failed.
[root@archlinux ~]# /usr/sbin/tcsd -e -f
TCSD TDDL ioctl: (25) Inappropriate ioctl for deviceTCSD TDDL Falling back to 
Read/Write device support.TCSD trousers 0.3.13: TCSD up and 
running.----------------------

----- /etc/tcsd.conf -----remote_ops = 
seal,unseal,registerkey,unregisterkey,loadkey,createkey,sign,random,getcapability,unbind,quote,readpubek,getregisteredkeybypublicinfo,getpubkey,selftest--------------------------

----- /usr/lib/systemd/system/tcsd.service -----[root@archlinux ~]# ls -la 
/usr/lib/systemd/system/tcsd.service-rw-r--r-- 1 root root 180 10 dic 01.55 
/usr/lib/systemd/system/tcsd.service
[root@archlinux ~]# cat 
/usr/lib/systemd/system/tcsd.service[Unit]Description=Manager for Trusted 
Computing resourcesAfter=sysinit.target
[Service]User=tssExecStart=/usr/bin/tcsd -f -c /etc/tcsd.conf
[Install]WantedBy=default.target------------------------------------------------

Any suggestions?
Thanks!
                                          
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to