mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* a newbie with the kernel--a few questions
@ 2006-06-15 23:03 Tyler Littlefield
  2006-06-16  2:01 ` sena seneviratne
  2006-06-16  2:29 ` Rik van Riel
  0 siblings, 2 replies; 7+ messages in thread
From: Tyler Littlefield @ 2006-06-15 23:03 UTC (permalink / raw)
  To: linux-kernel

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:
compgeek134@hotmail.com
aim:
st8amnd2005
skype:
st8amnd127
moo coder/wizard and administrator


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: a newbie with the kernel--a few questions
  2006-06-15 23:03 a newbie with the kernel--a few questions Tyler Littlefield
@ 2006-06-16  2:01 ` sena seneviratne
  2006-06-16  2:26   ` Vadim Lobanov
       [not found]   ` <001601c690f2$b18756c0$6401a8c0@gramdmasfury>
  2006-06-16  2:29 ` Rik van Riel
  1 sibling, 2 replies; 7+ messages in thread
From: sena seneviratne @ 2006-06-16  2:01 UTC (permalink / raw)
  To: Tyler Littlefield; +Cc: linux-Kernel

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




At 05:03 PM 6/15/2006 -0600, you wrote:
>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:
>compgeek134@hotmail.com
>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 majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: a newbie with the kernel--a few questions
  2006-06-16  2:01 ` sena seneviratne
@ 2006-06-16  2:26   ` Vadim Lobanov
       [not found]   ` <001601c690f2$b18756c0$6401a8c0@gramdmasfury>
  1 sibling, 0 replies; 7+ messages in thread
From: Vadim Lobanov @ 2006-06-16  2:26 UTC (permalink / raw)
  To: sena seneviratne; +Cc: Tyler Littlefield, linux-Kernel

On Fri, 16 Jun 2006, sena seneviratne wrote:

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

The above link has an out-of-date cross-reference; see here for an LXR
page that is actually kept up-to-date:

http://lxr.free-electrons.com/

- Vadim Lobanov

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: a newbie with the kernel--a few questions
  2006-06-15 23:03 a newbie with the kernel--a few questions Tyler Littlefield
  2006-06-16  2:01 ` sena seneviratne
@ 2006-06-16  2:29 ` Rik van Riel
  1 sibling, 0 replies; 7+ messages in thread
From: Rik van Riel @ 2006-06-16  2:29 UTC (permalink / raw)
  To: Tyler Littlefield; +Cc: linux-kernel

On Thu, 15 Jun 2006, Tyler Littlefield wrote:

> First, I want to get into kernel programming.

http://kernelnewbies.org/

-- 
All Rights Reversed

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: a newbie with the kernel--a few questions
       [not found]   ` <001601c690f2$b18756c0$6401a8c0@gramdmasfury>
@ 2006-06-16  3:36     ` sena seneviratne
  2006-06-16 14:41       ` Alistair John Strachan
  0 siblings, 1 reply; 7+ messages in thread
From: sena seneviratne @ 2006-06-16  3:36 UTC (permalink / raw)
  To: Tyler Littlefield; +Cc: linux-Kernel

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





At 09:12 PM 6/15/2006 -0600, you wrote:
>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:
>compgeek134@hotmail.com
>aim:
>st8amnd2005
>skype:
>st8amnd127
>moo coder/wizard and administrator
>
>----- Original Message -----
>From: "sena seneviratne" <auntvini@cel.usyd.edu.au>
>To: "Tyler Littlefield" <compgeek13@gmail.com>
>Cc: <linux-Kernel@vger.kernel.org>
>Sent: Thursday, June 15, 2006 8:01 PM
>Subject: Re: a newbie with the kernel--a few questions
>
>
> > 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
> >
> >
> >
> >
> > At 05:03 PM 6/15/2006 -0600, you wrote:
> > >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:
> > >compgeek134@hotmail.com
> > >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 majordomo@vger.kernel.org
> > >More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > >Please read the FAQ at  http://www.tux.org/lkml/
> >


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: a newbie with the kernel--a few questions
  2006-06-16  3:36     ` sena seneviratne
@ 2006-06-16 14:41       ` Alistair John Strachan
  2006-06-17 10:58         ` Jesper Juhl
  0 siblings, 1 reply; 7+ messages in thread
From: Alistair John Strachan @ 2006-06-16 14:41 UTC (permalink / raw)
  To: sena seneviratne; +Cc: Tyler Littlefield, linux-Kernel

> At 09:12 PM 6/15/2006 -0600, you wrote:
> >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.

-- 
Cheers,
Alistair.

Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: a newbie with the kernel--a few questions
  2006-06-16 14:41       ` Alistair John Strachan
@ 2006-06-17 10:58         ` Jesper Juhl
  0 siblings, 0 replies; 7+ messages in thread
From: Jesper Juhl @ 2006-06-17 10:58 UTC (permalink / raw)
  To: Alistair John Strachan; +Cc: sena seneviratne, Tyler Littlefield, linux-Kernel

On 16/06/06, Alistair John Strachan <s0348365@sms.ed.ac.uk> wrote:
> > At 09:12 PM 6/15/2006 -0600, you wrote:
> > >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 ?

-- 
Jesper Juhl <jesper.juhl@gmail.com>
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-06-17 10:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-15 23:03 a newbie with the kernel--a few questions Tyler Littlefield
2006-06-16  2:01 ` sena seneviratne
2006-06-16  2:26   ` Vadim Lobanov
     [not found]   ` <001601c690f2$b18756c0$6401a8c0@gramdmasfury>
2006-06-16  3:36     ` sena seneviratne
2006-06-16 14:41       ` Alistair John Strachan
2006-06-17 10:58         ` Jesper Juhl
2006-06-16  2:29 ` Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®