xref: /OK3568_Linux_fs/buildroot/package/rpcbind/0001-Remove-yellow-pages-support.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 226b9c57ff403b407dbf1ff8a615da455a4cbd23 Mon Sep 17 00:00:00 2001
2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3Date: Sat, 10 Nov 2012 22:03:43 +0100
4Subject: [PATCH] Remove yellow pages support
5
6This support requires yellow pages support in libtirpc, which isn't
7available. As most Buildroot users are most likely never going to need
8such feature, get rid of it.
9
10Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11[ rebased for 1.2.6 ]
12Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
13---
14 src/security.c | 15 ---------------
15 1 file changed, 15 deletions(-)
16
17diff --git a/src/security.c b/src/security.c
18index 38967dd..0a70635 100644
19--- a/src/security.c
20+++ b/src/security.c
21@@ -318,24 +318,9 @@ check_callit(SVCXPRT *xprt, struct r_rmtcall_args *args, int versnum /*__unused*
22 		    args->rmt_proc != MOUNTPROC_UMNT)
23 			break;
24 		goto deny;
25-	case YPBINDPROG:
26-		if (args->rmt_proc != YPBINDPROC_SETDOM)
27-			break;
28-		/* FALLTHROUGH */
29-	case YPPASSWDPROG:
30 	case NFS_PROGRAM:
31 	case RQUOTAPROG:
32 		goto deny;
33-	case YPPROG:
34-		switch (args->rmt_proc) {
35-		case YPPROC_ALL:
36-		case YPPROC_MATCH:
37-		case YPPROC_FIRST:
38-		case YPPROC_NEXT:
39-			goto deny;
40-		default:
41-			break;
42-		}
43 	default:
44 		break;
45 	}
46--
472.31.1
48
49