buildkernel | EFI secure boot kernels under Gentoo Linux

 by   sakaki- Shell Version: 1.0.37 License: GPL-3.0

kandi X-RAY | buildkernel Summary

kandi X-RAY | buildkernel Summary

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

buildkernel is a script that builds a Gentoo Linux EFI stub kernel which is suitable for booting from a USB key using UEFI (no additional bootloader required). It makes use of the initramfs creation tools (and early userspace init(8) script) provided by genkernel(8). Specifically, the assumed use-case for buildkernel is where you are creating a kernel for use in a dual-factor-authenticated LVM-over-LUKS system, booting from an external USB key, with secure boot enabled (using UEFI), where you may (optionally) wish to use the plymouth(8) splash manager, and where the target (final) init system is systemd(1). Note: as of version 1.0.11, OpenRC(8) init is also supported. To facilitate this, buildkernel will create a statically linked version of gpg(1) — one which furthermore does not require pinentry — and include this in the initramfs. It will also automatically set the necessary kernel configuration parameters, including the command line, sign the resulting kernel if possible, then update the EFI boot list if required. The buildkernel utility can be invoked in non-interactive (default) or interactive mode (see the --ask option, in the manpage). Non-interactive mode is suitable for use in a scripted invocation. Certain key options can be specified via the configuration file, /etc/buildkernel.conf: see buildkernel.conf(5) for details. Although buildkernel is targetted primarily at the use-case where the EFI system partition is on a removable USB key (for security), it can also be used with a system partition on a fixed drive.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              buildkernel has a low active ecosystem.
              It has 41 star(s) with 39 fork(s). There are 11 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 10 open issues and 12 have been closed. On average issues are closed in 128 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of buildkernel is 1.0.37

            kandi-Quality Quality

              buildkernel has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              buildkernel is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              buildkernel releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not 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 buildkernel
            Get all kandi verified functions for this library.

            buildkernel Key Features

            No Key Features are available at this moment for buildkernel.

            buildkernel Examples and Code Snippets

            No Code Snippets are available at this moment for buildkernel.

            Community Discussions

            QUESTION

            How to generate random number within kernel of FreeBSD at root level?
            Asked 2019-Feb-04 at 21:36

            For my Operating System course, I implementing lottery scheduling algorithm instead of what was already given for FreeBSD.

            In order to implement lottery scheduling, I have to be able to use random number. However, I can't use C standard library (that uses rand function) within kernel of FreeBSD. `

            I am modifying two .c file from root (sched_ule.c and kern_switch.c) that's in /sys/kern and trying to make random variable within sched_ule.c file using random.h that is in /sys/sys

            As of now, I'm hoping to make small step and get random number to be printed out after running make buildkernel and rebooting.

            ...

            ANSWER

            Answered 2019-Feb-04 at 21:36
            1. Implement your own Pseudo RNG. C Rand does not generate secure randomness, so you could do the same.
            2. If you are on post-ivybridge intel-x86, you could just execute rdrand (which is a hack, but would work fine). I suspect other archs have a similar instruction or mechanism.
            3. Use FreeBSD's randomness functions. It almost certainly has a randomness extractor implementation.

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

            QUESTION

            Add a new system call at FreeBSD-11.0-RELEASE-amd64
            Asked 2017-Aug-03 at 11:01

            I am a beginner in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VM. I want to add first new system call. And this is my post in last week. Now I want to build kernel. I see handbook. But In command make buildkernel, indicates errors!

            mykern.c

            ...

            ANSWER

            Answered 2017-Feb-12 at 16:01

            System calls should have a name starting with sys_. Look at the other files in /usr/src/sys/kern.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install buildkernel

            buildkernel is best installed (on Gentoo) via its ebuild, available as part of the sakaki-tools overlay. Full instructions are provided as part of the Sakaki's EFI Install Guide tutorial, on the Gentoo wiki. In particular, see this section for a detailed description of what buildkernel does, and why.

            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/sakaki-/buildkernel.git

          • CLI

            gh repo clone sakaki-/buildkernel

          • sshUrl

            git@github.com:sakaki-/buildkernel.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