Posts

Showing posts from 2016

Linux Directory Structure

Image
Basics of Linux Directory Structure In Linux OS, each file has its own importance. It means, every file is a part of a specific concern a user can set. This nature of Linux provides the higher flexibility for users like beginners, as well as provides more configurable options for advanced system administration users. In this paper, we are going to discuss shortly the directory structure of Linux. We will try to describe what a directory is used for, by reading this article, we can decide and assess the security fit falls according to different  directories.   The Root Directory Every other directory resides under the Root directory. You can call it the starting point of Linux directory structure. Please note that there is a difference between the System Root Directory and User Root Directory . The System Root Directory is one, under which you see all the other essential directory structure (simply speaking), and the User Root Directory is the one, which may exist unde

Add system calls to linux kernel ( not finished yet )

Image
System call is the services provided by Linux kernel. In C programming, it often uses functions defined in libc which provides a wrapper for many system calls. Manual page section 2 provides more information about system calls. To get an overview, use “man 2 intro” in a command shell. It is also possible to invoke syscall() function directly. Each system call has a function number defined in <syscall.h> or <unistd.h>. Internally, system call is invokded by software interrupt 0x80 to transfer control to the kernel. System call table is defined in Linux kernel source file arch/i386/kernel/entry.S