The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / rpcbind / 0001-Remove-yellow-pages-support.patch
1 From 249e25c5cc675c212ca4e4a3342bff8f59285b1a Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 10 Nov 2012 22:03:43 +0100
4 Subject: [PATCH] Remove yellow pages support
5
6 This support requires yellow pages support in libtirpc, which isn't
7 available. As most Buildroot users are most likely never going to need
8 such feature, get rid of it.
9
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 ---
12  src/security.c | 18 ------------------
13  1 file changed, 18 deletions(-)
14
15 diff --git a/src/security.c b/src/security.c
16 index d272f74..8d5863c 100644
17 --- a/src/security.c
18 +++ b/src/security.c
19 @@ -23,9 +23,6 @@
20  #include <rpcsvc/mount.h>
21  #include <rpcsvc/rquota.h>
22  #include <rpcsvc/nfs_prot.h>
23 -#include <rpcsvc/yp.h>
24 -#include <rpcsvc/ypclnt.h>
25 -#include <rpcsvc/yppasswd.h>
26  
27  #include "rpcbind.h"
28  
29 @@ -308,24 +305,9 @@ check_callit(SVCXPRT *xprt, struct r_rmtcall_args *args, int versnum /*__unused*
30                     args->rmt_proc != MOUNTPROC_UMNT)
31                         break;
32                 goto deny;
33 -       case YPBINDPROG:
34 -               if (args->rmt_proc != YPBINDPROC_SETDOM)
35 -                       break;
36 -               /* FALLTHROUGH */
37 -       case YPPASSWDPROG:
38         case NFS_PROGRAM:
39         case RQUOTAPROG:
40                 goto deny;
41 -       case YPPROG:
42 -               switch (args->rmt_proc) {
43 -               case YPPROC_ALL:
44 -               case YPPROC_MATCH:
45 -               case YPPROC_FIRST:
46 -               case YPPROC_NEXT:
47 -                       goto deny;
48 -               default:
49 -                       break;
50 -               }
51         default:
52                 break;
53         }
54 -- 
55 2.0.0
56