summaryrefslogtreecommitdiff
path: root/package/rpcbind/patches/patch-src_security_c
blob: d7a5582d9556af5d503e7ae2dc9b9857591aae62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- rpcbind-0.2.0.orig/src/security.c	2009-05-29 15:38:22.000000000 +0200
+++ rpcbind-0.2.0/src/security.c	2010-02-06 01:55:37.383094004 +0100
@@ -20,12 +20,38 @@
 /*
  * XXX for special case checks in check_callit.
  */
+#if defined(__UCLIBC__)
+
+#define MOUNTPROC_MNT 1
+#define MOUNTPROC_UMNT 3
+
+#define NFS_PROGRAM    100003
+#define YPPROG         100004
+#define MOUNTPROG      100005
+#define YPBINDPROG     100007
+#define YPPASSWDPROG   100009
+#define RQUOTAPROG     100011
+
+#define YPPROC_NULL    0
+#define YPPROC_DOMAIN  1
+#define YPPROC_DOMAIN_NONACK 2
+#define YPPROC_MATCH   3
+#define YPPROC_FIRST   4
+#define YPPROC_NEXT    5
+#define YPPROC_XFR     6
+#define YPPROC_CLEAR   7
+#define YPPROC_ALL     8
+
+#define YPBINDPROC_SETDOM      2
+
+#else 
 #include <rpcsvc/mount.h>
 #include <rpcsvc/rquota.h>
 #include <rpcsvc/nfs_prot.h>
 #include <rpcsvc/yp.h>
 #include <rpcsvc/ypclnt.h>
 #include <rpcsvc/yppasswd.h>
+#endif
 
 #include "rpcbind.h"