Skip to contentSkip to conversation

Remove kernel features (for embedded systems)

DISCUSSION Felix von Leitner 4 participants 5 messages Mar 18, 2004 – Mar 19, 2004

lore
Share & tools
lore
#0 lore raw

I propose to add the following kernel features to the removables:

* /dev/kmem and /proc/kcore
* core dumping
* ptrace

And if it is at all possible, I would like to be able to remove parts of the IP stack, e.g. routing. In particular, I would like to be able to remove policy routing, if it is at all worth it from the code size point of view.

Removing ptrace and kmem is mostly for security reasons, but being able to remove them makes sense in embedded environments as well.

Felix

#1 lore raw
Quoted 4 lines

And if it is at all possible, I would like to be able to remove parts of the IP stack, e.g. routing. In particular, I would like to be able to remove policy routing, if it is at all worth it from the code size point of view.

Why not just write your own IP stack in userspace, if you're doing a heavily embedded system?

John,

#2 lore raw

Thus spake John Bradford ([email protected]):

Quoted 6 lines
Quoted 4 lines

And if it is at all possible, I would like to be able to remove parts of the IP stack, e.g. routing. In particular, I would like to be able to remove policy routing, if it is at all worth it from the code size point of view.

Why not just write your own IP stack in userspace, if you're doing a heavily embedded system?

People use Linux _because_ of the IP stack.
They just normally don't need all of it.
And I propose to let them remove the parts they don't need.

Felix

#3 lore raw
In reply to Felix von Leitner
Quoted 6 lines · Felix von Leitner

I propose to add the following kernel features to the removables:

* /dev/kmem and /proc/kcore
* core dumping
* ptrace

Quoted 7 lines

And if it is at all possible, I would like to be able to remove parts of the IP stack, e.g. routing. In particular, I would like to be able to remove policy routing, if it is at all worth it from the code size point of view.

Removing ptrace and kmem is mostly for security reasons, but being able to remove them makes sense in embedded environments as well.

Fien with me. Where are the patches? :)

#4 lore raw
In reply to Felix von Leitner
Quoted 5 lines · Felix von Leitner

I propose to add the following kernel features to the removables:

* /dev/kmem and /proc/kcore
* core dumping
* ptrace

These are all in 2.6-tiny already: http://selenic.com/tiny-about/

It's on my list of things to push to mainline.

Quoted 4 lines

And if it is at all possible, I would like to be able to remove parts of the IP stack, e.g. routing. In particular, I would like to be able to remove policy routing, if it is at all worth it from the code size point of view.

I've done small parts of this too.

Signature · 1 line
Matt Mackall : http://www.selenic.com : Linux development and consulting