Remove kernel features (for embedded systems)
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
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,
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
Quoted 6 lines · Felix von Leitner
I propose to add the following kernel features to the removables:
*
/dev/kmemand/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? :)
Quoted 5 lines · Felix von Leitner
I propose to add the following kernel features to the removables:
*
/dev/kmemand/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