~ubuntu-branches/ubuntu/maverick/samba/maverick-security

« back to all changes in this revision

Viewing changes to source3/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-01-29 06:16:15 UTC
  • mfrom: (0.27.9 upstream) (0.34.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100129061615-37hs6xqpsdhjq3ld
Tags: 2:3.4.5~dfsg-1ubuntu1
* Merge from debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/smb.conf:
    - Add "(Samba, Ubuntu)" to server string.
    - Comment out the default [homes] share, and add a comment about "valid users = %s"
      to show users how to restrict access to \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are allowed to create
      public shares in additon to authenticated ones.
    - add map to guest = Bad user, maps bad username to gues access.
  + debian/samba-common.conf:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/mksambapasswd.awk:
    - Do not add user with UID less than 1000 to smbpasswd.
  + debian/control: 
    - Make libswbclient0 replace/conflict with hardy's likewise-open.
    - Don't build against ctdb, since its not in main yet.
  + debian/rules:
    - Enable "native" PIE hardening.
    - Add BIND_NOW to maximize benefit of RELRO hardening.
  + Add ufw integration:
    - Created debian/samba.ufw.profile.
    - debian/rules, debian/samba.dirs, debian/samba.files: install
  + Add apoort hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + debian/rules, debian/samba.if-up: allow "NetworkManager" as a recognized address
    family... it's obviously /not/ an address family, but it's what gets
    sent when using NM, so we'll cope for now.  (LP: #462169). Taken from karmic-proposed.
  + debian/control: Recommend keyutils for smbfs (LP: #493565)
  + Dropped patches:
    - debian/patches/security-CVE-2009-3297.patch: No longer needed
    - debian/patches/fix-too-many-open-files.patch: No longer needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
then
32
32
        PKG_CHECK_MODULES(TALLOC, talloc >= 1.3.0, 
33
33
                [ enable_external_libtalloc=yes ],
34
 
                [ if x$enable_external_libtalloc = xyes; then 
 
34
                [ if test "x$enable_external_libtalloc" = xyes; then
35
35
                        AC_MSG_ERROR([Unable to find libtalloc])
36
36
              else 
37
37
                        enable_external_libtalloc=no
1059
1059
# setbuffer, shmget, shm_open are needed for smbtorture
1060
1060
AC_CHECK_FUNCS(shmget shm_open)
1061
1061
AC_CHECK_FUNCS(gettext dgettext)
 
1062
AC_CHECK_FUNCS(strupr)
1062
1063
 
1063
1064
# Find a method of generating a stack trace
1064
1065
AC_CHECK_HEADERS(execinfo.h libexc.h libunwind.h)
1070
1071
# check for sysctlbyname for BSD systems
1071
1072
AC_CHECK_FUNCS(sysctlbyname)
1072
1073
 
1073
 
printf "%s" "checking for GPFS GPL libs... "
1074
 
save_LIBS="$LIBS"
1075
 
LIBS="$LIBS -lgpfs_gpl"
1076
 
AC_TRY_LINK([#include <gpfs_gpl.h>],
1077
 
          [gpfs_set_share(0,GPFS_SHARE_READ,GPFS_DENY_NONE)],
1078
 
          samba_cv_HAVE_GPFS=yes,
1079
 
          samba_cv_HAVE_GPFS=no)
1080
 
echo $samba_cv_HAVE_GPFS
1081
 
if test x"$samba_cv_HAVE_GPFS" = x"yes"; then
1082
 
    AC_DEFINE(HAVE_GPFS,1,[Whether GPFS GPL libs are available])
1083
 
    default_shared_modules="$default_shared_modules vfs_gpfs"
1084
 
fi
1085
 
LIBS="$save_LIBS"
1086
 
 
1087
 
printf "%s" "checking for GPFS libs (with 3.2.1 PTF8 available as GPL)... "
1088
 
save_LIBS="$LIBS"
1089
 
LIBS="$LIBS -lgpfs"
1090
 
AC_TRY_LINK([#include <gpfs.h>],
1091
 
          [gpfs_set_share(0,GPFS_SHARE_READ,GPFS_DENY_NONE)],
1092
 
          samba_cv_HAVE_GPFS=yes,
1093
 
          samba_cv_HAVE_GPFS=no)
1094
 
echo $samba_cv_HAVE_GPFS
1095
 
if test x"$samba_cv_HAVE_GPFS" = x"yes"; then
1096
 
    AC_DEFINE(HAVE_GPFS,1,[Whether GPFS GPL libs are available])
1097
 
    default_shared_modules="$default_shared_modules vfs_gpfs"
1098
 
fi
1099
 
LIBS="$save_LIBS"
 
1074
#############################
 
1075
# check if building with gpfs
 
1076
AC_CHECK_HEADERS(gpfs_gpl.h)
 
1077
if test x"$ac_cv_header_gpfs_gpl_h" = x"yes"; then
 
1078
    AC_DEFINE(HAVE_GPFS,1,[Whether GPFS GPL headers are available])
 
1079
    default_shared_modules="$default_shared_modules vfs_gpfs"
 
1080
fi
1100
1081
 
1101
1082
#############################################
1102
1083
# check if building on Isilon OneFS
1545
1526
 
1546
1527
  # and these are for particular systems
1547
1528
  case "$host_os" in
1548
 
                *linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
1549
 
                        case "$host_os" in *linux*)
1550
 
                                AC_DEFINE(LINUX,1,[Whether the host os is linux]) ;;
 
1529
                *linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu | *qnx*)
 
1530
                        case "$host_os" in
 
1531
                                *linux*) AC_DEFINE(LINUX,1,[Whether the host os is linux]) ;;
 
1532
                                *qnx*) AC_DEFINE(QNX,1,[Whether the host os is qnx]) ;;
1551
1533
                        esac
1552
1534
                        BLDSHARED="true"
1553
1535
                        if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
1661
1643
                        AC_DEFINE(STAT_ST_BLOCKSIZE,8192,[The size of a block])
1662
1644
                        AC_DEFINE(POSIX_ACL_NEEDS_MASK,1,[Does a POSIX ACL need a mask element])
1663
1645
                        ;;
1664
 
                *qnx*) AC_DEFINE(QNX,1,[Whether the host os is qnx])
1665
 
                        AC_DEFINE(STAT_ST_BLOCKSIZE,512)
1666
 
                        ;;
1667
1646
                *osf*) AC_DEFINE(OSF1,1,[Whether the host os is osf1])
1668
1647
                        BLDSHARED="true"
1669
1648
                        LDSHFLAGS="-shared"
3318
3297
    CPPFLAGS=$ac_save_CPPFLAGS
3319
3298
    LDFLAGS=$ac_save_LDFLAGS
3320
3299
  fi
3321
 
  AC_CHECK_HEADERS(krb5/locate_plugin.h)
 
3300
  AC_CHECK_HEADERS([krb5/locate_plugin.h], [], [],
 
3301
[[#ifdef HAVE_KRB5_H
 
3302
 #include <krb5.h>
 
3303
 #endif
 
3304
]])
 
3305
 
3322
3306
  if test x"$ac_cv_header_krb5_locate_plugin_h" = x"yes"; then
3323
3307
        WINBIND_KRB5_LOCATOR="bin/winbind_krb5_locator.$SHLIBEXT"
3324
3308
        EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WINBIND_KRB5_LOCATOR"
3325
3309
  fi
 
3310
 
 
3311
  # check for new heimdal KRB5_DEPRECATED handling
 
3312
 
 
3313
  AC_CACHE_CHECK([for KRB5_DEPRECATED define taking an identifier],
 
3314
                samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER,[
 
3315
    AC_TRY_COMPILE(
 
3316
      [#define KRB5_DEPRECATED 1
 
3317
      #include <krb5.h>],
 
3318
      [],
 
3319
      samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER=yes,
 
3320
      samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER=no)])
 
3321
 
 
3322
  if test x"$samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER" = x"yes"; then
 
3323
    AC_DEFINE(HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER, 1,
 
3324
               [Whether to use deprecated krb5 interfaces])
 
3325
  fi
3326
3326
fi
3327
3327
 
3328
3328
# Now we have determined whether we really want ADS support
3405
3405
  AC_CHECK_FUNC_EXT(krb5_fwd_tgt_creds, $KRB5_LIBS)
3406
3406
  AC_CHECK_FUNC_EXT(krb5_auth_con_set_req_cksumtype, $KRB5_LIBS)
3407
3407
 
 
3408
  # MIT krb5 1.7beta3 (in Ubuntu Karmic) does not have this declaration
 
3409
  # but does have the symbol
 
3410
  AC_CHECK_DECLS(krb5_auth_con_set_req_cksumtype, [], [], [#include <krb5.h>])
 
3411
 
3408
3412
  LIBS="$KRB5_LIBS $LIBS"
3409
3413
 
3410
3414
  AC_CACHE_CHECK(whether krb5_ticket contains kvno and enctype,