Skip to contentSkip to conversation

a newbie with the kernel--a few questions

DISCUSSION Tyler Littlefield 6 participants 7 messages Jun 15, 2006 – Jun 17, 2006 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello list,
I have a couple questions.
First, I want to get into kernel programming.
It looks kinda, imposing with the directories and everything. How do you know what is what? If you want to write something, how do you know where to put it in so that it conflict with other things? Also, how do you know what functions are where? I guess I am just looking for something on the design of the kernel, probably its structure when looking at the source code. thanks,
~~TheCreator~~
website:
http://tysplace.shaned.net
msn:
[email protected]
aim:
st8amnd2005
skype:
st8amnd127
moo coder/wizard and administrator

#1 lore raw

Hi,

I have done some kernel programming with the kernel 2.4.19 and implemented some features which are required by some of our research projects.

(1) The first thing is you have to be good in C programming.

(2) Then you should know what you would like to do. Whether it would be an addition of new feature? or an improvement?

(3)At this place kernel code is available for cross-referencing and learning etc
http://lxr.linux.no/source/

(4) You can download kernel from http://www.kernel.org/pub/linux/kernel/v2.6/

What is your objective?

Thanks
Sena Seneviratne
Computer Engineering Lab
School of Electrical and Information Engineering
Sydney University
Australia

Quoted 25 lines · you

Hello list,
I have a couple questions.
First, I want to get into kernel programming.
It looks kinda, imposing with the directories and everything. How do you know what is what? If you want to write something, how do you know where to put it in so that it conflict with other things? Also, how do you know what functions are where? I guess I am just looking for something on the design of the kernel, probably its structure when looking at the source code. thanks,
~~TheCreator~~
website:
http://tysplace.shaned.net
msn:
[email protected]
aim:
st8amnd2005
skype:
st8amnd127
moo coder/wizard and administrator

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

A message that is not in the archive (sent off-list or not yet received): 001601c690f2$b18756c0$6401a8c0@gramdmasfury

#4 lore raw

Tyler,

This is quite possible.

The ps command reads ALL or most of the info it needs from the /proc directory. The proc filesystem is a virtual filesystem implemented by the kernel.

If you change ps software then you will be able to implement these security restrictions.

(1) check the login
(2) if only root , then read and show from /proc files.

You can get the source code of ps from

http://ftp.debian.org/debian/dists/potato/main/source/admin/psmisc_19.orig.tar.gz

Thanks
Sena Seneviratne
Computer Engineering Lab
School of Electrical and Information Engineering
Sydney University
Australia

Quoted 85 lines · you

OK, I am pretty good with c. My goal here is... Well, when a user types who, I don't want it to work, unless its root. (easy to change) but I want some security like that in the kernel. Also, I want to limit it to when the user types ps, they can't get everyone's processes, but jsut there own, unless of course, they are root.
Thanks,
~~TheCreator~~
website:
http://tysplace.shaned.net
msn:
[email protected]
aim:
st8amnd2005
skype:
st8amnd127
moo coder/wizard and administrator

----- Original Message -----
From: "sena seneviratne" <[email protected]>
To: "Tyler Littlefield" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, June 15, 2006 8:01 PM
Subject: Re: a newbie with the kernel--a few questions

Quoted 7 lines

Hi,

I have done some kernel programming with the kernel 2.4.19 and implemented some features which are required by some of our research projects.

(1) The first thing is you have to be good in C programming.

Quoted 8 lines

(2) Then you should know what you would like to do. Whether it would be an addition of new feature? or an improvement?

(3)At this place kernel code is available for cross-referencing and learning etc
http://lxr.linux.no/source/

(4) You can download kernel from

http://www.kernel.org/pub/linux/kernel/v2.6/

Quoted 13 lines

What is your objective?

Thanks
Sena Seneviratne
Computer Engineering Lab
School of Electrical and Information Engineering
Sydney University
Australia

Quoted 6 lines
Quoted 5 lines · you

Hello list,
I have a couple questions.
First, I want to get into kernel programming.
It looks kinda, imposing with the directories and everything. How do you know what is what? If you want to write something, how do you know where

to

Quoted 1 line
Quoted 1 line

put it in so that it conflict with other things? Also, how do you know

what

Quoted 1 line
Quoted 1 line

functions are where? I guess I am just looking for something on the

design

Quoted 13 lines
Quoted 13 lines

of the kernel, probably its structure when looking at the source code. thanks,
~~TheCreator~~
website:
http://tysplace.shaned.net
msn:
[email protected]
aim:
st8amnd2005
skype:
st8amnd127
moo coder/wizard and administrator

Quoted 2 lines
Quoted 2 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"

in

Quoted 4 lines
Quoted 3 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#5 lore raw
Quoted 7 lines
Quoted 6 lines · you

OK, I am pretty good with c. My goal here is... Well, when a user types who, I don't want it to work, unless its root. (easy to change) but I want some security like that in the kernel. Also, I want to limit it to when the user types ps, they can't get everyone's processes, but jsut there own, unless of course, they are root.
Thanks,

Might also be worth looking at patches like GrSecurity which make general policy changes (such as these) and are well tested and robust.

Signature · 5 lines
Cheers,
Alistair.

Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.
#6 lore raw
Quoted 11 lines · Alistair John Strachan
Quoted 7 lines
Quoted 6 lines · you

OK, I am pretty good with c. My goal here is... Well, when a user types who, I don't want it to work, unless its root. (easy to change) but I want some security like that in the kernel. Also, I want to limit it to when the user types ps, they can't get everyone's processes, but jsut there own, unless of course, they are root.
Thanks,

Might also be worth looking at patches like GrSecurity which make general policy changes (such as these) and are well tested and robust.

Isn't this already doable with SELinux ?

Signature · 3 lines
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html