mirror of
https://github.com/Plexi09/Nadir-Kernel.git
synced 2026-10-20 15:07:27 +02:00
Updated documentation
This commit is contained in:
parent
b010c43dab
commit
591c57c8f8
5 changed files with 68 additions and 49 deletions
38
docs/CONTRIBUTING.md
Normal file
38
docs/CONTRIBUTING.md
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# Contributing to Nadir
|
||||
|
||||
Thanks for considering contributing to Nadir. This project is deliberately small and human-driven. Every line of code must be understood by its author. Please read this guide and the [README](../README.md) before opening a pull request.
|
||||
|
||||
## AI use policy
|
||||
|
||||
AI assistance is allowed, but it must stay **minimal**
|
||||
|
||||
Please stick to the following rules if you plan to use AI in your contributions:
|
||||
- The majority of the code must be authored by a human. Use AI as a tutor or reviewer if you need help.
|
||||
- Never paste large AI-generated chunks into the tree.
|
||||
- You are responsible for every committed line.
|
||||
- Everything must be documented. Committed code, human or AI-authored, must be well documented. Undocumented code WILL be regected.
|
||||
- Attribution is not welcome, it's required. If a commit contains meaningful AI-assisted work, add a `Co-Authored-By:` trailer in the PR description.
|
||||
|
||||
## Ground rules
|
||||
|
||||
- Never commit generated artifacts: `*.o`, `*.a`, `*.elf`, `*.bin`, `*.iso`, `*.img`, `build/` (see `.gitignore`).
|
||||
- Every change must still build and boot in QEMU.
|
||||
|
||||
## Code style
|
||||
|
||||
- C11 or C17, plus NASM/GAS assembly.
|
||||
- Compile-clean discipline: `-Wall -Wextra -Werror`.
|
||||
- Match the surrounding style.
|
||||
|
||||
## Documentation
|
||||
|
||||
- Every function, type, and file gets a doc comment explaining its purpose and, when relevant, the *why*.
|
||||
- Every privileged primitive (GDT, IDT, paging, context switch) must document the Ring / CPL it operates in and its fault behavior.
|
||||
|
||||
## Building and running
|
||||
|
||||
Build from the repository root. See the [README](../README.md).
|
||||
|
||||
## License
|
||||
|
||||
By contributing, you agree that your contributions are licensed under the project's license. See [LICENSE](../LICENSE).
|
||||
28
docs/SECURITY.md
Normal file
28
docs/SECURITY.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Security Policy
|
||||
|
||||
## Supported versions
|
||||
|
||||
Nadir is a hobby x86-64 kernel. Only the tip of `main` is supported.
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| `main` | :white_check_mark: |
|
||||
| Anything else | :x: |
|
||||
|
||||
If you report an issue against an old commit, please verify it still reproduces on current `main` first (`make` then `make run` in QEMU).
|
||||
|
||||
## Reporting a vulnerability
|
||||
|
||||
Use a [private security advisory](https://github.com/Plexi09/Nadir-Kernel/security/advisories/new)
|
||||
This keeps the details private until a fix is ready.
|
||||
|
||||
Please include:
|
||||
|
||||
1. What you think is wrong and why it matters
|
||||
2. Steps to reproduce and serial/VGA output or a `-d int -no-reboot` log.
|
||||
|
||||
## Out of scope
|
||||
|
||||
- QEMU, SeaBIOS, firmware, host toolchain and host OS
|
||||
- Denial of service by crashing
|
||||
- Missing hardening as such
|
||||
Loading…
Add table
Add a link
Reference in a new issue