Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301626

Re: [PATCH] Add possibility to set /dev/tty number

From "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Add possibility to set /dev/tty number
Date 2016-01-05 16:50 +0100
Message-ID <qNC1X-4OF-13@gated-at.bofh.it> (permalink)
References (2 earlier) <qNgEb-609-23@gated-at.bofh.it> <qNgXx-6p8-33@gated-at.bofh.it> <qNimD-7d3-29@gated-at.bofh.it> <qNvDc-84L-15@gated-at.bofh.it> <qNBIC-4FF-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2016-01-05 10:25, Greg KH wrote:
> On Tue, Jan 05, 2016 at 09:51:14AM +0100, Pierre Paul MINGOT wrote:
>> 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.
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.

As far as the argument about hot-plug overhead, that is an issue (albeit 
a very small one) because that's at least 30+ extra uevents for devices 
that will likely never be used, but it's only an issue during boot 
unless you're doing crazy stuff with allocating and freeing VT's all the 
time.  My statement in my reply to this particular message still applies 
though, if you're _that_ timing constrained, you should be using a real 
RTOS (Linux can do RT, but it's not optimal for it, especially with any 
of the regularly used userspace implementations).
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Add possibility to set /dev/tty number Pierre Paul MINGOT <mingot.pierre@gmail.com> - 2016-01-04 16:40 +0100
  Re: [PATCH] Add possibility to set /dev/tty number Greg KH <gregkh@linuxfoundation.org> - 2016-01-04 16:50 +0100
    Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-04 18:00 +0100
      Re: [PATCH] Add possibility to set /dev/tty number Greg KH <gregkh@linuxfoundation.org> - 2016-01-04 18:20 +0100
        Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-04 19:50 +0100
          Re: [PATCH] Add possibility to set /dev/tty number One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-01-05 00:00 +0100
            Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-05 14:20 +0100
              Re: [PATCH] Add possibility to set /dev/tty number Greg KH <gregkh@linuxfoundation.org> - 2016-01-05 16:30 +0100
                Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-05 16:40 +0100
              Re: [PATCH] Add possibility to set /dev/tty number Theodore Ts'o <tytso@mit.edu> - 2016-01-05 17:20 +0100
                Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-05 17:30 +0100
          Re: [PATCH] Add possibility to set /dev/tty number Pierre Paul MINGOT <mingot.pierre@gmail.com> - 2016-01-05 10:00 +0100
            Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-05 14:10 +0100
            Re: [PATCH] Add possibility to set /dev/tty number Greg KH <gregkh@linuxfoundation.org> - 2016-01-05 16:30 +0100
              Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-05 16:50 +0100
                Re: [PATCH] Add possibility to set /dev/tty number Greg KH <gregkh@linuxfoundation.org> - 2016-01-05 17:10 +0100
          Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-05 19:40 +0100
            Re: [PATCH] Add possibility to set /dev/tty number One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-01-05 21:50 +0100
              Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-06 13:50 +0100
                Re: [PATCH] Add possibility to set /dev/tty number One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-01-06 15:00 +0100
                Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-06 15:10 +0100
  Re: [PATCH] Add possibility to set /dev/tty number "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-01-06 14:50 +0100

csiph-web