Skip to contentSkip to conversation

inetutils: fix tcpd path of rlogin rsh and rexec

PATCH In review [email protected] 2 participants 3 messages Jul 6, 2015 – Jul 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 inetutils: fix tcpd path of rlogin rsh and rexec

From: Jian Liu <[email protected]>

rlogin, rsh and rexec xinet.d script, a wrong path is being referenced under the server section.

server = /usr/bin/tcpd
instead of
server = /usr/sbin/tcpd

tcpd is provided by tcp-wrappers

---
 .../inetutils/inetutils-1.9.2/rexec.xinetd.inetutils                    | 2 +-
 .../inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils                   | 2 +-
 .../recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rexec.xinetd.inetutils +1 -1
index 80aed36..7354360 100644
@@ -14,7 +14,7 @@ service exec
 	group		= root
 	log_on_success	+= USERID
 	log_on_failure	+= USERID
-	server		= /usr/bin/tcpd
+	server		= /usr/sbin/tcpd
 	server_args	= /usr/sbin/in.rexecd
 	disable		= yes
 }
meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils +1 -1
index 00dbf93..70493e6 100644
@@ -14,7 +14,7 @@ service login
 	group		= root
 	log_on_success	+= USERID
 	log_on_failure	+= USERID
-	server		= /usr/bin/tcpd
+	server		= /usr/sbin/tcpd
 	server_args	= /usr/sbin/in.rlogind -a
 	disable		= yes
 }
meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils +1 -1
index ad59b62..a842eb9 100644
@@ -15,7 +15,7 @@ service shell
 	group		= root
 	log_on_success	+= USERID
 	log_on_failure	+= USERID
-	server		= /usr/bin/tcpd
+	server		= /usr/sbin/tcpd
 	server_args	= /usr/sbin/in.rshd -aL
 	disable		= yes
 }
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · [[oe] [PATCH][meta-networking] inetutils: fix tcpd path of rlogin rsh and…

From: Jian Liu <[email protected]>

rlogin, rsh and rexec xinet.d script, a wrong path is being referenced under the server section.

This seems like a sensible update, but rather than just shifting this around, can you update this patch to do something a bit more robust? I'm thinking along the lines of what the other servers do (and what's being done everywhere for systemd now):

73 do_install () {
[...]
95 sed -e 's,@BASE_SBINDIR@,${base_sbindir},g' \

 96         -e 's,@SYSCONFDIR@,${sysconfdir},g' \
 97         -e 's,@SBINDIR@,${sbindir},g' \
 98         -i ${D}${systemd_unitdir}/system/*.service

(source: meta-networking/recipes-daemons/proftpd/proftpd_1.3.5a.bb, etc.)

So sed in the proper values of $(sbindir) (since that's where tcpd is installed by the tcp-wrappers recipe) after installing a template xinetd file.

-J.

Quoted 54 lines

server = /usr/bin/tcpd
instead of
server = /usr/sbin/tcpd

tcpd is provided by tcp-wrappers

---
 .../inetutils/inetutils-1.9.2/rexec.xinetd.inetutils                    | 2 +-
 .../inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils                   | 2 +-
 .../recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rexec.xinetd.inetutils +1 -1
index 80aed36..7354360 100644
@@ -14,7 +14,7 @@ service exec
 	group		= root
 	log_on_success	+= USERID
 	log_on_failure	+= USERID
-	server		= /usr/bin/tcpd
+	server		= /usr/sbin/tcpd
 	server_args	= /usr/sbin/in.rexecd
 	disable		= yes
 }
meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils +1 -1
index 00dbf93..70493e6 100644
@@ -14,7 +14,7 @@ service login
 	group		= root
 	log_on_success	+= USERID
 	log_on_failure	+= USERID
-	server		= /usr/bin/tcpd
+	server		= /usr/sbin/tcpd
 	server_args	= /usr/sbin/in.rlogind -a
 	disable		= yes
 }
meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils +1 -1
index ad59b62..a842eb9 100644
@@ -15,7 +15,7 @@ service shell
 	group		= root
 	log_on_success	+= USERID
 	log_on_failure	+= USERID
-	server		= /usr/bin/tcpd
+	server		= /usr/sbin/tcpd
 	server_args	= /usr/sbin/in.rshd -aL
 	disable		= yes
 }
Signature · 2 lines
-Joe MacDonald.
:wq
#2 lore raw
Quoted 19 lines · Joe MacDonald
Quoted 4 lines · [[oe] [PATCH][meta-networking] inetutils: fix tcpd path of rlogin rsh and…

From: Jian Liu <[email protected]>

rlogin, rsh and rexec xinet.d script, a wrong path is being referenced under the server section.

This seems like a sensible update, but rather than just shifting this around, can you update this patch to do something a bit more robust? I'm thinking along the lines of what the other servers do (and what's being done everywhere for systemd now):

  73 do_install () {
  [...]
  95     sed -e 's,@BASE_SBINDIR@,${base_sbindir},g' \
  96         -e 's,@SYSCONFDIR@,${sysconfdir},g' \
  97         -e 's,@SBINDIR@,${sbindir},g' \
  98         -i ${D}${systemd_unitdir}/system/*.service
Quoted 7 lines

(source: meta-networking/recipes-daemons/proftpd/proftpd_1.3.5a.bb, etc.)

So sed in the proper values of $(sbindir) (since that's where tcpd is installed by the tcp-wrappers recipe) after installing a template xinetd file.

-J.

Ok, will send v2

-Roy

Quoted 55 lines
Quoted 55 lines

server = /usr/bin/tcpd
instead of
server = /usr/sbin/tcpd

tcpd is provided by tcp-wrappers

---
  .../inetutils/inetutils-1.9.2/rexec.xinetd.inetutils                    | 2 +-
  .../inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils                   | 2 +-
  .../recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils | 2 +-
  3 files changed, 3 insertions(+), 3 deletions(-)
meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rexec.xinetd.inetutils +1 -1
index 80aed36..7354360 100644
@@ -14,7 +14,7 @@ service exec
  	group		= root
  	log_on_success	+= USERID
  	log_on_failure	+= USERID
-	server		= /usr/bin/tcpd
+	server		= /usr/sbin/tcpd
  	server_args	= /usr/sbin/in.rexecd
  	disable		= yes
  }
meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils +1 -1
index 00dbf93..70493e6 100644
@@ -14,7 +14,7 @@ service login
  	group		= root
  	log_on_success	+= USERID
  	log_on_failure	+= USERID
-	server		= /usr/bin/tcpd
+	server		= /usr/sbin/tcpd
  	server_args	= /usr/sbin/in.rlogind -a
  	disable		= yes
  }
meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils +1 -1
index ad59b62..a842eb9 100644
@@ -15,7 +15,7 @@ service shell
  	group		= root
  	log_on_success	+= USERID
  	log_on_failure	+= USERID
-	server		= /usr/bin/tcpd
+	server		= /usr/sbin/tcpd
  	server_args	= /usr/sbin/in.rshd -aL
  	disable		= yes
  }
Signature · 2 lines
Best Reagrds,
Roy | RongQing Li