1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
Commit graph

31 commits

Author SHA1 Message Date
Jonas 'Sortie' Termansen
77defc5e24 Add suggestion to use nano(1) if installed. 2016-11-03 22:02:53 +01:00
Jonas 'Sortie' Termansen
84c0844f56 Seed kernel entropy with randomness from the previous boot.
The bootloader will now load the /boot/random.seed file if it exists, in
which case the kernel will use it as the initial kernel entropy. The kernel
warns if no random seed was loaded, unless the --no-random-seed option was
given. This option is used for live environments that inherently have no
prior secret state. The kernel initializes its entropy pool from the random
seed as of the first things, so randomness is available very early on.

init(8) will emit a fresh /boot/random.seed file on boot to avoid the same
entropy being used twice. init(8) also writes out /boot/random.seed on
system shutdown where the system has the most entropy. init(8) will warn if
writing the file fails, except if /boot is a real-only filesystem, and
keeping such state is impossible. The system administrator is then
responsible for ensuring the bootloader somehow passes a fresh random seed
on the next boot.

/boot/random.seed must be owned by the root user and root group and must
have file permissions 600 to avoid unprivileged users can read it. The file
is passed to the kernel by the bootloader as a multiboot module with the
command line --random-seed.

If no random seed is loaded, the kernel attempts a poor quality fallback
where it seeds the kernel arc4random(3) continuously with the current time.
The timing variance may provide some effective entropy. There is no real
kernel entropy gathering yet. The read of the CMOS real time clock is moved
to an early point in the kernel boot, so the current time is available as
fallback entropy.

The kernel access of the random seed module is supposed to be infallible
and happens before the kernel log is set up, but there is not yet a failsafe
API for mapping single pages in the early kernel.

sysupgrade(8) creates /boot/random.seed if it's absent as a temporary
compatibility measure for people upgrading from the 1.0 release. The GRUB
port will need to be upgraded with support for /boot/random.seed in the
10_sortix script. Installation with manual bootloader configuration will
need to load the random seed with the --random-seed command line. With GRUB,
this can be done with: module /boot/random.seed --random-seed
2016-10-04 00:34:50 +02:00
Jonas 'Sortie' Termansen
1a87b2f580 Add suggestion to use vim(1) if installed. 2016-09-29 00:01:41 +02:00
Jonas 'Sortie' Termansen
91a6ee7919 Add 24-bit graphics support to kernel. 2016-09-28 20:29:18 +02:00
Jonas 'Sortie' Termansen
e69565fd15 Remove compatibility with Sortix 0.9. 2016-05-15 01:31:48 +02:00
Jonas 'Sortie' Termansen
f3d77725d2 Begin development of Sortix 1.1. 2016-04-04 02:36:03 +02:00
Jonas 'Sortie' Termansen
578501924c Update version number to 1.0. 2016-03-28 18:38:40 +02:00
Jonas 'Sortie' Termansen
927ed5e01f Use video_bochs with Sortix GRUB. 2016-03-27 13:55:51 +02:00
Jonas 'Sortie' Termansen
9a95771cd9 Change default OPTLEVEL to -Os -s. 2016-03-26 23:50:50 +01:00
Jonas 'Sortie' Termansen
03304642df Add GRUB menus to control which ports are loaded. 2016-03-26 23:50:50 +01:00
Jonas 'Sortie' Termansen
e770766cc8 Fix tix archive owner, group and permissions.
tix-build recorded the owner and group as the user building the package,
rather than setting the owner and group to user 0 (root).

tix-install tried to chown extracted files as the owner and group in the
archive, rather than the current user. It also applied the current umask
rather than restoring the same permissions.
2016-03-26 23:29:08 +01:00
Jonas 'Sortie' Termansen
cadef6fedb Rename i486-sortix platform to i686-sortix. 2016-03-06 18:59:10 +01:00
Jonas 'Sortie' Termansen
6aa063a247 Strip ports not honoring -s in CFLAGS. 2016-03-06 14:55:03 +01:00
Jonas 'Sortie' Termansen
f52fb3202c Add sysinstall(8), sysmerge(8), and sysupgrade(8). 2016-02-21 18:41:11 +01:00
Jonas 'Sortie' Termansen
2f50a03035 Fix du(1) locale issues in build-aux/iso-grub-cfg.sh. 2016-02-13 20:09:20 +01:00
Jonas 'Sortie' Termansen
170ccfcc89 Load ports in their own initrds. 2016-02-07 22:46:23 +01:00
Jonas 'Sortie' Termansen
d85a0b70cc Add /etc/machine. 2016-02-07 22:46:22 +01:00
Jonas 'Sortie' Termansen
5ee7ff4e67 Add iso compression support. 2016-02-07 22:46:22 +01:00
Jonas 'Sortie' Termansen
ee971b463b Create tix collection even if PACKAGES is empty. 2016-02-07 14:58:38 +01:00
Jonas 'Sortie' Termansen
224c6595bc Build ports with -Werror=implicit-function-declaration. 2016-01-26 17:13:57 +01:00
Jonas 'Sortie' Termansen
d879c2343b Build ports with -Werror=format. 2016-01-26 17:12:56 +01:00
Jonas 'Sortie' Termansen
9ccfdb9990 Modernize tix temporary files and directory creation. 2016-01-25 17:39:57 +01:00
Jonas 'Sortie' Termansen
beaa824076 Store tixinfo and manifest on tix install. 2016-01-25 17:39:57 +01:00
Jonas 'Sortie' Termansen
f4560a9527 Remove tix tools command line interface cruft.
This removes the ability to override standard shell utilities using
environment variables. The standard names are invoked unconditionally and
can be overridden using the standard approach of adding replacements to the
PATH. Additionally environment variables like PREFIX and HOST are no longer
honored as defaults for the --prefix and --host options. These features are
removed because they've never been used and cause more trouble than they
are worth.

The tix collection option now defaults to the root directory to simplify
common invocations. The tix-build prefix also now defaults to the empty
prefix.

Support installing multiple packages at once with tix-install.

Tighten file and directory creation modes while here.

Add --generation for forward compatibility.

Silence tix-collection creation.

Fix uninitialized getline invocations.

Fix porttix-create buffer overflow.
2016-01-25 17:39:57 +01:00
Jonas 'Sortie' Termansen
d7b1dce054 Dumb down echo(1).
Options and escape sequences are fatally incompatible with historic echo
that has no room for such extensions. Instead they pose risk because it is
harder to use echo on unvalidated input safely and because any further
extensions potentially break existing scripts. Use printf(1) instead.
2015-08-22 00:44:39 +02:00
Jonas 'Sortie' Termansen
e001dca46b Fix LOCALEDIR make variable. 2015-06-27 17:06:44 +02:00
Jonas 'Sortie' Termansen
e259e8ae52 Use standard compiler environment variables. 2015-05-10 16:56:22 +02:00
Jonas 'Sortie' Termansen
2874495111 Remove per-architecture exec-prefixes from filesystem hierarchy. 2015-04-23 20:02:03 +02:00
Jonas 'Sortie' Termansen
8b5960bbff Begin development of Sortix 1.0. 2015-01-01 17:20:39 +01:00
Jonas 'Sortie' Termansen
e94290ed3f Update version number to 0.9. 2014-12-30 02:53:36 +01:00
Jonas 'Sortie' Termansen
2586685061 Ongoing build system maintainance. 2014-12-02 17:09:28 +01:00