DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH] unfs3: Fix generation of export list
@ 2021-03-11 17:38 Uwe Kleine-König
  2021-03-11 17:52 ` Robert Schwebel
  2021-04-25 15:30 ` Roland Hieber
  0 siblings, 2 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2021-03-11 17:38 UTC (permalink / raw)
  To: distrokit

Before this change the content of the export list is by default:

	/ (rw,no_root_squash),insecure

which is wrong. The closing parenthesis must be after the insecure
keyword.

It seems I'm the first user of unfs3 in the v7a platform since 2016.

Fixes: c17c88e05a88 ("platform: beaglebone: nfs: add insecure option")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh b/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh
index 5a95628b5324..58f100d95f70 100644
--- a/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh
+++ b/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh
@@ -25,7 +25,7 @@ ptxd_make_nfsd_exec() {
     echo
 
     #insecure for qemu with -net user
-    client_specifications="${client_specifications},insecure"
+    client_specifications="${client_specifications%)},insecure)"
     echo "/ ${client_specifications}" > "${PTXDIST_TEMPDIR}/exports" &&
     UNFS_BASE="${base}" unfsd -e "${PTXDIST_TEMPDIR}/exports" -n ${port} -m ${port} -p -d "${@}"
 }
-- 
2.30.1


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [DistroKit] [PATCH] unfs3: Fix generation of export list
  2021-03-11 17:38 [DistroKit] [PATCH] unfs3: Fix generation of export list Uwe Kleine-König
@ 2021-03-11 17:52 ` Robert Schwebel
  2021-04-25 15:30 ` Roland Hieber
  1 sibling, 0 replies; 4+ messages in thread
From: Robert Schwebel @ 2021-03-11 17:52 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: distrokit

On Thu, Mar 11, 2021 at 06:38:49PM +0100, Uwe Kleine-König wrote:
> Before this change the content of the export list is by default:
> 
> 	/ (rw,no_root_squash),insecure
> 
> which is wrong. The closing parenthesis must be after the insecure
> keyword.
> 
> It seems I'm the first user of unfs3 in the v7a platform since 2016.
> 
> Fixes: c17c88e05a88 ("platform: beaglebone: nfs: add insecure option")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to next.

rsc
-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [DistroKit] [PATCH] unfs3: Fix generation of export list
  2021-03-11 17:38 [DistroKit] [PATCH] unfs3: Fix generation of export list Uwe Kleine-König
  2021-03-11 17:52 ` Robert Schwebel
@ 2021-04-25 15:30 ` Roland Hieber
  2021-04-25 16:22   ` Alexander Aring
  1 sibling, 1 reply; 4+ messages in thread
From: Roland Hieber @ 2021-04-25 15:30 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Michael Olbrich, distrokit

On Thu, Mar 11, 2021 at 06:38:49PM +0100, Uwe Kleine-König wrote:
> Before this change the content of the export list is by default:
> 
> 	/ (rw,no_root_squash),insecure
> 
> which is wrong. The closing parenthesis must be after the insecure
> keyword.
> 
> It seems I'm the first user of unfs3 in the v7a platform since 2016.

Hmm, why do we need this file at all? Shouldn't this be included in
upstream PTXdist too?

 - Roland

> Fixes: c17c88e05a88 ("platform: beaglebone: nfs: add insecure option")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh b/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh
> index 5a95628b5324..58f100d95f70 100644
> --- a/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh
> +++ b/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh
> @@ -25,7 +25,7 @@ ptxd_make_nfsd_exec() {
>      echo
>  
>      #insecure for qemu with -net user
> -    client_specifications="${client_specifications},insecure"
> +    client_specifications="${client_specifications%)},insecure)"
>      echo "/ ${client_specifications}" > "${PTXDIST_TEMPDIR}/exports" &&
>      UNFS_BASE="${base}" unfsd -e "${PTXDIST_TEMPDIR}/exports" -n ${port} -m ${port} -p -d "${@}"
>  }
> -- 
> 2.30.1
> 
> 
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [DistroKit] [PATCH] unfs3: Fix generation of export list
  2021-04-25 15:30 ` Roland Hieber
@ 2021-04-25 16:22   ` Alexander Aring
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Aring @ 2021-04-25 16:22 UTC (permalink / raw)
  To: Roland Hieber; +Cc: Michael Olbrich, distrokit, Uwe Kleine-König

Hi,

On Sun, 25 Apr 2021 at 11:30, Roland Hieber <rhi@pengutronix.de> wrote:
>
> On Thu, Mar 11, 2021 at 06:38:49PM +0100, Uwe Kleine-König wrote:
> > Before this change the content of the export list is by default:
> >
> >       / (rw,no_root_squash),insecure
> >
> > which is wrong. The closing parenthesis must be after the insecure
> > keyword.
> >
> > It seems I'm the first user of unfs3 in the v7a platform since 2016.
>
> Hmm, why do we need this file at all? Shouldn't this be included in
> upstream PTXdist too?
>

it adds the "insecure" option. Which is somehow needed because qemu
hostfwd rules and playing proxy with different port numbers. The
"insecure" option allows different port numbers.

"The insecure option in this entry also allows clients with NFS
implementations that don't use a reserved port for NFS."

- Alex

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-25 16:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 17:38 [DistroKit] [PATCH] unfs3: Fix generation of export list Uwe Kleine-König
2021-03-11 17:52 ` Robert Schwebel
2021-04-25 15:30 ` Roland Hieber
2021-04-25 16:22   ` Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox