shadow.inc: Append serial devices mentioned in SERIAL_CONSOLE into /etc/securetty
authorKhem Raj <raj.khem@gmail.com>
Wed, 26 May 2010 11:00:49 +0000 (04:00 -0700)
committerKhem Raj <raj.khem@gmail.com>
Wed, 26 May 2010 16:55:38 +0000 (09:55 -0700)
commita60230a9279610fabf213c9f4946b19c703c6fcd
treea755422bdc10750f7f19ce16844f22ed88aef21a
parent6f56f5d29b10bf68e0721a4dc02f4fdd08457a79
shadow.inc: Append serial devices mentioned in SERIAL_CONSOLE into /etc/securetty

* Some serial dev nodes are not part of /etc/securetty. So either
  we can add them manually or deduce from SERIAL_CONSOLE. this does
  the later. Tested on qemuarm which used ttyAMA0 for console and it
  not listed in the securetty list. This authorizes root login on
  the give named console.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Chris Larson <clarson@kergoth.com>
recipes/shadow/shadow.inc