efivar | Tools and libraries to work with EFI variables

 by   rhboot C Version: 38 License: LGPL-2.1

kandi X-RAY | efivar Summary

kandi X-RAY | efivar Summary

efivar is a C library typically used in Embedded System applications. efivar has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has low support. You can download it from GitHub.

Tools and libraries to manipulate EFI variables.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              efivar has a low active ecosystem.
              It has 182 star(s) with 89 fork(s). There are 20 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 7 open issues and 100 have been closed. On average issues are closed in 249 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of efivar is 38

            kandi-Quality Quality

              efivar has 0 bugs and 0 code smells.

            kandi-Security Security

              efivar has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              efivar code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              efivar is licensed under the LGPL-2.1 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              efivar releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of efivar
            Get all kandi verified functions for this library.

            efivar Key Features

            No Key Features are available at this moment for efivar.

            efivar Examples and Code Snippets

            No Code Snippets are available at this moment for efivar.

            Community Discussions

            QUESTION

            How to retrieve details of the console port used by BIOS using efivars?
            Asked 2020-Jul-07 at 11:48

            As part of installation of linux, I would like to set the "console device properties"(example, console=ttyS0,115200n1) via the kernel cmdline for Intel based platform.

            There is No VGA console, only serial consoles via COM interface. On these systems BIOS already has the required settings to interact using the appropriate serial port.

            I see that EFI has variables ConIn, ConOut, ConErr which I am able to see from /sys/firmware/efi but unable to decode the contents of it.

            Is it possible to identify which COM port is being used by the BIOS by examining the efi variables.

            Example, of the EFI var on my box.

            ...

            ANSWER

            Answered 2020-Jul-05 at 12:06

            In my case since I know that console port is a "Serial IOPORT", I could get the details now as follows. a. Get hold of the /sys/firmware/acpi/tables/SPC table. b. Read the Address offset 44-52. Actually one the last two bytes suffice.

            Reference: a. https://docs.microsoft.com/en-us/windows-hardware/drivers/serports/serial-port-console-redirection-table states that

            Source https://stackoverflow.com/questions/62738189

            QUESTION

            Ansible Unable to set password for GRUB bootloader in Redhat
            Asked 2020-Jan-15 at 11:46

            As Salam-o-Alikum, I have written an Ansible playbook for setting GRUB bootloader password on RedHat and Ubuntu, there are no error and i can see changes in Grub2.cfg on both locations. It's weird that when i reboot my both machines, Ubuntu machine asks for username and password but Redhat machine don't. I have seen 50+ tutorials procedure is the same and its pretty easy but i don't why its behaving like that. Any help would be greatly appreciated.

            Here is what i've tried.

            Hardening.yml

            ...

            ANSWER

            Answered 2020-Jan-15 at 11:46

            grub-redhat.j2 has some typos.

            Line 11: set supperusers="{{ grub_user }}"

            Change to: set superusers="{{ grub_user }}"

            Line 12: password_pbkdf2 {{ grub_user }} {{ grub_password_v2_passwd }}

            Change to:password_pbkdf2 {{ grub_user }} {{ grub_password_v2_passwd }}

            If you're going to use the same grub password on multiple machines, you might want to consider using ansible-vault encrypt_string to encrypt the raw password, then create an additional task which runs grub2-mkpasswd-pbkdf2 (part of grub2-tools-minimal) with the command module and pass it the vaulted variable. Registering the output of that task (e.g. as grub_password_v2_passwd) would result in every target that you run the playbook against receiving a unique hash even though the underlying password would be the same. The expect module works great for this:

            Source https://stackoverflow.com/questions/59728223

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install efivar

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/rhboot/efivar.git

          • CLI

            gh repo clone rhboot/efivar

          • sshUrl

            git@github.com:rhboot/efivar.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link