Patchwork shadow-securetty: allow root logins on usb serial gadget device

login
register
mail settings
Submitter Steve Sakoman
Date Feb. 1, 2012, 5:09 p.m.
Message ID <1328116152-4451-1-git-send-email-steve@sakoman.com>
Download mbox | patch
Permalink /patch/20501/
State New
Headers show

Comments

Steve Sakoman - Feb. 1, 2012, 5:09 p.m.
Existing tty list does not include ttyGS0, add it

Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 meta/recipes-extended/shadow/files/securetty       |    3 +++
 .../shadow/shadow-securetty_4.1.4.3.bb             |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
Paul Eggleton - Feb. 1, 2012, 5:11 p.m.
On Wednesday 01 February 2012 09:09:12 Steve Sakoman wrote:
>...
> --- a/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb
> +++ b/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb
> @@ -6,6 +6,8 @@ LIC_FILES_CHKSUM =
> "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
> 
>  INHIBIT_DEFAULT_DEPS = "1"
> 
> +PR = "1"
> +

I think this needs to be PR = "r1"

Cheers,
Paul

Patch

diff --git a/meta/recipes-extended/shadow/files/securetty b/meta/recipes-extended/shadow/files/securetty
index 28fa0af..a06dc44 100644
--- a/meta/recipes-extended/shadow/files/securetty
+++ b/meta/recipes-extended/shadow/files/securetty
@@ -25,6 +25,9 @@  ttyUSB0
 ttyUSB1
 ttyUSB2
 
+# USB serial gadget
+ttyGS0
+
 # PowerMac
 ttyPZ0
 ttyPZ1
diff --git a/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb
index e391d24..c7a206e 100644
--- a/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb
+++ b/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb
@@ -6,6 +6,8 @@  LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
 
 INHIBIT_DEFAULT_DEPS = "1"
 
+PR = "1"
+
 SRC_URI = "file://securetty"
 
 # Since we deduce our arch from ${SERIAL_CONSOLE}