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 / linux-pam / 0007-rhosts.patch
1 Conditionally compile per ruserok availability
2
3 ruserok is not available/functional in uclibc, provide conditions for compilation.
4
5 Signed-off-by: Dmitry Golubovsky <golubovsky@gmail.com>
6
7 Index: linux-pam-1.1.4/modules/pam_rhosts/pam_rhosts.c
8 ============================================================================
9 --- linux-pam-1.1.4/modules/pam_rhosts/pam_rhosts.c     2011-06-21 05:04:56.000000000 -0400
10 +++ linux-pam-1.1.4/modules/pam_rhosts/pam_rhosts.c     2012-08-09 21:19:34.000000000 -0400
11 @@ -114,8 +114,12 @@
12  #ifdef HAVE_RUSEROK_AF
13      retval = ruserok_af (rhost, as_root, ruser, luser, PF_UNSPEC);
14  #else
15 +  #ifdef HAVE_RUSEROK
16      retval = ruserok (rhost, as_root, ruser, luser);
17 -#endif
18 +  #else
19 +    retval = -1;
20 +  #endif  /* HAVE_RUSEROK */
21 +#endif  /*HAVE_RUSEROK_AF */
22      if (retval != 0) {
23        if (!opt_silent || opt_debug)
24         pam_syslog(pamh, LOG_WARNING, "denied access to %s@%s as %s",