View Code? Open in Web Editor
NEW
This project forked from ftp24/char-driver
A simple character driver for linux kernel 5.11.0 which implements the Caesar Cipher
Python 2.40%
C 93.38%
Makefile 4.22%
char-driver's Introduction
Simple Caesar Cipher Driver
To run our Driver use the following commands
make
- To compile the driver code
![make](img/make.png)
insmod charenc.ko
- To load the driver to the kernel
![insmod](img/insmod.png)
dmesg
- print or control the kernel message buffer
![dmesgpt1](img/dmesgpt1.png)
mknod -m 777 /dev/charenc c <major-number> <minor-number>
- This creates a device file with read write and execute permission
![mkdnod](img/mknod.png)
Existency check for driver and device
lsmod
- Displays all the drivers loaded to the kernel
![lsmod](img/lsmod.png)
cat /proc/devices
- Displays all the connected devices
![devices](img/devices.png)
python userProg.py
- Opens the device file and writes "abczf" into the device file
- Prints the encrypted text
- Closes the file
cat userProg.py
cat /dev/charenc
- Shows decrypted text (ie. after closing the file)
![userProg](img/userProg.png)
rmmod charenc
rm /dev/charenc
![cleanup](img/cleanup.png)
char-driver's People
Contributors