# tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170 architecture

> Architecture diagram of the GitHub repository tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170
- Repository: https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170

## Overview

1. **Repository purpose**
   This repository is an assignment deliverable, not a full application. It has two main outputs: a written report on installing Debian 12 in VMware Workstation, and a kernel-level exercise implementing a custom Linux system call.

2. **Top-level structure**
   The repo is very small and artifact-driven:
   - `README.md` explains the two assignment topics
   - `systemcall.c` contains the custom system call implementation
   - `*.pdf` files are final writeups/submissions
   There is no build system, package manifest, or multi-module codebase.

3. **Documentation subsystem**
   The PDFs are the primary “product” for the installation and system call writeups. They document procedure, screenshots/steps, and conclusions rather than runtime behavior. Architecturally, this is a report-centric repo with one source file used as evidence of kernel work.

4. **Virtualization / OS installation flow**
   The Debian 12 installation section is centered on a VMware Workstation virtual machine. The important boundary here is host vs guest:
   - host machine runs VMware
   - guest VM runs Debian 12
   - VM configuration covers CPU, memory, disk, and installation media
   This subsystem is about environment setup and reproducible experimentation, not application logic.

5. **Kernel development subsystem**
   The system call section shifts from user-space documentation to kernel-space code. The core technical boundary is:
   - user space programs issue a system call
   - Linux kernel receives control
   - the custom syscall executes privileged kernel logic
   The repo’s only code file is likely part of this kernel customization path.

6. **`systemcall.c` role**
   `systemcall.c` is the only source artifact and represents the implementation side of the system-call exercise. Based on the README, its purpose is to define a custom syscall function that writes a message to the kernel log. That makes it a kernel-space component, not a user-space program.

7. **Data/control flow**
   The system-call workflow described by the README is:
   user-space test program or invocation mechanism → syscall entry in the kernel → custom syscall implementation in `systemcall.c` → kernel log output
   The output is observability-oriented, using kernel logs as the feedback channel rather than returning complex data to an application.

8. **Build and runtime environment**
   The repository implies a Linux kernel development toolchain rather than a normal application runtime. Relevant technologies are:
   - Debian 12
   - VMware Workstation
   - Linux kernel source/build process
   - kernel logging facilities
   The execution environment matters because the syscall must be compiled into or linked with a kernel build, then tested inside the Debian VM.

9. **Isolation boundary**
   The repo emphasizes isolated experimentation through virtualization. That separation is important architecturally because kernel changes are risky and should not affect the host OS. Snapshots and rollback are part of the workflow boundary, not the code boundary.

10. **Project boundaries**
    There is no indication of external services, databases, networking, or persistent application state. The scope is limited to:
    - environment setup
    - kernel modification
    - testing/log verification
    This keeps the architecture simple and strongly centered on OS internals.

11. **How to diagram it**
    A clear diagram would show two parallel tracks:
    - a documentation/report track with README and PDFs
    - a kernel-development track with Debian VM, kernel source/build, `systemcall.c`, and a test path from user space into the kernel
    The main structural distinction is not between microservices or modules, but between artifact types and privilege boundaries.

12. **Overall architectural summary**
    This repository is best understood as an educational OS lab: a VMware-hosted Debian environment for installation practice, plus a minimal Linux kernel customization exercise demonstrating syscall mechanics and kernel logging.

Main entry points: [`systemcall.c`](https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/systemcall.c) (syscall.c), [`README.md`](https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/README.md) (README), [`ossp_individual_tnsaie-hunegnaw-merid_bdu1203170_A.pdf`](https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/ossp_individual_tnsaie-hunegnaw-merid_bdu1203170_A.pdf) (Debian report), [`system call implementation.pdf`](https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/HEAD/system%20call%20implementation.pdf) (Syscall report)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_docs["Report artifacts"]
  node_readme["README<br/>overview doc<br/>[README.md]"]
  node_install_pdf["Debian report<br/>final writeup"]
  node_syscall_pdf["Syscall report<br/>final writeup"]
