On Tue, Jan 05, 2016 at 09:51:14AM +0100, Pierre Paul MINGOT wrote:WRT security, the argument isn't that it makes the system inherently more secure, but that it makes it easier to prove the system is secure because there are fewer unused device nodes in /dev that you need to explain. In a way, it's a different aspect of the argument that reducing the number of VT's makes /dev less cluttered. I don't personally agree with doing hardware auditing via /dev, but that's a separate discussion.
In industrial sector, for obvious security and safety reasons we want
configure our system and have a full control of the devices within it.
So unused or dummy devices are not wanted , not nice to have.
One way to achieve this goal is to have a full picture of the devices
in our system and then identified which type of applications can run
and then safety or security potential risks. Base on this analysis we
can put in place mandatory actions to fix the risks.
An other interest for reduce dummy /dev devices is hot-plug device
creation detection through inotify or udev. Indeed, we can configure
udev or inotify for monitoring the /dev directory and notify watched
dedicated events. lesser the devices in /dev is better the response
is. This aspect is crucial for RTOS with very high time constraint
near of microseconds. It's the case for example for a system with
Linux RT Patch or Xenomai.
I don't understand how reducing the number of vt devices makes anything
more or less secure, or better yet, more responsive. Please provide
specific details showing how this happens.