Giter Site home page Giter Site logo

Comments (6)

npmccallum avatar npmccallum commented on August 28, 2024

@martinezjavier Can you take care of this?

from clevis.

martinezjavier avatar martinezjavier commented on August 28, 2024

@npmccallum sure thing, I'll take care of it.

from clevis.

martinezjavier avatar martinezjavier commented on August 28, 2024

@npmccallum I think that this should be solved at the package level. The tpm2 tools already have a udev rule that sets the owner of /dev/tpm[0-9]* to the tss user and group. So I think we should add usermod -a -G tss %{name} to the clevis specfile %pre section.

There are some things that I need to also fix on the tpm2 packages though, since the current udev rule only takes into account /dev/tpm[0-9]*, while we are using in Clevis the character device that exposes the resource manager /dev/tpmrm[0-9]*. And also the permission bits only allow the tss user ad not member of the tss group to access the device. Finally, this udev rule is installed by the tpm2-abrmd (user-space daemon) instead of the tpm2-tss (the TPM2 library, which makes more sense).

Anyways, these are orthogonal issues so I'll change the clevis package and then go to fix the issues in the tpm2-* ones.

from clevis.

martinezjavier avatar martinezjavier commented on August 28, 2024

I've proposed the following a pull request to the Clevis package. I've found another problem, but I'll fill it as a separate issue.

from clevis.

npmccallum avatar npmccallum commented on August 28, 2024

Okay, since we can fix this in the package, I'll close this bug.

from clevis.

martinezjavier avatar martinezjavier commented on August 28, 2024

@npmccallum yes, FYI I've already proposed a PR to the tpm2-abrmd project fixing the issues I mentioned with the current tpm udev rule:

tpm2-software/tpm2-abrmd#335

I'll also update the Fedora tpm2-abrmd package to ship the udev rule with the fixes.

from clevis.

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.