https://github.com/mnogu/omikuji_kernel_module
An Omikuji (fortune-telling lot) Linux kernel module in Rust
https://github.com/mnogu/omikuji_kernel_module
kernel-module linux linux-kernel-module omikuji rust
Last synced: 4 months ago
JSON representation
An Omikuji (fortune-telling lot) Linux kernel module in Rust
- Host: GitHub
- URL: https://github.com/mnogu/omikuji_kernel_module
- Owner: mnogu
- License: gpl-2.0
- Created: 2024-03-06T22:35:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T23:28:49.000Z (about 2 years ago)
- Last Synced: 2025-04-09T09:44:56.056Z (12 months ago)
- Topics: kernel-module, linux, linux-kernel-module, omikuji, rust
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# omikuji_kernel_module
An Omikuji (fortune-telling lot) Linux kernel module in Rust
Ubuntu 23.10
```
$ sudo apt install rustc-1.68 rust-1.68-src rustfmt-1.68 bindgen-0.56 \
llvm clang build-essential linux-lib-rust-$(uname -r)
```
```
$ git clone https://github.com/mnogu/omikuji_kernel_module.git
$ cd omikuji_kernel_module
$ make
```
```
$ sudo update-secureboot-policy --new-key
$ sudo make install
```
```
$ sudo modprobe fortune
$ journalctl -k -n 1
Mar 07 12:34:56 foo-server kernel: fortune: 大吉 (Great blessing)
```
```
$ sudo modprobe -r fortune
$ sudo modprobe fortune
$ journalctl -k -n 1
```
## Reference
* https://gihyo.jp/admin/serial/01/ubuntu-recipe/0793 (Japanese)
* https://en.wikipedia.org/wiki/O-mikuji