Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Joe MacDonald <Joe_MacDonald@mentor.com>
To: <rongqing.li@windriver.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH][meta-networking] inetutils: fix tcpd path of rlogin rsh and rexec
Date: Wed, 15 Jul 2015 10:36:27 -0400	[thread overview]
Message-ID: <20150715143626.GB29923@mentor.com> (raw)
In-Reply-To: <1436172967-1489-1-git-send-email-rongqing.li@windriver.com>

[-- Attachment #1: Type: text/plain, Size: 3550 bytes --]

[[oe] [PATCH][meta-networking] inetutils: fix tcpd path of rlogin rsh and rexec] On 15.07.06 (Mon 16:56) rongqing.li@windriver.com wrote:

> From: Jian Liu <jian.liu@windriver.com>
> 
> 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.

> 
> server = /usr/bin/tcpd
> instead of
> server = /usr/sbin/tcpd
> 
> tcpd is provided by tcp-wrappers
> 
> Written-by: Herve.Patriarche <herve.patriarche@windriver.com>
> Signed-off-by: Jian Liu <jian.liu@windriver.com>
> ---
>  .../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(-)
> 
> diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rexec.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rexec.xinetd.inetutils
> index 80aed36..7354360 100644
> --- a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rexec.xinetd.inetutils
> +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rexec.xinetd.inetutils
> @@ -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
>  }
> diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils
> index 00dbf93..70493e6 100644
> --- a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils
> +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rlogin.xinetd.inetutils
> @@ -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
>  }
> diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils
> index ad59b62..a842eb9 100644
> --- a/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils
> +++ b/meta-networking/recipes-connectivity/inetutils/inetutils-1.9.2/rsh.xinetd.inetutils
> @@ -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
>  }
-- 
-Joe MacDonald.
:wq

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 484 bytes --]

  reply	other threads:[~2015-07-15 14:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06  8:56 [PATCH][meta-networking] inetutils: fix tcpd path of rlogin rsh and rexec rongqing.li
2015-07-15 14:36 ` Joe MacDonald [this message]
2015-07-16  2:48   ` Rongqing Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150715143626.GB29923@mentor.com \
    --to=joe_macdonald@mentor.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=rongqing.li@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox