==> Building on Q ==> Attempt to run pkgver()... ==> Making package: python-tpm2-pytss 1.2.0-2 (Thu 16 Jun 2022 11:21:58 PM EEST) ==> Checking runtime dependencies... ==> Missing dependencies:  -> python-asn1crypto ==> Checking buildtime dependencies... ==> Missing dependencies:  -> python-build  -> python-installer  -> tpm2-tools ==> Ensuring required PGP keys are present...  -> Checking for 5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1... ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 1,416 100% 0.00kB/s 0:00:00 1,416 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-tpm2-pytss-1.2.0-2.log 879 100% 858.40kB/s 0:00:00 879 100% 858.40kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,351 bytes received 69 bytes 946.67 bytes/sec total size is 2,283 speedup is 1.61 ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix2 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix2]...done ==> Making package: python-tpm2-pytss 1.2.0-2 (Thu Jun 16 22:22:05 2022) ==> Retrieving sources...  -> Updating tpm2-pytss git repo... Fetching origin remote: Enumerating objects: 15, done. remote: Counting objects: 6% (1/15) remote: Counting objects: 13% (2/15) remote: Counting objects: 20% (3/15) remote: Counting objects: 26% (4/15) remote: Counting objects: 33% (5/15) remote: Counting objects: 40% (6/15) remote: Counting objects: 46% (7/15) remote: Counting objects: 53% (8/15) remote: Counting objects: 60% (9/15) remote: Counting objects: 66% (10/15) remote: Counting objects: 73% (11/15) remote: Counting objects: 80% (12/15) remote: Counting objects: 86% (13/15) remote: Counting objects: 93% (14/15) remote: Counting objects: 100% (15/15) remote: Counting objects: 100% (15/15), done. remote: Compressing objects: 8% (1/12) remote: Compressing objects: 16% (2/12) remote: Compressing objects: 25% (3/12) remote: Compressing objects: 33% (4/12) remote: Compressing objects: 41% (5/12) remote: Compressing objects: 50% (6/12) remote: Compressing objects: 58% (7/12) remote: Compressing objects: 66% (8/12) remote: Compressing objects: 75% (9/12) remote: Compressing objects: 83% (10/12) remote: Compressing objects: 91% (11/12) remote: Compressing objects: 100% (12/12) remote: Compressing objects: 100% (12/12), done. remote: Total 15 (delta 6), reused 7 (delta 3), pack-reused 0 Unpacking objects: 6% (1/15) Unpacking objects: 13% (2/15) Unpacking objects: 20% (3/15) Unpacking objects: 26% (4/15) Unpacking objects: 33% (5/15) Unpacking objects: 40% (6/15) Unpacking objects: 46% (7/15) Unpacking objects: 53% (8/15) Unpacking objects: 60% (9/15) Unpacking objects: 66% (10/15) Unpacking objects: 73% (11/15) Unpacking objects: 80% (12/15) Unpacking objects: 86% (13/15) Unpacking objects: 93% (14/15) Unpacking objects: 100% (15/15) Unpacking objects: 100% (15/15), 6.77 KiB | 3.39 MiB/s, done. From https://github.com/tpm2-software/tpm2-pytss 7c89ea0..8ebc054 master -> master + 22149fb...bc1ec81 refs/pull/348/merge -> refs/pull/348/merge (forced update) + 7581bc5...fdc5797 refs/pull/359/merge -> refs/pull/359/merge (forced update) * [new ref] refs/pull/360/head -> refs/pull/360/head * [new tag] 1.2.0 -> 1.2.0 ==> Validating source files with sha512sums... tpm2-pytss ... Skipped ==> Verifying source file signatures with gpg... tpm2-pytss git repo ... Passed ==> Making package: python-tpm2-pytss 1.2.0-2 (Thu Jun 16 22:22:16 2022) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (13) New Version Net Change core/json-c 0.16-1 0.16 MiB core/libnsl 2.0.0-2 0.06 MiB extra/libyaml 0.2.5-1 0.14 MiB extra/python-ply 3.11-10 0.31 MiB extra/python-pycparser 2.21-3 1.39 MiB extra/python-pyparsing 3.0.9-1 0.96 MiB core/python 3.10.1-2 79.11 MiB extra/python-asn1crypto 1.5.1-1 1.21 MiB extra/python-cffi 1.15.0-3 1.00 MiB extra/python-cryptography 37.0.2-1 3.57 MiB extra/python-packaging 21.3-1 0.26 MiB community/python-yaml 6.0-1 0.68 MiB core/tpm2-tss 3.2.0-1 2.40 MiB Total Installed Size: 91.24 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-asn1crypto... installing python-ply... installing python-pycparser... installing python-cffi... installing python-cryptography... installing python-pyparsing... Optional dependencies for python-pyparsing python-railroad-diagrams: for generating Railroad Diagrams python-jinja: for generating Railroad Diagrams installing python-packaging... installing libyaml... installing python-yaml... installing json-c... installing tpm2-tss... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (27) New Version Net Change extra/fuse-common 3.11.0-1 0.00 MiB extra/fuse2 2.9.9-4 0.40 MiB extra/json-glib 1.6.6-2 0.92 MiB community/libtpms 0.9.4-1 0.84 MiB extra/perl-error 0.17029-4 0.04 MiB extra/perl-mailtools 2.21-6 0.11 MiB extra/perl-timedate 2.33-4 0.08 MiB community/python-apipkg 2.1.1-1 0.03 MiB extra/python-appdirs 1.4.4-6 0.07 MiB extra/python-attrs 21.4.0-1 0.45 MiB community/python-iniconfig 1.1.1-5 0.02 MiB community/python-more-itertools 8.13.0-1 0.48 MiB extra/python-ordered-set 4.0.2-6 0.06 MiB extra/python-pep517 0.12.0-4 0.13 MiB community/python-pluggy 1.0.0-1 0.10 MiB community/python-py 1.11.0-1 0.71 MiB extra/python-tomli 2.0.1-1 0.08 MiB extra/git 2.36.1-1 29.94 MiB community/python-build 0.8.0-1 0.97 MiB community/python-installer 0.5.1-1 1.13 MiB community/python-pkgconfig 1.5.5-3 0.03 MiB community/python-pytest 7.1.2-1 2.62 MiB extra/python-setuptools 1:59.5.0-1 2.96 MiB community/python-setuptools-scm 6.4.2-1 0.21 MiB community/python-wheel 0.37.1-1 0.16 MiB community/swtpm 0.7.3-1 0.41 MiB community/tpm2-tools 5.2-1 1.30 MiB Total Installed Size: 44.26 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git tk: gitk and git gui perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 [installed] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing python-tomli... installing python-pep517... installing python-build... Optional dependencies for python-build python-virtualenv: Use virtualenv for build isolation installing python-installer... installing python-pkgconfig... installing python-appdirs... installing python-more-itertools... installing python-ordered-set... installing python-setuptools... installing python-setuptools-scm... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures installing python-attrs... installing python-iniconfig... installing python-pluggy... installing python-apipkg... installing python-py... installing python-pytest... installing fuse-common... installing fuse2... installing json-glib... installing libtpms... installing swtpm... installing tpm2-tools... Optional dependencies for tpm2-tools tpm2-abrmd: user space resource manager :: Running post-transaction hooks... (1/1) Warn about old perl modules [?25h==> Retrieving sources... ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Creating working copy of tpm2-pytss git repo... Cloning into 'tpm2-pytss'... done. Switched to a new branch 'makepkg' ==> Starting pkgver()... ==> Starting build()... adding path: /build/python-tpm2-pytss/src/tpm2-pytss/scripts running bdist_wheel running build running build_py creating build creating build/lib.linux-riscv64-3.10 creating build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/ESAPI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/FAPI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/TCTI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/TCTILdr.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/TSS2_Exception.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/__init__.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/callbacks.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/constants.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/encoding.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/fapi_info.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/tsskey.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/types.py -> build/lib.linux-riscv64-3.10/tpm2_pytss copying src/tpm2_pytss/utils.py -> build/lib.linux-riscv64-3.10/tpm2_pytss creating build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/__init__.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/constants.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/crypto.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/templates.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal copying src/tpm2_pytss/internal/utils.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal running build_ext generating cffi module 'build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c' creating build/temp.linux-riscv64-3.10 building 'tpm2_pytss._libtpm2_pytss' extension creating build/temp.linux-riscv64-3.10/build creating build/temp.linux-riscv64-3.10/build/temp.linux-riscv64-3.10 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -I/usr/include/python3.10 -c build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c -o build/temp.linux-riscv64-3.10/build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.o build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48575:1: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48575 | static uint32_t _cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(TPMS_ALGORITHM_DESCRIPTION const * x0, uint8_t * x1, size_t x2, size_t * x3) | ^~~~~~ In file included from /usr/include/tss2/tss2_tcti.h:40, from /usr/include/tss2/tss2_esys.h:9, from build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:571: /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48577:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’ is deprecated [-Wdeprecated-declarations] 48577 | return Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(x0, x1, x2, x3); | ^~~~~~ In file included from build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:575: /usr/include/tss2/tss2_mu.h:752:1: note: declared here 752 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_f_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48583:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48583 | TPMS_ALGORITHM_DESCRIPTION const * x0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48602:5: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48602 | x0 = ((size_t)datasize) <= 640 ? (TPMS_ALGORITHM_DESCRIPTION const *)alloca((size_t)datasize) : NULL; | ^~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48632:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’ is deprecated [-Wdeprecated-declarations] 48632 | { result = Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(x0, x1, x2, x3); } | ^ /usr/include/tss2/tss2_mu.h:752:1: note: declared here 752 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: At top level: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48645:1: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48645 | static uint32_t _cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(uint8_t const * x0, size_t x1, size_t * x2, TPMS_ALGORITHM_DESCRIPTION * x3) | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48647:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’ is deprecated [-Wdeprecated-declarations] 48647 | return Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(x0, x1, x2, x3); | ^~~~~~ /usr/include/tss2/tss2_mu.h:760:1: note: declared here 760 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_f_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48656:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48656 | TPMS_ALGORITHM_DESCRIPTION * x3; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48694:5: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 48694 | x3 = ((size_t)datasize) <= 640 ? (TPMS_ALGORITHM_DESCRIPTION *)alloca((size_t)datasize) : NULL; | ^~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48702:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’ is deprecated [-Wdeprecated-declarations] 48702 | { result = Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(x0, x1, x2, x3); } | ^ /usr/include/tss2/tss2_mu.h:760:1: note: declared here 760 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: At top level: build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:66507:1: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 66507 | static void _cffi_checkfld__TPMS_ALGORITHM_DESCRIPTION(TPMS_ALGORITHM_DESCRIPTION *p) | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:66514:8: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 66514 | struct _cffi_align__TPMS_ALGORITHM_DESCRIPTION { char x; TPMS_ALGORITHM_DESCRIPTION y; }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69395:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 69395 | { "alg", offsetof(TPMS_ALGORITHM_DESCRIPTION, alg), | ^ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69396:12: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 69396 | sizeof(((TPMS_ALGORITHM_DESCRIPTION *)0)->alg), | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69398:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 69398 | { "attributes", offsetof(TPMS_ALGORITHM_DESCRIPTION, attributes), | ^ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69399:19: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 69399 | sizeof(((TPMS_ALGORITHM_DESCRIPTION *)0)->attributes), | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:70317:5: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations] 70317 | sizeof(TPMS_ALGORITHM_DESCRIPTION), offsetof(struct _cffi_align__TPMS_ALGORITHM_DESCRIPTION, y), 87, 2 }, | ^~~~~~ /usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here 927 | struct TPMS_ALGORITHM_DESCRIPTION { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-3.10/build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.o -L/usr/lib -ltss2-esys -ltss2-tctildr -ltss2-rc -ltss2-mu -ltss2-fapi -o build/lib.linux-riscv64-3.10/tpm2_pytss/_libtpm2_pytss.abi3.so generated _type_map with 61 mappings in build/lib.linux-riscv64-3.10/tpm2_pytss/internal/type_mapping.py and src/tpm2_pytss/internal/type_mapping.py generated _element_type_map with 5 mappings generated _versions with 2 versions installing to build/bdist.linux-riscv64/wheel running install running install_lib creating build/bdist.linux-riscv64 creating build/bdist.linux-riscv64/wheel creating build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/TCTI.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/TSS2_Exception.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/__init__.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/callbacks.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/constants.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/encoding.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/fapi_info.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/tsskey.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/types.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss copying build/lib.linux-riscv64-3.10/tpm2_pytss/utils.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss creating build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/__init__.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/constants.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/crypto.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/templates.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/type_mapping.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/versions.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal copying build/lib.linux-riscv64-3.10/tpm2_pytss/_libtpm2_pytss.abi3.so -> build/bdist.linux-riscv64/wheel/tpm2_pytss running install_egg_info running egg_info creating src/tpm2_pytss.egg-info writing src/tpm2_pytss.egg-info/PKG-INFO writing dependency_links to src/tpm2_pytss.egg-info/dependency_links.txt writing requirements to src/tpm2_pytss.egg-info/requires.txt writing top-level names to src/tpm2_pytss.egg-info/top_level.txt writing manifest file 'src/tpm2_pytss.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'src/tpm2_pytss/version' warning: no files found matching 'src/tpm2_pytss/config.json' warning: no files found matching '*' under directory 'src/tpm2_pytss/swig' warning: no files found matching '*' under directory 'tests' warning: no files found matching '*' under directory 'examples' warning: no previously-included files found matching 'src/tpm2_pytss/internal/type_mapping.py' adding license file 'LICENSE' writing manifest file 'src/tpm2_pytss.egg-info/SOURCES.txt' Copying src/tpm2_pytss.egg-info to build/bdist.linux-riscv64/wheel/tpm2_pytss-1.2.0-py3.10.egg-info running install_scripts adding license file "LICENSE" (matched pattern "LICEN[CS]E*") creating build/bdist.linux-riscv64/wheel/tpm2_pytss-1.2.0.dist-info/WHEEL creating '/build/python-tpm2-pytss/src/tpm2-pytss/dist/tmpy_7g4zmw/tpm2_pytss-1.2.0-cp310-cp310-linux_riscv64.whl' and adding 'build/bdist.linux-riscv64/wheel' to it adding 'tpm2_pytss/ESAPI.py' adding 'tpm2_pytss/FAPI.py' adding 'tpm2_pytss/TCTI.py' adding 'tpm2_pytss/TCTILdr.py' adding 'tpm2_pytss/TSS2_Exception.py' adding 'tpm2_pytss/__init__.py' adding 'tpm2_pytss/_libtpm2_pytss.abi3.so' adding 'tpm2_pytss/callbacks.py' adding 'tpm2_pytss/constants.py' adding 'tpm2_pytss/encoding.py' adding 'tpm2_pytss/fapi_info.py' adding 'tpm2_pytss/tsskey.py' adding 'tpm2_pytss/types.py' adding 'tpm2_pytss/utils.py' adding 'tpm2_pytss/internal/__init__.py' adding 'tpm2_pytss/internal/constants.py' adding 'tpm2_pytss/internal/crypto.py' adding 'tpm2_pytss/internal/templates.py' adding 'tpm2_pytss/internal/type_mapping.py' adding 'tpm2_pytss/internal/utils.py' adding 'tpm2_pytss/internal/versions.py' adding 'tpm2_pytss-1.2.0.dist-info/LICENSE' adding 'tpm2_pytss-1.2.0.dist-info/METADATA' adding 'tpm2_pytss-1.2.0.dist-info/WHEEL' adding 'tpm2_pytss-1.2.0.dist-info/top_level.txt' adding 'tpm2_pytss-1.2.0.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel * Getting dependencies for wheel... * Building wheel... Successfully built tpm2_pytss-1.2.0-cp310-cp310-linux_riscv64.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-7.1.2, pluggy-1.0.0 rootdir: /build/python-tpm2-pytss/src/tpm2-pytss collected 521 items test/test_crypto.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 9%] test/test_encoding.py .....................................FsEsEsEFFEFEFE [ 17%] FEFEFEFEFEFEFEFEFEFEFFFFFFFFFFFFFFFFF [ 23%] test/test_esapi.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 33%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 46%] test/test_exception.py ...... [ 47%] test/test_fapi.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 57%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 69%] test/test_internal.py . [ 69%] test/test_tcti.py FFFFFFFF [ 71%] test/test_tsskey.py FFFFFFFFFFFFF [ 73%] test/test_types.py ..................................................... [ 84%] ............................................................... [ 96%] test/test_utils.py FFFFFFFFFFFFFFFFFFFF [100%] ==================================== ERRORS ==================================== ______________ ERROR at teardown of ToolsTest.test_decode_int_nt _______________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________ ERROR at teardown of ToolsTest.test_decode_nt_extend _____________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ______________ ERROR at teardown of ToolsTest.test_decode_nt_pin _______________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________ ERROR at teardown of ToolsTest.test_tools_decode_pcr_tuples __________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____ ERROR at teardown of ToolsTest.test_tools_decode_tmpl_pcr_selection ______ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________ ERROR at teardown of ToolsTest.test_tools_decode_tpm2b_name __________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________ ERROR at teardown of ToolsTest.test_tools_decode_tpma_session _________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __________ ERROR at teardown of ToolsTest.test_tools_decode_tpml_alg ___________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ______ ERROR at teardown of ToolsTest.test_tools_decode_tpml_alg_property ______ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __________ ERROR at teardown of ToolsTest.test_tools_decode_tpml_cca ___________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____ ERROR at teardown of ToolsTest.test_tools_decode_tpml_digest_values ______ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______ ERROR at teardown of ToolsTest.test_tools_decode_tpml_ecc_curve ________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________ ERROR at teardown of ToolsTest.test_tools_decode_tpml_handle _________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __ ERROR at teardown of ToolsTest.test_tools_decode_tpml_tagged_tpm_property ___ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______ ERROR at teardown of ToolsTest.test_tools_decode_tpms_nv_public ________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________ ERROR at teardown of ToolsTest.test_tools_decode_tpmt_public _________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________ ERROR at setup of TestFapiECC.test_provision_ok ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ---------------------------- Captured stderr setup ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:fapi:src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/tmp6j3oxpgj/policy does not exist, creating WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 55672: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ERROR:fapi:src/tss2-fapi/api/Fapi_Initialize.c:227:Fapi_Initialize_Finish() Initializing TCTI. ErrorCode (0x000a000a) ______________ ERROR at setup of TestFapiECC.test_provision_fail _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_get_random _________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiECC.test_get_random_zero ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_get_random_large ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_get_random_negative ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________________ ERROR at setup of TestFapiECC.test_get_info __________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________________ ERROR at setup of TestFapiECC.test_list ____________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_list_search_path ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_list_bad_search_path ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_create_key _________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_create_key_double_ok ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_create_key_double_fail ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiECC.test_get_esys_blob_contextload _________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_get_esys_blob_bad _____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiECC.test_get_esys_blob_deserialize _________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiECC.test_verify ___________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_verify_fail ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_import_key_double_ok ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_import_key_double_fail ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_import_policy_double_ok __________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiECC.test_import_policy_double_fail _________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_import_exported_key ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_export_imported_policy ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_create_seal ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_create_seal_double_ok ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiECC.test_create_seal_double_fail __________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_create_seal_random _____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____ ERROR at setup of TestFapiECC.test_create_seal_both_data_and_size_fail ____ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __ ERROR at setup of TestFapiECC.test_create_seal_neither_data_nor_size_fail ___ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiECC.test_unseal ___________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_quote_verify ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_export_key _________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_delete_key _________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_set_get_description ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_get_empty_description ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_set_get_app_data ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiECC.test_get_no_app_data ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_set_get_certificate ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiECC.test_get_empty_certificate ___________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____ ERROR at setup of TestFapiECC.test_get_empty_platform_certificates_ok _____ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___ ERROR at setup of TestFapiECC.test_get_empty_platform_certificates_fail ____ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________________ ERROR at setup of TestFapiECC.test_pcr_read __________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiECC.test_pcr_extend_read ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_nv_write_read _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_nv_increment ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiECC.test_nv_pcr ___________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiECC.test_nv_set_bits ________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_set_auth_callback _____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_unset_auth_callback ____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiECC.test_write_authorize_nv _____________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiECC.test_authorize_policy ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_policy_signed _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiECC.test_policy_branched ______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_policy_action _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________________ ERROR at setup of TestFapiECC.test_sign ____________________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiECC.test_get_tpm_blobs _______________ fapi_config_ecc = @pytest.fixture(scope="class") def fapi_ecc(fapi_config_ecc): > with FAPI() as fapi: test/test_fapi.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_provision_ok ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ---------------------------- Captured stderr setup ----------------------------- WARNING:fapi:src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/tmpwmmrjuwp/policy does not exist, creating WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 55672: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ERROR:fapi:src/tss2-fapi/api/Fapi_Initialize.c:227:Fapi_Initialize_Finish() Initializing TCTI. ErrorCode (0x000a000a) ______________ ERROR at setup of TestFapiRSA.test_provision_fail _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_get_random _________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_get_random_zero ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_get_random_large ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_get_random_negative ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________________ ERROR at setup of TestFapiRSA.test_get_info __________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________________ ERROR at setup of TestFapiRSA.test_list ____________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_list_search_path ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_list_bad_search_path ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_create_key _________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_create_key_double_ok ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_create_key_double_fail ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiRSA.test_get_esys_blob_contextload _________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_get_esys_blob_bad _____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiRSA.test_get_esys_blob_deserialize _________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiRSA.test_verify ___________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_verify_fail ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_import_key_double_ok ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_import_key_double_fail ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_import_policy_double_ok __________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________ ERROR at setup of TestFapiRSA.test_import_policy_double_fail _________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_import_exported_key ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_export_imported_policy ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_create_seal ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_create_seal_double_ok ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________ ERROR at setup of TestFapiRSA.test_create_seal_double_fail __________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_create_seal_random _____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____ ERROR at setup of TestFapiRSA.test_create_seal_both_data_and_size_fail ____ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __ ERROR at setup of TestFapiRSA.test_create_seal_neither_data_nor_size_fail ___ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiRSA.test_unseal ___________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_quote_verify ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_export_key _________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_delete_key _________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_set_get_description ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_get_empty_description ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_set_get_app_data ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_get_no_app_data ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_set_get_certificate ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________ ERROR at setup of TestFapiRSA.test_get_empty_certificate ___________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____ ERROR at setup of TestFapiRSA.test_get_empty_platform_certificates_ok _____ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___ ERROR at setup of TestFapiRSA.test_get_empty_platform_certificates_fail ____ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _________________ ERROR at setup of TestFapiRSA.test_pcr_read __________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_pcr_extend_read ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_nv_write_read _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_nv_increment ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception __________________ ERROR at setup of TestFapiRSA.test_nv_pcr ___________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ________________ ERROR at setup of TestFapiRSA.test_nv_set_bits ________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_set_auth_callback _____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_unset_auth_callback ____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at setup of TestFapiRSA.test_write_authorize_nv _____________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _____________ ERROR at setup of TestFapiRSA.test_authorize_policy ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_policy_signed _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_policy_branched ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_policy_action _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ___________________ ERROR at setup of TestFapiRSA.test_sign ____________________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception _______________ ERROR at setup of TestFapiRSA.test_get_tpm_blobs _______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ______________ ERROR at setup of TestFapiRSA.test_encrypt_decrypt ______________ fapi_config_rsa = @pytest.fixture(scope="class") def fapi_rsa(fapi_config_rsa): > with FAPI() as fapi: test/test_fapi.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py:129: in __init__ _chkrc(ret) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception ____________ ERROR at teardown of TestFapiRSA.test_encrypt_decrypt _____________ @pytest.fixture(scope="module") def simulator(): tpm = TpmSimulator.getSimulator() tpm.start() yield tpm > tpm.close() test/test_fapi.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError =================================== FAILURES =================================== ________________________ CryptoTest.test_ecc_bad_curves ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=52739' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52739' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52739' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52739: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ CryptoTest.test_encrypted_key _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=38918' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=38918' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=38918' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 38918: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_from_pem_with_scheme _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=44671' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44671' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44671' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44671: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_from_pem_with_symmetric ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=41868' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41868' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41868' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41868: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ CryptoTest.test_get_alg ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=51282' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=51282' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=51282' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 51282: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ CryptoTest.test_kdfa _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=31967' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31967' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31967' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31967: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ CryptoTest.test_kdfe _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=51988' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=51988' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=51988' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 51988: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ CryptoTest.test_keyedhash_from_secret _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=12929' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12929' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12929' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12929: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________ CryptoTest.test_keyedhash_from_secret_bad ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=43280' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=43280' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=43280' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 43280: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_keyedhash_from_secret_unseal _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=44721' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44721' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44721' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44721: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_loadexternal_ecc _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=35699' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35699' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35699' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35699: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_loadexternal_public_rsa ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=9491' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=9491' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=9491' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9491: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_loadexternal_rsa _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=14366' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=14366' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=14366' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 14366: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ CryptoTest.test_nv_getname __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=50001' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=50001' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=50001' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50001: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_private_from_pem_bad_der ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=19191' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=19191' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=19191' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 19191: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_private_from_pem_ecc _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17454' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17454' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17454' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17454: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_private_from_pem_ecc_der ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17536' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17536' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17536' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17536: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_private_from_pem_rsa _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=32977' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=32977' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=32977' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 32977: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_private_from_pem_rsa_der ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=32583' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=32583' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=32583' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 32583: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_public_from_pem_bad_der ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17106' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17106' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17106' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17106: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_public_from_pem_ecc ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=54194' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54194' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54194' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54194: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_public_from_pem_ecc_der ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=9128' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=9128' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=9128' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9128: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_public_from_pem_ecc_der_cert _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=43633' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=43633' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=43633' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 43633: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_public_from_pem_ecc_pem_cert _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=56791' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=56791' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=56791' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 56791: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_public_from_pem_rsa ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=36249' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=36249' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=36249' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 36249: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_public_from_pem_rsa_der ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=9704' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=9704' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=9704' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9704: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_public_from_pem_rsa_der_cert _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=50695' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=50695' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=50695' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50695: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ CryptoTest.test_public_from_pem_rsa_pem_cert _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=11298' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=11298' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=11298' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11298: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_public_from_private ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=22145' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=22145' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=22145' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22145: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_public_from_private_der ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5293' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5293' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5293' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5293: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ CryptoTest.test_public_getname ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=53240' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53240' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53240' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53240: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ CryptoTest.test_public_to_pem_bad_key _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=52098' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52098' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52098' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52098: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ CryptoTest.test_public_to_pem_ecc _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=63890' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63890' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63890' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63890: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ CryptoTest.test_public_to_pem_rsa _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=23616' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=23616' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=23616' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23616: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ CryptoTest.test_rsa_exponent _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=55064' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=55064' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=55064' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 55064: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ CryptoTest.test_ssh_key_ecc __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=19665' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=19665' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=19665' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 19665: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ CryptoTest.test_symcipher_from_secret _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5609' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5609' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5609' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5609: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________ CryptoTest.test_symcipher_from_secret_bad ___________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=52157' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52157' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52157' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52157: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_symdef_to_crypt ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=35977' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35977' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35977' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35977: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ CryptoTest.test_topem_ecc ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=49478' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49478' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49478' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49478: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_topem_encodings ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30048' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30048' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30048' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30048: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ CryptoTest.test_topem_rsa ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=64319' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=64319' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=64319' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 64319: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ CryptoTest.test_unsupported_key ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=40736' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40736' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40736' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40736: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_verify_signature_bad _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=57070' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=57070' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=57070' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57070: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ CryptoTest.test_verify_signature_ecc _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=57341' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=57341' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=57341' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57341: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ CryptoTest.test_verify_signature_hmac _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=61718' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61718' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61718' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61718: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_verify_singature_rsapss ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=52450' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52450' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52450' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52450: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ CryptoTest.test_verify_singature_rsassa ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=38826' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=38826' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=38826' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 38826: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ ToolsTest.test_decode_int ___________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ____________________________ ToolsTest.test_to_yaml ____________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ____________________ ToolsTest.test_tools_decode_pcr_tuples ____________________ self = def test_tools_decode_pcr_tuples(self): self.maxDiff = None if not self.has_tools: self.skipTest("tools not in path") > yml = self.run_tool("pcrread", "sha1:0,1,2,3,4,5,6,7,8+sha256:0") test/test_encoding.py:1291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('pcrread', 'sha1:0,1,2,3,4,5,6,7,8+sha256:0') args = ('tpm2', 'pcrread', 'sha1:0,1,2,3,4,5,6,7,8+sha256:0', '--tcti', 'swtpm:port=46781') tcti = 'swtpm:port=46781' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 46781: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=46781" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________ ToolsTest.test_tools_decode_tmpl_pcr_selection ________________ self = def test_tools_decode_tmpl_pcr_selection(self): if not self.has_tools: self.skipTest("tools not in path") > yml = self.run_tool("getcap", "pcrs") test/test_encoding.py:1135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'pcrs') args = ('tpm2', 'getcap', 'pcrs', '--tcti', 'swtpm:port=35518') tcti = 'swtpm:port=35518' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35518: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=35518" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ____________________ ToolsTest.test_tools_decode_tpm2b_name ____________________ self = def test_tools_decode_tpm2b_name(self): if not self.has_tools: self.skipTest("tools not in path") key = ec.generate_private_key(ec.SECP256R1).public_key() kb = key.public_bytes( serialization.Encoding.PEM, serialization.PublicFormat.SubjectPublicKeyInfo ) key_path = os.path.join(self.tpm.working_dir.name, "external.key") ctx_path = os.path.join(self.tpm.working_dir.name, "external.ctx") with open(key_path, "wb") as f: f.write(kb) > yml = self.run_tool("loadexternal", "-G", "ecc", "-u", key_path, "-c", ctx_path) test/test_encoding.py:1422: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False tool_args = ('loadexternal', '-G', 'ecc', '-u', '/tmp/tmpokb0iymw/external.key', '-c', ...) args = ('tpm2', 'loadexternal', '-G', 'ecc', '-u', '/tmp/tmpokb0iymw/external.key', ...) tcti = 'swtpm:port=42564' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 42564: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=42564" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_decode_tpma_session ___________________ self = def test_tools_decode_tpma_session(self): if not self.has_tools: self.skipTest("tools not in path") session_path = os.path.join( self.tpm.working_dir.name, "test_decode_tpma_session.ctx" ) > self.run_tool("startauthsession", "-S", session_path) test/test_encoding.py:1326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False tool_args = ('startauthsession', '-S', '/tmp/tmp91_0_96v/test_decode_tpma_session.ctx') args = ('tpm2', 'startauthsession', '-S', '/tmp/tmp91_0_96v/test_decode_tpma_session.ctx', '--tcti', 'swtpm:port=49012') tcti = 'swtpm:port=49012' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49012: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=49012" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ ToolsTest.test_tools_decode_tpml_alg _____________________ self = def test_tools_decode_tpml_alg(self): if not self.has_tools: self.skipTest("tools not in path") elif not self.tpm.tcti_name_conf.startswith("swtpm"): self.skipTest("swtpm required") > self.run_tool("incrementalselftest", "rsa", "ecc") test/test_encoding.py:1397: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('incrementalselftest', 'rsa', 'ecc') args = ('tpm2', 'incrementalselftest', 'rsa', 'ecc', '--tcti', 'swtpm:port=46536') tcti = 'swtpm:port=46536' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 46536: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=46536" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________ ToolsTest.test_tools_decode_tpml_alg_property _________________ self = def test_tools_decode_tpml_alg_property(self): if not self.has_tools: self.skipTest("tools not in path") elif not self.tpm.tcti_name_conf.startswith("swtpm"): self.skipTest("swtpm required") > yml = self.run_tool("getcap", "algorithms") test/test_encoding.py:1123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'algorithms') args = ('tpm2', 'getcap', 'algorithms', '--tcti', 'swtpm:port=25415') tcti = 'swtpm:port=25415' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25415: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=25415" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ ToolsTest.test_tools_decode_tpml_cca _____________________ self = def test_tools_decode_tpml_cca(self): if not self.has_tools: self.skipTest("tools not in path") > yml = self.run_tool("getcap", "commands") test/test_encoding.py:1147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'commands') args = ('tpm2', 'getcap', 'commands', '--tcti', 'swtpm:port=30870') tcti = 'swtpm:port=30870' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30870: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=30870" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________ ToolsTest.test_tools_decode_tpml_digest_values ________________ self = def test_tools_decode_tpml_digest_values(self): if not self.has_tools: self.skipTest("tools not in path") data_path = os.path.join(self.tpm.working_dir.name, "eventdata") with open(data_path, "w") as f: f.write("falafel") > yml = self.run_tool("pcrevent", "8", data_path) test/test_encoding.py:1357: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('pcrevent', '8', '/tmp/tmpdt46xe0b/eventdata') args = ('tpm2', 'pcrevent', '8', '/tmp/tmpdt46xe0b/eventdata', '--tcti', 'swtpm:port=11638') tcti = 'swtpm:port=11638' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11638: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=11638" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __________________ ToolsTest.test_tools_decode_tpml_ecc_curve __________________ self = def test_tools_decode_tpml_ecc_curve(self): if not self.has_tools: self.skipTest("tools not in path") elif not self.tpm.tcti_name_conf.startswith("swtpm"): self.skipTest("swtpm required") > yml = self.run_tool("getcap", "ecc-curves") test/test_encoding.py:1102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'ecc-curves') args = ('tpm2', 'getcap', 'ecc-curves', '--tcti', 'swtpm:port=25088') tcti = 'swtpm:port=25088' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25088: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=25088" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_decode_tpml_handle ____________________ self = def test_tools_decode_tpml_handle(self): if not self.has_tools: self.skipTest("tools not in path") > yml = self.run_tool("getcap", "handles-pcr") test/test_encoding.py:1093: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'handles-pcr') args = ('tpm2', 'getcap', 'handles-pcr', '--tcti', 'swtpm:port=26652') tcti = 'swtpm:port=26652' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 26652: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=26652" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________ ToolsTest.test_tools_decode_tpml_tagged_tpm_property _____________ self = def test_tools_decode_tpml_tagged_tpm_property(self): if not self.has_tools: self.skipTest("tools not in path") elif not self.tpm.tcti_name_conf.startswith("swtpm"): self.skipTest("swtpm required") > fixedyml = self.run_tool("getcap", "properties-fixed") test/test_encoding.py:1158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False, tool_args = ('getcap', 'properties-fixed') args = ('tpm2', 'getcap', 'properties-fixed', '--tcti', 'swtpm:port=29384') tcti = 'swtpm:port=29384' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29384: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=29384" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled __________________ ToolsTest.test_tools_decode_tpms_nv_public __________________ self = def test_tools_decode_tpms_nv_public(self): if not self.has_tools: self.skipTest("tools not in path") > self.run_tool("nvdefine", "-s", "8", "-g", "sha256", "0x1800004") test/test_encoding.py:1186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False tool_args = ('nvdefine', '-s', '8', '-g', 'sha256', '0x1800004') args = ('tpm2', 'nvdefine', '-s', '8', '-g', 'sha256', ...) tcti = 'swtpm:port=9434' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9434: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=9434" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_decode_tpmt_public ____________________ self = def test_tools_decode_tpmt_public(self): if not self.has_tools: self.skipTest("tools not in path") > rsayml = self.run_tool( "createprimary", "-G", "rsa2048:rsapss-sha256:null", "-a", "fixedtpm|fixedparent|sensitivedataorigin|userwithauth|sign", ) test/test_encoding.py:1198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = no_tcti = False tool_args = ('createprimary', '-G', 'rsa2048:rsapss-sha256:null', '-a', 'fixedtpm|fixedparent|sensitivedataorigin|userwithauth|sign') args = ('tpm2', 'createprimary', '-G', 'rsa2048:rsapss-sha256:null', '-a', 'fixedtpm|fixedparent|sensitivedataorigin|userwithauth|sign', ...) tcti = 'swtpm:port=57046' def run_tool(self, *tool_args, no_tcti=False): args = ("tpm2",) + tuple(tool_args) if not no_tcti: tcti = self.tpm.tcti_name_conf args = args + ("--tcti", tcti) su_args = ("tpm2", "startup", "--clear", "--tcti", tcti) res = subprocess.run(su_args, timeout=20, capture_output=True, text=True) if res.returncode != 0: > raise RuntimeError( f"tpm2 startup failed with {res.returncode}: {res.stderr}" ) E RuntimeError: tpm2 startup failed with 1: WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57046: errno 111: Connection refused E ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket E ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm E ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI E ERROR: Could not load tcti, got: "swtpm:port=57046" test/test_encoding.py:724: RuntimeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _________________________ ToolsTest.test_tools_nt_pin __________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________________ ToolsTest.test_tools_pcr_tuple ________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_pcr_tuples ________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_tpm2b_name ________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ______________________ ToolsTest.test_tools_tpma_session _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________________ ToolsTest.test_tools_tpml_alg _________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ____________________ ToolsTest.test_tools_tpml_alg_property ____________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________________ ToolsTest.test_tools_tpml_cca _________________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_tpml_digest_values ____________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ ToolsTest.test_tools_tpml_ecc_curve ______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_tpml_handle _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ___________________ ToolsTest.test_tools_tpml_pcr_selection ____________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ________________ ToolsTest.test_tools_tpml_tagged_tpm_property _________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled ______________________ ToolsTest.test_tools_tpms_context _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ ToolsTest.test_tools_tpms_nv_public ______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_tpmt_public _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _______________________ ToolsTest.test_tools_unsupported _______________________ test/TSS2_BaseTest.py:185: in tearDown self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled _____________________ TestEsys.test_TPMS_CONTEXT_to_tools ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=50310' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=50310' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=50310' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50310: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_activate_credential _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=21655' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21655' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21655' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21655: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________________ TestEsys.test_certify _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=49773' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49773' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49773' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49773: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_certify_creation ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30860' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30860' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30860' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30860: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_change_eps ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=12775' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=12775' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=12775' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12775: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_change_pps ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=27333' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=27333' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=27333' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27333: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_clear ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=45380' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=45380' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=45380' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 45380: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_clearcontrol __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17769' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17769' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17769' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17769: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_clock_rate_adjust ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=37023' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=37023' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=37023' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 37023: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_clock_set ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=8284' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8284' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8284' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8284: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_commit _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=24585' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=24585' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=24585' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 24585: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ TestEsys.test_context_save_context_load ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=25061' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25061' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25061' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25061: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_create _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=22554' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=22554' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=22554' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22554: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_create_none ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=55165' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=55165' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=55165' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 55165: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_create_primary _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=54582' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54582' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54582' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54582: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_create_primary_none _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=35099' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35099' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35099' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35099: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_createloaded __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=48599' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=48599' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=48599' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 48599: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_createloaded_none ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=8528' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8528' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8528' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8528: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________ TestEsys.test_dictionary_attack_lock_reset __________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=40901' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40901' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40901' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40901: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________ TestEsys.test_dictionary_attack_parameters __________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=21407' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21407' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21407' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21407: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_double_close __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=34548' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34548' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34548' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34548: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_duplicate ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=18685' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=18685' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=18685' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 18685: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_ecc_parameters _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=23931' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=23931' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=23931' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23931: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_ecdh_key_gen __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=32814' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=32814' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=32814' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 32814: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_ecdh_z_gen ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=47647' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=47647' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=47647' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 47647: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_encrypt_decrypt _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=63843' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63843' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63843' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63843: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_encrypt_decrypt2 ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=29793' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=29793' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=29793' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29793: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_esys_tr_functions ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=47693' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=47693' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=47693' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 47693: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_event_sequence_complete _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=57201' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=57201' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=57201' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57201: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_evict_control __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=59493' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=59493' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=59493' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 59493: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_field_upgrade_data _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=48046' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=48046' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=48046' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 48046: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_field_upgrade_start _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=3634' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=3634' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=3634' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 3634: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_firmware_read __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=29331' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=29331' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=29331' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29331: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_flush_context __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=25679' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25679' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25679' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25679: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_fulltest_no ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=22175' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=22175' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=22175' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22175: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_fulltest_yes __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30255' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30255' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30255' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30255: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_get_capability _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=65235' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=65235' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=65235' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 65235: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_get_command_audit_digest ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=37036' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=37036' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=37036' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 37036: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_get_random ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=2354' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=2354' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=2354' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 2354: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_get_session_audit_digest ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=49956' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=49956' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=49956' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49956: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________________ TestEsys.test_get_time ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=40302' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40302' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40302' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40302: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________________ TestEsys.test_gettcti _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=64111' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=64111' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=64111' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 64111: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________________ TestEsys.test_hash ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=21392' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21392' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21392' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21392: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_hash_sequence __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=50783' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=50783' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=50783' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50783: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_hierarchy_control ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=54010' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54010' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54010' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54010: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_hierarchychangeauth _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=45124' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=45124' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=45124' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 45124: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________________ TestEsys.test_hmac ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=51735' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=51735' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=51735' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 51735: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_hmac_sequence __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=4158' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=4158' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=4158' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 4158: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_hmac_session __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=14445' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=14445' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=14445' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 14445: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_import _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=50368' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=50368' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=50368' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50368: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_incremental_resume_test _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=8523' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=8523' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=8523' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8523: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ TestEsys.test_incremental_self_test ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=62671' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=62671' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=62671' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 62671: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________________ TestEsys.test_load ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=38166' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=38166' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=38166' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 38166: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_make_credential _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=28835' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28835' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28835' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28835: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_nv_certify ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=9715' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=9715' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=9715' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9715: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_nv_change_auth _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=25518' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25518' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25518' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25518: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_nv_extend ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=53141' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53141' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53141' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53141: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_nv_global_write_lock ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=54553' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54553' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54553' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54553: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_nv_increment __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=21604' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=21604' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=21604' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21604: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_nv_read_lock __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=41179' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=41179' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=41179' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41179: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_nv_read_public _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=23065' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=23065' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=23065' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23065: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_nv_set_bits ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5934' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5934' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5934' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5934: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ TestEsys.test_nv_undefine_space_special ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30045' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30045' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30045' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30045: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_nv_write_lock __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=22815' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=22815' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=22815' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22815: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_object_change_auth _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=60200' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=60200' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=60200' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 60200: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_pcr_allocate __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5228' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5228' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5228' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5228: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_pcr_event ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=17778' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=17778' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=17778' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17778: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_pcr_extend ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=40909' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=40909' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=40909' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40909: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________________ TestEsys.test_pcr_read ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=31900' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31900' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31900' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31900: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_pcr_reset ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=28267' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28267' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28267' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28267: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_pcr_set_auth_policy _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=20306' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=20306' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=20306' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 20306: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_pcr_set_auth_value _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=53482' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53482' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53482' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53482: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________ TestEsys.test_plain_nv_define_write_read_undefine _______________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30533' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30533' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30533' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30533: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_policy_auth_value ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=4676' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=4676' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=4676' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 4676: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_authorize ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=61561' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61561' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61561' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61561: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_policy_authorize_nv _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=7687' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=7687' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=7687' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 7687: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_policy_command_code _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=24818' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=24818' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=24818' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 24818: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________ TestEsys.test_policy_counter_timer ______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=47078' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=47078' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=47078' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 47078: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policy_cp_hash _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=34468' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=34468' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=34468' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34468: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ TestEsys.test_policy_duplication_select ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5095' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5095' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5095' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5095: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_policy_get_digest ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=60276' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=60276' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=60276' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 60276: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_locality _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=20594' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=20594' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=20594' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 20594: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_name_hash ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=53830' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=53830' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=53830' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53830: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_policy_nv ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=52545' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52545' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52545' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52545: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_policy_nv_written ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=48434' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=48434' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=48434' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 48434: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_policy_or ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=61517' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=61517' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=61517' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61517: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_password _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=15236' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=15236' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=15236' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 15236: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_policy_pcr ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=56201' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=56201' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=56201' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 56201: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________ TestEsys.test_policy_physical_presence ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=15040' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=15040' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=15040' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 15040: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policy_secret __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=13770' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13770' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13770' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13770: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policy_signed __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=36542' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=36542' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=36542' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 36542: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_policy_template _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=45492' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=45492' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=45492' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 45492: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policy_ticket __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=33303' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=33303' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=33303' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 33303: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_policyrestart __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=7797' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=7797' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=7797' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 7797: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_pp_commands ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=18186' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=18186' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=18186' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 18186: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_quote ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=44372' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=44372' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=44372' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44372: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_read_clock ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=64736' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=64736' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=64736' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 64736: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_readpublic ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=31224' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=31224' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=31224' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31224: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_ref_parent ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=52706' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=52706' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=52706' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52706: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_rewrap _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30971' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30971' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30971' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30971: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_rsa_enc_dec ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=5447' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=5447' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=5447' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5447: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ TestEsys.test_rsa_enc_dec_with_label _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=32278' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=32278' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=32278' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 32278: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_set_algorithm_set ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=57154' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=57154' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=57154' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57154: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ TestEsys.test_set_command_code_audit_status __________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=30463' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=30463' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=30463' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30463: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_set_primary_policy _______________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=35680' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=35680' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=35680' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35680: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_shutdown_bad __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=33728' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=33728' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=33728' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 33728: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_shutdown_clear _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=46102' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=46102' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=46102' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 46102: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_shutdown_no_arg _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=54241' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=54241' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=54241' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54241: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_shutdown_state _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=13632' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=13632' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=13632' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13632: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ______________________________ TestEsys.test_sign ______________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=15901' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=15901' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=15901' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 15901: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________ TestEsys.test_start_auth_session_enckey ____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=24476' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=24476' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=24476' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 24476: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________ TestEsys.test_start_auth_session_enckey_bindkey ________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=18736' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=18736' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=18736' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 18736: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________ TestEsys.test_start_auth_session_noncecaller _________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=23108' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=23108' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=23108' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23108: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________ TestEsys.test_start_auth_session_noncecaller_bad _______________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=50339' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=50339' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=50339' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50339: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI __________________________ TestEsys.test_stir_random ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=59598' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=59598' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=59598' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 59598: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ___________________________ TestEsys.test_test_parms ___________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=18568' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=18568' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=18568' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 18568: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _______________________ TestEsys.test_tr_get_tpm_handle ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=63725' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=63725' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=63725' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63725: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________ TestEsys.test_tr_sess_set_attributes _____________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=28797' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28797' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28797' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28797: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestEsys.test_unseal _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , tcti = 'swtpm:port=7304' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=7304' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=7304' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 7304: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_vendor_tcg_test _________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=42417' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=42417' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=42417' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 42417: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ________________________ TestEsys.test_verify_signature ________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=48511' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=48511' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=48511' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 48511: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _________________________ TestEsys.test_z_gen_2_phase __________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=28219' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=28219' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=28219' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28219: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI _____________________________ TestTCTI.test_cancel _____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=25099' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=25099' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=25099' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def close(self): > self.tpm.terminate() E AttributeError: 'NoneType' object has no attribute 'terminate' test/TSS2_BaseTest.py:51: AttributeError ----------------------------- Captured stderr call ----------------------------- swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled swtpm: seccomp_load failed with errno 125: Operation canceled WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25099: errno 111: Connection refused ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI ____________________________ TestTCTI.test_finalize ____________________________ self = def setUp(self): super().setUp() try: # use str initializer here to test string inputs to ESAPI constructor > with ESAPI(self.tpm.tcti_name_conf) as ectx: test/TSS2_BaseTest.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = tcti = 'swtpm:port=20064' def __init__(self, tcti: Union[TCTI, str, None] = None): if not isinstance(tcti, (TCTI, type(None), str)): raise TypeError( f"Expected tcti to be type TCTI, str or None, got {type(tcti)}" ) self._did_load_tcti = False # support tpm2-tools style tcti strings if isinstance(tcti, str): self._did_load_tcti = True > tcti = TCTILdr.parse(tcti) build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , tcti_name_conf = 'swtpm:port=20064' @classmethod def parse(cls, tcti_name_conf: str): chunks = tcti_name_conf.split(":", 1) if len(chunks) > 2: raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}") name = chunks[0] conf = chunks[1] if len(chunks) == 2 else None > return cls(name, conf) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , name = b'swtpm' conf = b'port=20064' def __init__(self, name=None, conf=None): self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **") if name is None: name = ffi.NULL elif isinstance(name, str): name = name.encode() if conf is None: conf = ffi.NULL elif isinstance(conf, str): conf = conf.encode() if not isinstance(name, (bytes, type(ffi.NULL))): raise TypeError(f"name must be of type bytes, got {type(name)}") if not isinstance(conf, (bytes, type(ffi.NULL))): raise TypeError(f"conf must be of type bytes, got {type(name)}") > _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp)) build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rc = 655370, acceptable = [0] def _chkrc(rc, acceptable=None): if acceptable is None: acceptable = [] elif isinstance(acceptable, int): acceptable = [acceptable] acceptable += [lib.TPM2_RC_SUCCESS] if rc not in acceptable: > raise TSS2_Exception(rc) E tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py:32: TSS2_Exception During handling of the above exception, another exception occurred: test/TSS2_BaseTest.py:202: in setUp self.tpm.close() _ _ _ _ _ _ _ _ _