Files to change in CentOS Linux

Slides:



Advertisements
Similar presentations
CSCC69: Operating Systems
Advertisements

Slide 1Fig. 22.1, p.669. Slide 2Fig. 22.3, p.670.
Slide 1Fig. 17.1, p.513. Slide 2Table 17.1, p.514.
The Newest Prime Number An Investigation The Newest Prime Number The newest prime number is If this number was to be written out in full.
Slide 1Fig. 10.1, p.293. Slide 2Fig. 10.1a, p.293.
Slide 1Fig. 5.1, p.113. Slide 2Fig. 5.1a, p.113 Slide 3Fig. 5.1b, p.113.
The Boot process. Booting on a PC POST –Hardware test – may not run CPU ie fan not working CPU start-up –Jumps to fixed location to execute BIOS code.
Course Orientation Modules Tool. If the Modules tool has been added to the course, use the Modules link in the Course Menu to access course modules.
CS533 - Concepts of Operating Systems 1 CS533 Concepts of Operating Systems Class 8 Synchronization on Multiprocessors.
Adding a Syllabus Link. Let’s add the syllabus to the homepage. Return to the homepage Click “Add File” To get to the homepage, click the Course Content.
Operating System Support for Virtual Machines Sam King George Dunlap Peter Chen CoVirt Project, University of Michigan.
Compiling and Linking. Compiling is quite the same as creating an executable file! Instead, creating an executable is a multistage process divided into.
Table of Contents First, isolate the term containing the radical. Equation Containing Radicals: Solving Algebraically Example 1 (one radical): Solve Next,
Table of Contents Compound Linear Inequalities: Solving Algebraically Example: Algebraically solve, - 5 < 2x + 3  8. First break the compound inequality.
Carnegie Mellon 1 Debugging and Version control / : Introduction to Computer Systems 12 th Recitation, Nov. 14, 2011 Slides by: Lin Xiao(lxiao)
Files to change in Redhat Linux The following list is a starting point for adding a simple kernel service.
1 Introduction to Tool chains. 2 Tool chain for the Sitara Family (but it is true for other ARM based devices as well) A tool chain is a collection of.
NCHU System & Network Lab Lab 3 System Call Operating System Lab.
File Organization and Processing CS nd Term Basic file operations Cairo University Faculty of Computers and Information.
Business Unit or Product Name © 2007 IBM Corporation Introduction of Autotest Qing Lin.
Operating System Support for Virtual Machines Sam King George Dunlap Peter Chen CoVirt Project, University of Michigan.
Nachos Assignment#1 System calls implementation. What are system calls? Enable you to interact with OS kernel. A switch from User Mode to Kernel Mode.
Planning your site/organization on the Web Please use speaker notes for additional information!
Syllabus Management System. The Problem There is need for a management system for syllabi that: Provides a simple and effective user interface Allows.
Variables and Functions. Open your Encoder program Let’s begin by opening the “Labyrinth Auto Straight” code. Save this file as Labyrinth with variables.
VMM Based Rootkit Detection on Android Class Presentation Pete Bohman, Adam Kunk, Erik Shaw.
CNIT 127: Exploit Development Ch 3: Shellcode. Topics Protection rings Syscalls Shellcode nasm Assembler ld GNU Linker objdump to see contents of object.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
System Calls. The Linux we use is: Linux-Mandrake 7.0. In this project, you are going to change some kernel files and recompile the kernel. After you.
UQI135HM Dynamic HTML and Java. Dynamic HTML – 2 aspects Interaction with user (could be forms or Javascript) Setting object properties dynamically (eg.
Advanced Web 2012 Lecture 6 Sean Costain Files Sean Costain 2012 Php allows for the : Creation Reading Appending Deleting Uploading And Closing.
LOGO System Call. Introduction System call is the mechanism used by an application program to request service from the OS. Users use it to communicate.
Project 4. “File System Implementation”
NETWORK VISUALIZATION ABHISHEK KUMAR (2011CS50272)
Class Presentation Pete Bohman, Adam Kunk, Erik Shaw (ONL)
The Controller Carol Wolf Computer Science. Rails generate commands  Using the generate command, you can create a number of useful objects.  Rails:
Function PrototypetMyn1 Function Prototype We can declare a function before we use or define it by means of a function prototype. A function prototype.
Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.
Slide 1 Insert your own content.. Slide 2 Insert your own content.
Lecture 5 Page 1 CS 111 Online Process Creation Processes get created (and destroyed) all the time in a typical computer Some by explicit user command.
Foundations of Programming: Java
Command Line Basics.
Operating Systems Processes ENCE 360.
Kernel module & Syscall Hijacking
the Operating System (OS)
Process Creation Processes get created (and destroyed) all the time in a typical computer Some by explicit user command Some by invocation from other running.
Week 14 - Wednesday CS 121.
The Linux Command Line Chapter 2
Simple Socket Client Project 1.
Operating System Support for Virtual Machines
Data fitting programming Math 570
How to Embed Videos into Powerpoint
1. Open Visual Studio 2008.
Escape sequences: Practice using the escape sequences on the code below to see what happens. Try this next code to help you understand the last two sequences.
Slide 1 Insert your own content.. Slide 1 Insert your own content.
Computer Architecture and the Fetch-Execute Cycle
Coding Concepts (Basics)
Slide 1 Insert your own content.. Slide 1 Insert your own content.
Slide 1 Insert your own content.. Slide 1 Insert your own content.
The Variance How to calculate it.
Files to change in CentOS Linux
Lecture 17: Web Service and post
CSc 337 Lecture 1: post.
February 2 - 6, 2009 CSE 113 B.
Files to change in CentOS Linux
What I've done in past 6 months
Lecture 13 Harvard architecture Coccone OS demonstrator
CSc 337 Lecture 18: post.
Types of Errors And Error Analysis.
Agenda Warmup Lesson 2.4 (String concatenation, primitive types, etc)
Presentation transcript:

Files to change in CentOS Linux The following list is a starting point for adding a simple kernel service.

Possible files to change in CentOS /usr/src/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.s390x/arch/s390/mm/fault.c /usr/src/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.s390x/arch/s390/kernel/syscalls.S /usr/src/kernels/2.6.18-92.el5-s390x/include/asm-s390/unistd.h /usr/src/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.s390x/include/asm-s390/unistd.h /usr/include/asm/unistd.h --------- The following file is for PCs only ---------- /usr/src/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.s390x/arch/i386/kernel/syscall_table.S

Contents, by number on previous slide “mm/fault.c”: Your code for the service call “syscalls.S”: Builds the syscall table “../kernels../unistd.h”: Defines the name & number of the call “../redhat/BUILD/../unistd.h”: Same as above “/usr/include/asm/unistd.h”: Contains the include values for the kernel itself to determine what facilities are available at compile time ---------------------------------------------- “syscall_table.S”: Defines the name as a “long”

Names I used (for my own solution)   …/fault.c: sys_DJ_fault_tracker 311 …/BUILD…/unistd.h “ /usr/include/asm/unistd.h “ (allows TESTING pgm to use a name instead of 311) …/kernels…/asm-s390/unistd.h __NR_DJ_fault_tracker 311 (note that this one is different, but it doesn’t hurt because it isn’t referenced by fault.c) …/syscalls.S (sys_DJ_fault_tracker, sys_DJ_fault_tracker, sys_DJ_fault_tracker) yes, all 3 parameters are the same!!! The whole point of using a NAME like __NR_DJ_fault_tracker, instead of the number is that, users do not have to use raw numbers. Raw numbers lead to errors. Names are better (for humans anyway). Of course, you should use your own names for the files!!!!