Code Monkey home page Code Monkey logo

Comments (6)

dgarske avatar dgarske commented on August 24, 2024

Hi @IldarAbdullin-okta ,

No plans currently. What is the use-case and platform where you need this feature?

If you are on Linux we support --enable-tislock or WOLFTPM_TIS_LOCK that uses a named semaphore for locking allowing concurrent access between processes. However that only works if using our TIS layer. If using the /dev/tpm0 it's handled by the Linux Kernel.

Thanks,
David Garske, wolfSSL

from wolftpm.

IldarAbdullin-okta avatar IldarAbdullin-okta commented on August 24, 2024

Hi @IldarAbdullin-okta ,

No plans currently. What is the use-case and platform where you need this feature?

If you are on Linux we support --enable-tislock or WOLFTPM_TIS_LOCK that uses a named semaphore for locking allowing concurrent access between processes. However that only works if using our TIS layer. If using the /dev/tpm0 it's handled by the Linux Kernel.

Thanks, David Garske, wolfSSL

Platform is Linux, and yes, we are using /dev/tpm0 interface. One of the concern with the approach is that communication with /dev/tpmX requires root privileges. As a workaround we are thinking about installing udev rule similar to - tpm2-tss tool approach and add an end user to TSS group.

As a workaround we can have KERNEL=="tpm[0-9]*", TAG+="systemd", MODE="0660", GROUP="tss", and this most likely will be our short term solution. However that rule can be overwritten if user will install tpm2-tss tool after our application. So for us it would be great if we can follow the same approach as TSS has today for their tpm tools

from wolftpm.

dgarske avatar dgarske commented on August 24, 2024

Hi @IldarAbdullin-okta ,

Thank you for those details. I will look into this TSS approach and see if I can improve wolfTPM support.

Thanks,
David Garske, wolfSSL

from wolftpm.

dgarske avatar dgarske commented on August 24, 2024

Hi @IldarAbdullin-okta , I posted instructions for setting up a custom group and Udev rules. See https://github.com/wolfSSL/wolfTPM/pull/366/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R273

from wolftpm.

IldarAbdullin-okta avatar IldarAbdullin-okta commented on August 24, 2024

Hi @IldarAbdullin-okta , I posted instructions for setting up a custom group and Udev rules. See https://github.com/wolfSSL/wolfTPM/pull/366/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R273

Hi @dgarske ,

Thanks for updating instructions! New changes look good to me. One thing is that sudo udevadm control -R doesn't help and you still have to logout or reboot(tested on Ubuntu 22+). I didn't find a good way how to make it work without reboot. Most likely that requires reload of a TPM driver

Also checking regarding tpmrmX integration again. I'm hearing feedback that integration against tpmrmX may help against apps that are trying to DoS TPM with a lot of requests.

Ildar

from wolftpm.

dgarske avatar dgarske commented on August 24, 2024

Hi @IldarAbdullin-okta , I posted instructions for setting up a custom group and Udev rules. See https://github.com/wolfSSL/wolfTPM/pull/366/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R273

Hi @dgarske ,

Thanks for updating instructions! New changes look good to me. One thing is that sudo udevadm control -R doesn't help and you still have to logout or reboot(tested on Ubuntu 22+). I didn't find a good way how to make it work without reboot. Most likely that requires reload of a TPM driver

Also checking regarding tpmrmX integration again. I'm hearing feedback that integration against tpmrmX may help against apps that are trying to DoS TPM with a lot of requests.

Ildar

I noticed that too about having to reboot. I will update the instructions.

from wolftpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.