Giter Site home page Giter Site logo

Comments (9)

momiji avatar momiji commented on May 24, 2024

+1 I would like this option also.

While refactoring tpm-luks with a more user-centric approach, I utook the time to update to newest version 1.2.1, but it no more works on a virtual machine, because having a TPM is now mandatory.

The message I got is: No TPM found error, and nothing more at boot time.

I have no idea if it is better to have a compile options or a parameter somewhere in the grub.cfg or something else, even if I prefer configuration over compilation option, you choose :)

Anyway, great work! We're using 1.0.0 version in production, and we will move soon to 1.2.1 !!!

from trustedgrub2.

insecure avatar insecure commented on May 24, 2024

If you decide to use TrustedGRUB instead of GRUB, you do this because you want to use the TPM. If you do not have a TPM, use traditional GRUB.
The reason for removing the "no-TPM fallback mode" was, that it is insecure:

  1. block access to the TPM while GRUB tries to detect the TPM, e.g. by jamming the LPC bus
  2. let GRUB boot your malicious OS (or even your malicious second stage)
  3. unblock the TPM
  4. extend some PCRs so they match a trusted platform configuration
  5. Grats! You just upgraded your malicious OS to be a "trusted" OS. You may now unseal the key for the harddrive encryption and do anything else you like.

A security product should use secure defaults, so I would rather implement a compile flag which enables no-TPM mode. Anyway, as stated earlier, you would then probably prefer to choose common GRUB over TrustedGRUB.

from trustedgrub2.

neusdan avatar neusdan commented on May 24, 2024

Yeah you've convinced me. I think the other way round, i.e. compile flag which enables no-TPM mode, is the better way.

from trustedgrub2.

momiji avatar momiji commented on May 24, 2024

that's ok for me too, no problem, having a flag will do the trick for me too...

from trustedgrub2.

savek-cc avatar savek-cc commented on May 24, 2024

Is compiling TrustedGRUB2 to boot without TPM possible by now? (since this isn't closed yet)

from trustedgrub2.

neusdan avatar neusdan commented on May 24, 2024

no it's not implemented yet

from trustedgrub2.

jorgefm avatar jorgefm commented on May 24, 2024

Any progress? Thanks!

from trustedgrub2.

jorgefm avatar jorgefm commented on May 24, 2024

This little patch does the trick...

--- a/grub-core/boot/i386/pc/boot.S	2017-06-08 22:17:01.000000000 +0200
+++ b/grub-core/boot/i386/pc/boot.S	2018-02-23 10:19:21.518294525 +0100
@@ -397,10 +397,12 @@
 
 error_tpm_deactivated:
   MSG(deactivatedTPM_error_string)
-  jmp	LOCAL(general_error)
+  popa
+  jmp	LOCAL(always_boot)
 error_no_tpm:
 	MSG(noTPM_error_string)
-	jmp	LOCAL(general_error)
+	popa
+	jmp	LOCAL(always_boot)
 
 /*
  * BIOS call "INT 1Ah, (AH)=BBh, (AL)=07h" TCG_CompactHashLogExtendEvent
@@ -450,6 +452,7 @@
 #endif /* ENABLE_TGRUB2 */
 /* END TCG Extension */
 
+LOCAL(always_boot):
 	/* boot kernel */
 	jmp	*(kernel_address)

from trustedgrub2.

securitykernel avatar securitykernel commented on May 24, 2024

Unfortunately, this project is deprecated and no longer maintained. I will be closing this issue.

from trustedgrub2.

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.