end

subgraph group_lab["Kernel lab"]
  node_host["Host machine<br/>workstation"]
  node_vmware["VMware<br/>virtualization layer"]
  node_debian_vm["Debian 12 VM<br/>guest OS"]
  node_kernel_build["Kernel build<br/>kernel toolchain"]
  node_systemcall_src["syscall.c<br/>kernel code<br/>[systemcall.c]"]
  node_user_test(("User test<br/>invocation"))
  node_kernel_log["Kernel log<br/>observability"]
end

node_readme -->|"describes"| node_install_pdf
node_readme -->|"describes"| node_syscall_pdf
node_host -->|"runs"| node_vmware
node_vmware -->|"hosts"| node_debian_vm
node_debian_vm -->|"provides"| node_kernel_build
node_kernel_build -->|"includes"| node_systemcall_src
node_user_test -->|"triggers"| node_systemcall_src
node_systemcall_src -->|"writes"| node_kernel_log
node_user_test -->|"verifies"| node_kernel_log
node_debian_vm -->|"contains"| node_kernel_log

click node_readme "https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/README.md"
click node_install_pdf "https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/ossp_individual_tnsaie-hunegnaw-merid_bdu1203170_A.pdf"
click node_syscall_pdf "https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/system call implementation.pdf"
click node_systemcall_src "https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/systemcall.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_readme,node_install_pdf,node_syscall_pdf toneBlue
class node_host,node_vmware,node_debian_vm,node_kernel_build,node_systemcall_src,node_user_test,node_kernel_log toneAmber
```

## Components

### Report artifacts

Written submission materials for the Debian install and syscall exercises.

- [README](https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/README.md): overview doc · Explains the assignment scope and the two main deliverables. · `README.md`
- [Debian report](https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/ossp_individual_tnsaie-hunegnaw-merid_bdu1203170_A.pdf): final writeup · PDF submission covering Debian 12 installation in VMware Workstation. · `ossp_individual_tnsaie-hunegnaw-merid_bdu1203170_A.pdf`
- [Syscall report](https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/HEAD/system%20call%20implementation.pdf): final writeup · PDF submission documenting the custom Linux system call exercise. · `system call implementation.pdf`

### Kernel lab

Virtualized Debian and kernel-call path used for the system call exercise.

- **Host machine**: workstation · Physical host running VMware Workstation.
- **VMware**: virtualization layer · Creates and manages the Debian 12 guest environment.
- **Debian 12 VM**: guest OS · Isolated Linux guest used for installation practice and syscall testing.
- **Kernel build**: kernel toolchain · Linux kernel source and build process used to integrate the syscall.
- [syscall.c](https://github.com/tnsu21/debian_12_server_os_tnsaie_hunegnaw_sec_a_1203170/blob/main/systemcall.c): kernel code · Custom system call implementation that emits a message to the kernel log. · `systemcall.c`
- **User test**: invocation · User-space trigger or test program that enters the system call.
- **Kernel log**: observability · Feedback channel for verifying syscall execution.

## Connections

- README → Debian report: describes · The README summarizes the Debian installation deliverable.
- README → Syscall report: describes · The README summarizes the system call deliverable.
- Host machine → VMware: runs · The host machine provides the virtualization platform.
- VMware → Debian 12 VM: hosts · VMware contains the Debian 12 guest.
- Debian 12 VM → Kernel build: provides · The guest environment is used for kernel development and testing.
- Kernel build → syscall.c: includes · The syscall source is part of the kernel customization path.
- User test → syscall.c: triggers · A user-space invocation enters the custom syscall path.
- syscall.c → Kernel log: writes · The syscall reports execution through kernel logging.
- User test → Kernel log: verifies · Kernel log output is used to confirm behavior.
- Debian 12 VM → Kernel log: contains · The guest system is where the log is observed during testing.
