Selinux: changing root mapping
I want to control some accesses of root in Linux- fedora, for example, I want to run a process and I want root not to be able to kill it. I use SELinux and I changed root mapping from unconfined to …
Start Learning to Code
I want to control some accesses of root in Linux- fedora, for example, I want to run a process and I want root not to be able to kill it. I use SELinux and I changed root mapping from unconfined to …
I wrote a program in linux kernel, which should allocate memory for 5 simple structures each of with unique id, so i used static int in a constructor and increment it and in the end i just print …
As far as I know, OS kernel maintains the translation from virtual address to physical address, and the userspace program uses virtual address, the CPU uses physical address. Since all machine codes …
From linux’s proc.txt: MemTotal: Total usable ram (i.e. physical ram minus a few reserved But how to get the whole physical ram including reserved memory from linux kernel?
when we are using the kdump tool, we need to install the according kernel-debug*.rpm at first. My questions is , the linux I am using is compiled by myself with lots of modifications. When could I …
I am writing a kernel module to read and write to SPI device (CC1200). My linux device does not have native SPI, so I am trying to bit-bang the bus. I found that linux has built-in bitbang code (…
In this system, it blocks(hang) in the following cases: echo “test” > /dev/ttyS0 cat /dev/ttyS0 #read nothing even scope show the UART data there stty -F /dev/ttyS0 115200 If I set serial …
I wrote a kernel module to monitor cpu and memory time series. Additionally to that, I would like to log all process creations (and their meta date like pid, cmdline, …) and also exists with their …
I am currently reading LDD3, and have some question about how Linux actually proesses input from a device in /dev/input/mouse*? When I cat /dev/input/mouse2 (for my logitech mouse) I see input when I …
I’m new in working with kernel. I want to add a linked list to my kernel, and I try to fix it like this link : Linux Kernel Programming–Linked List here is code’s that I added to sys.c : syscall …