buildkernel | EFI secure boot kernels under Gentoo Linux
kandi X-RAY | buildkernel Summary
kandi X-RAY | buildkernel Summary
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
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of buildkernel
buildkernel Key Features
buildkernel Examples and Code Snippets
Community Discussions
Trending Discussions on buildkernel
QUESTION
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- Implement your own Pseudo RNG. C Rand does not generate secure randomness, so you could do the same.
- 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.
- Use FreeBSD's randomness functions. It almost certainly has a randomness extractor implementation.
QUESTION
ANSWER
Answered 2017-Feb-12 at 16:01System calls should have a name starting with sys_
.
Look at the other files in /usr/src/sys/kern
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install buildkernel
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page