]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-3.4.28 v3.4.28
authorWietse Venema <wietse@porcupine.org>
Sat, 21 Jan 2023 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Sun, 22 Jan 2023 18:52:03 +0000 (13:52 -0500)
15 files changed:
postfix/HISTORY
postfix/makedefs
postfix/src/flush/flush.c
postfix/src/global/mail_version.h
postfix/src/postscreen/postscreen.c
postfix/src/smtpd/smtpd_proxy.c
postfix/src/tls/tls.h
postfix/src/tls/tls_client.c
postfix/src/tls/tls_dane.c
postfix/src/tls/tls_fprint.c
postfix/src/tls/tls_misc.c
postfix/src/tls/tls_server.c
postfix/src/util/dict_cache.c
postfix/src/util/stringops.h
postfix/src/util/sys_defs.h

index 398bd79cdff7d5d5e65606607be0f1c7c922af0d..62b0baecd058fe8e3f6240cd8e09f342766cd195 100644 (file)
@@ -24818,3 +24818,62 @@ Apologies for any names omitted.
        Cleanup: Postfix 3.4.26 introduced a missing msg_panic()
        argument (in code that never executes). File:
        cleanup/cleanup_milter.c.
+
+20221128
+
+       Bugfix (introduced: Postfix 2.2): the smtpd_proxy_client
+       code mis-parsed the last XFORWARD attribute name in the
+       SMTP server's EHLO response. The result was that the
+       smtpd_proxy_client code failed to forward the IDENT attribute.
+       Fix by Andreas Weigel. File: smtpd/smtpd_proxy.c.
+
+20221201
+
+       Portability: LINUX6 support. Files: makedefs, util/sys_defs.h.
+
+20221207
+
+       Workaround: OpenSSL 3.x EVP_get_digestbyname() can return
+       lazily bound handles that may fail to work when one attempts
+       to use them, because no provider search happens until one
+       constructs an actual operation context. In sufficiently
+       hostile configurations, Postfix could mistakenly believe
+       that an algorithm is available, when in fact it is not. A
+       similar workaround may be needed for EVP_get_cipherbyname().
+       Fix by Viktor Dukhovni. Files: tls/tls.h, tls/tls_dane.c,
+       tls/tls_fprint.c, tls/tls_misc.c.
+
+       Bugfix (introduced: Postfix 2.11): the checkok() macro in
+       tls/tls_fprint.c evaluated its argument unconditionally;
+       it should evaluate the argument only if there was no prior
+       error. Found during code review. File: tls/tls_fprint.c.
+
+20221215
+
+       Foolproofing: postscreen segfault with postscreen_dnsbl_threshold
+       < 1. It should reject such input with a fatal error instead.
+       Discovered by Benny Pedersen. File: postscreen/postscreen.c.
+
+20230103
+
+       Bugfix (introduced: Postfix 2.7): the verify daemon logged
+       a garbled cache name when terminating a cache scan in
+       progress. Reported by Phil Biggs, fix by Viktor Dukhovni.
+       File: util/dict_cache.c.
+
+       Bitrot: fixes for linker warnings from newer Darwin (MacOS)
+       versions. Viktor Dukhovni. File: makedefs.
+
+20230115
+
+       Workaround: STRREF() macro to shut up compiler warnings for
+       legitimate string comparison expressions. Back-ported from
+       Postfix 3.6 and later. Files: util/stringops.h, flush/flush.c.
+
+       Workaround for a breaking change in OpenSSL 3: always turn
+       on SSL_OP_IGNORE_UNEXPECTED_EOF, to avoid warning messages
+       and missed opportunities for TLS session reuse. This is
+       safe because the SMTP protocol implements application-level
+       framing, and is therefore not affected by TLS truncation
+       attacks. Fix by Viktor Dukhovni. Files: tls/tls.h, tls_client.c,
+       tls/tls_server.c.
index aea15d6f3ec0ada751c195f58435101a730b465b..36a9056f7450a57c0f585840d0ee64a24a565b46 100644 (file)
@@ -557,7 +557,7 @@ EOF
                : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
                : ${PLUGIN_LD="${CC-gcc} -shared"}
                ;;
- Linux.[345].*)        SYSTYPE=LINUX$RELEASE_MAJOR
+Linux.[3456].*)        SYSTYPE=LINUX$RELEASE_MAJOR
                case "$CCARGS" in
                 *-DNO_DB*) ;;
                 *-DHAS_DB*) ;;
@@ -699,6 +699,12 @@ ReliantUNIX-?.5.43) SYSTYPE=ReliantUnix543
                ?.*|10.*) ;;
                       *) SYSLIBS="$SYSLIBS -lresolv";;
                esac
+               # Darwin 21 linker without additional coaxing complains about
+               # -Wl,-undefined,dynamic_lookup
+               case $RELEASE in
+               2[1-9].*|[3-9]?.*) NOFIXUP="-Wl,-no_fixup_chains ";;
+                               *) NOFIXUP="";;
+               esac
                # kqueue and/or poll are broken in MacOS X 10.5 (Darwin 9).
                # kqueue works in Mac OS X 10.8 (Darwin 12).
                case $RELEASE in
@@ -706,12 +712,12 @@ ReliantUNIX-?.5.43) SYSTYPE=ReliantUnix543
                esac
                : ${SHLIB_CFLAGS=-fPIC}
                : ${SHLIB_SUFFIX=.dylib}
-               : ${SHLIB_LD='cc -shared -Wl,-flat_namespace -Wl,-undefined,dynamic_lookup -Wl,-install_name,@rpath/${LIB}'}
+               : ${SHLIB_LD="cc -shared -Wl,-flat_namespace ${NOFIXUP}-Wl,-undefined,dynamic_lookup "'-Wl,-install_name,@rpath/${LIB}'}
                : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
                 # In MacOS/X 10.11.x /bin/sh unsets DYLD_LIBRARY_PATH, so we
                 # have export it into postfix-install indirectly!
                : ${SHLIB_ENV="DYLD_LIBRARY_PATH=`pwd`/lib SHLIB_ENV_VAR=DYLD_LIBRARY_PATH SHLIB_ENV_VAL=`pwd`/lib"}
-               : ${PLUGIN_LD='cc -shared -Wl,-flat_namespace -Wl,-undefined,dynamic_lookup'}
+               : ${PLUGIN_LD="cc -shared -Wl,-flat_namespace ${NOFIXUP}-Wl,-undefined,dynamic_lookup"}
                ;;
     dcosx.1*)  SYSTYPE=DCOSX1
                RANLIB=echo
index 2e261bc32da97584775b20b03d528c727b14e551..072fe92845e22569863761ee0d44460f42794cf1 100644 (file)
@@ -229,7 +229,7 @@ static DOMAIN_LIST *flush_domains;
   * Silly little macros.
   */
 #define STR(x)                 vstring_str(x)
-#define STREQ(x,y)             ((x) == (y) || strcmp(x,y) == 0)
+#define STREQ(x,y)             (STRREF(x) == STRREF(y) || strcmp(x,y) == 0)
 
  /*
   * Forward declarations resulting from breaking up routines according to
index 926595eb5af2f94b961b227c5944337c4a9bf42d..6f4f8d85576626fe853371989e6aa9498f25227d 100644 (file)
@@ -20,8 +20,8 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20221007"
-#define MAIL_VERSION_NUMBER    "3.4.27"
+#define MAIL_RELEASE_DATE      "20230121"
+#define MAIL_VERSION_NUMBER    "3.4.28"
 
 #ifdef SNAPSHOT
 #define MAIL_VERSION_DATE      "-" MAIL_RELEASE_DATE
index 7abf737a8854e7578b45fb7683414c0cf382d369..938fa3d2b29a31b6435c025a7032980bf80f29af 100644 (file)
@@ -1136,7 +1136,7 @@ int     main(int argc, char **argv)
        0,
     };
     static const CONFIG_INT_TABLE int_table[] = {
-       VAR_PSC_DNSBL_THRESH, DEF_PSC_DNSBL_THRESH, &var_psc_dnsbl_thresh, 0, 0,
+       VAR_PSC_DNSBL_THRESH, DEF_PSC_DNSBL_THRESH, &var_psc_dnsbl_thresh, 1, 0,
        VAR_PSC_DNSBL_WTHRESH, DEF_PSC_DNSBL_WTHRESH, &var_psc_dnsbl_wthresh, 0, 0,
        VAR_PSC_CMD_COUNT, DEF_PSC_CMD_COUNT, &var_psc_cmd_count, 1, 0,
        VAR_SMTPD_CCONN_LIMIT, DEF_SMTPD_CCONN_LIMIT, &var_smtpd_cconn_limit, 0, 0,
index b2e765b313de947fee82874bb2d1b5e762723636..1c1f9fc497de317b23a413c08ea3ed699a175e6a 100644 (file)
@@ -388,7 +388,7 @@ static int smtpd_proxy_connect(SMTPD_STATE *state)
      */
     server_xforward_features = 0;
     lines = STR(proxy->reply);
-    while ((words = mystrtok(&lines, "\n")) != 0) {
+    while ((words = mystrtok(&lines, "\r\n")) != 0) {
        if (mystrtok(&words, "- ") && (word = mystrtok(&words, " \t")) != 0) {
            if (strcasecmp(word, XFORWARD_CMD) == 0)
                while ((word = mystrtok(&words, " \t")) != 0)
index 2a8cc11999611c249c77233620af721b8791467f..f6dfd027ca46900f7701efe94e2db4498f655f6a 100644 (file)
@@ -415,6 +415,13 @@ extern void tls_param_init(void);
 #define SSL_OP_NO_TLSv1_3      0L      /* Noop */
 #endif
 
+/*
+ * Always used when defined, SMTP has no truncation attacks.
+ */
+#ifndef SSL_OP_IGNORE_UNEXPECTED_EOF
+#define SSL_OP_IGNORE_UNEXPECTED_EOF    0L
+#endif
+
 #define TLS_KNOWN_PROTOCOLS \
        ( TLS_PROTOCOL_SSLv2 | TLS_PROTOCOL_SSLv3 | TLS_PROTOCOL_TLSv1 \
           | TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3 )
@@ -431,7 +438,8 @@ extern void tls_param_init(void);
  * just exposed via hex codes or named elements of tls_ssl_options.
  */
 #define TLS_SSL_OP_MANAGED_BITS \
-       (SSL_OP_CIPHER_SERVER_PREFERENCE | TLS_SSL_OP_PROTOMASK(~0))
+       (SSL_OP_CIPHER_SERVER_PREFERENCE | SSL_OP_IGNORE_UNEXPECTED_EOF | \
+        TLS_SSL_OP_PROTOMASK(~0))
 
 extern int tls_protocol_mask(const char *);
 
@@ -679,6 +687,7 @@ extern void tls_dane_set_callback(SSL_CTX *, TLS_SESS_STATE *);
  /*
   * tls_fprint.c
   */
+extern const EVP_MD *tls_digest_byname(const char *, EVP_MD_CTX **);
 extern char *tls_digest_encode(const unsigned char *, int);
 extern char *tls_data_fprint(const char *, int, const char *);
 extern char *tls_cert_fprint(X509 *, const char *);
index f3263b6dc5825cf9e24615bccc5404b2c2bde107..e6b5af1f02951f9f2da892c4d3df9377eb565571 100644 (file)
@@ -402,6 +402,15 @@ TLS_APPL_STATE *tls_client_init(const TLS_CLIENT_INIT_PROPS *props)
      */
     SSL_CTX_set_verify_depth(client_ctx, props->verifydepth + 1);
 
+    /*
+     * Presently we use TLS only with SMTP where truncation attacks are not
+     * possible as a result of application framing.  If we ever use TLS in
+     * some other application protocol where truncation could be relevant,
+     * we'd need to disable truncation detection conditionally, or explicitly
+     * clear the option in that code path.
+     */
+    off |= SSL_OP_IGNORE_UNEXPECTED_EOF;
+
     /*
      * Protocol selection is destination dependent, so we delay the protocol
      * selection options to the per-session SSL object.
index 013426b1197426809fbdea0cd1bddef806bc1a66..33759053d09a01913920a7ba8c539f92345ef49a 100644 (file)
@@ -344,7 +344,7 @@ static dane_digest *add_digest(char *mdalg, int pref)
     }
 
     if (*dane_mdalg
-       && ((md = EVP_get_digestbyname(dane_mdalg)) == 0
+       && ((md = tls_digest_byname(dane_mdalg, NULL)) == 0
            || (mdlen = EVP_MD_size(md)) <= 0
            || mdlen > EVP_MAX_MD_SIZE)) {
        msg_warn("Unimplemented digest algorithm in %s: %s%s%s",
index 2bb7e21befbf249e6229d005d7ba3daa79257c9d..03e4dc679b24189fe284b45a5869071ba12c8b22 100644 (file)
@@ -6,6 +6,10 @@
 /* SYNOPSIS
 /*     #include <tls.h>
 /*
+/*     EVP_MD  *tls_digest_byname(const char *mdalg, EVP_MD_CTX **mdctxPtr)
+/*     const char *mdalg;
+/*     EVP_MD_CTX **mdctxPtr;
+/*
 /*     char    *tls_serverid_digest(props, protomask, ciphers)
 /*     const TLS_CLIENT_START_PROPS *props;
 /*     long    protomask;
 /*     X509    *peercert;
 /*     const char *mdalg;
 /* DESCRIPTION
+/*     tls_digest_byname() constructs, and optionally returns, an EVP_MD_CTX
+/*     handle for performing digest operations with the algorithm named by the
+/*     mdalg parameter.  The return value is non-null on success, and holds a
+/*     digest algorithm handle.  If the mdctxPtr argument is non-null the
+/*     created context is returned to the caller, who is then responsible for
+/*     deleting it by calling EVP_MD_ctx_free() once it is no longer needed.
+/*
 /*     tls_digest_encode() converts a binary message digest to a hex ASCII
 /*     format with ':' separators between each pair of hex digits.
 /*     The return value is dynamically allocated with mymalloc(),
@@ -61,6 +72,8 @@
 /*     and the caller must eventually free it with myfree().
 /*
 /*     Arguments:
+/* .IP mdalg
+/*     A digest algorithm name, such as "sha256".
 /* .IP peercert
 /*     Server or client X.509 certificate.
 /* .IP md_buf
@@ -71,6 +84,9 @@
 /*     Name of a message digest algorithm suitable for computing secure
 /*     (1st pre-image resistant) message digests of certificates. For now,
 /*     md5, sha1, or member of SHA-2 family if supported by OpenSSL.
+/* .IP mdctxPtr
+/*     Pointer to an (EVP_MD_CTX *) handle, or NULL if only probing for
+/*     algorithm support without immediate use in mind.
 /* .IP buf
 /*     Input data for the message digest algorithm mdalg.
 /* .IP len
 
 static const char hexcodes[] = "0123456789ABCDEF";
 
-#define checkok(ret)   (ok &= ((ret) ? 1 : 0))
+#define checkok(stillok) (ok = ok && (stillok))
 #define digest_data(p, l) checkok(EVP_DigestUpdate(mdctx, (char *)(p), (l)))
 #define digest_object(p) digest_data((p), sizeof(*(p)))
 #define digest_string(s) digest_data((s), strlen(s)+1)
@@ -159,13 +175,50 @@ static int digest_tlsa_usage(EVP_MD_CTX * mdctx, TLS_TLSA *tlsa,
     return (ok);
 }
 
+/* tls_digest_byname - test availability or prepare to use digest */
+
+const EVP_MD *tls_digest_byname(const char *mdalg, EVP_MD_CTX **mdctxPtr)
+{
+    const EVP_MD *md;
+    EVP_MD_CTX *mdctx = NULL;
+    int     ok = 1;
+
+    /*
+     * In OpenSSL 3.0, because of dynamically variable algorithm providers,
+     * there is a time-of-check/time-of-use issue that means that abstract
+     * algorithm handles returned by EVP_get_digestbyname() can (and not
+     * infrequently do) return ultimately unusable algorithms, to check for
+     * actual availability, one needs to use the new EVP_MD_fetch() API, or
+     * indirectly check usability by creating a concrete context. We take the
+     * latter approach here (works for 1.1.1 without #ifdef).
+     * 
+     * Note that EVP_MD_CTX_{create,destroy} were renamed to, respectively,
+     * EVP_MD_CTX_{new,free} in OpenSSL 1.1.0.
+     */
+    checkok(md = EVP_get_digestbyname(mdalg));
+
+    /*
+     * Sanity check: Newer shared libraries could (hypothetical ABI break)
+     * allow larger digests, we avoid such poison algorithms.
+     */
+    checkok(EVP_MD_size(md) <= EVP_MAX_MD_SIZE);
+    checkok(mdctx = EVP_MD_CTX_new());
+    checkok(EVP_DigestInit_ex(mdctx, md, NULL));
+
+
+    if (ok && mdctxPtr != 0)
+       *mdctxPtr = mdctx;
+    else
+       EVP_MD_CTX_free(mdctx);
+    return (ok ? md : 0);
+}
+
 /* tls_serverid_digest - suffix props->serverid with parameter digest */
 
 char   *tls_serverid_digest(const TLS_CLIENT_START_PROPS *props, long protomask,
                                    const char *ciphers)
 {
     EVP_MD_CTX *mdctx;
-    const EVP_MD *md;
     const char *mdalg;
     unsigned char md_buf[EVP_MAX_MD_SIZE];
     unsigned int md_len;
@@ -181,17 +234,17 @@ char   *tls_serverid_digest(const TLS_CLIENT_START_PROPS *props, long protomask,
      * default digest, but DANE requires sha256 and sha512, so if we must
      * fall back to our default digest, DANE support won't be available.  We
      * panic if the fallback algorithm is not available, as it was verified
-     * available in tls_client_init() and must not simply vanish.
+     * available in tls_client_init() and must not simply vanish.  Our
+     * provider set is not expected to change once the OpenSSL library is
+     * initialized.
      */
-    if ((md = EVP_get_digestbyname(mdalg = "sha256")) == 0
-       && (md = EVP_get_digestbyname(mdalg = props->mdalg)) == 0)
-       msg_panic("digest algorithm \"%s\" not found", mdalg);
+    if (tls_digest_byname(mdalg = LN_sha256, &mdctx) == 0
+       && tls_digest_byname(mdalg = props->mdalg, &mdctx) == 0)
+       msg_panic("digest algorithm \"%s\" not found", props->mdalg);
 
     /* Salt the session lookup key with the OpenSSL runtime version. */
     sslversion = OpenSSL_version_num();
 
-    mdctx = EVP_MD_CTX_create();
-    checkok(EVP_DigestInit_ex(mdctx, md, NULL));
     digest_string(props->helo ? props->helo : "");
     digest_object(&sslversion);
     digest_object(&protomask);
@@ -284,18 +337,15 @@ char   *tls_digest_encode(const unsigned char *md_buf, int md_len)
 
 char   *tls_data_fprint(const char *buf, int len, const char *mdalg)
 {
-    EVP_MD_CTX *mdctx;
-    const EVP_MD *md;
+    EVP_MD_CTX *mdctx = NULL;
     unsigned char md_buf[EVP_MAX_MD_SIZE];
     unsigned int md_len;
     int     ok = 1;
 
     /* Previously available in "init" routine. */
-    if ((md = EVP_get_digestbyname(mdalg)) == 0)
+    if (tls_digest_byname(mdalg, &mdctx) == 0)
        msg_panic("digest algorithm \"%s\" not found", mdalg);
 
-    mdctx = EVP_MD_CTX_create();
-    checkok(EVP_DigestInit_ex(mdctx, md, NULL));
     digest_data(buf, len);
     checkok(EVP_DigestFinal_ex(mdctx, md_buf, &md_len));
     EVP_MD_CTX_destroy(mdctx);
index c2b1121019468880660397e85f1101f1c3cae62b..410b6ce9ba9968fc300da3492a859e42b6466efc 100644 (file)
@@ -1516,7 +1516,6 @@ long    tls_bio_dump_cb(BIO *bio, int cmd, const char *argp, int argi,
 int     tls_validate_digest(const char *dgst)
 {
     const EVP_MD *md_alg;
-    unsigned int md_len;
 
     /*
      * Register SHA-2 digests, if implemented and not already registered.
@@ -1524,15 +1523,15 @@ int     tls_validate_digest(const char *dgst)
      * deploy SHA-2 certificates.  Also facilitates DANE and TA support.
      */
 #if defined(LN_sha256) && defined(NID_sha256) && !defined(OPENSSL_NO_SHA256)
-    if (!EVP_get_digestbyname(LN_sha224))
+    if (!tls_digest_byname(LN_sha224, NULL))
        EVP_add_digest(EVP_sha224());
-    if (!EVP_get_digestbyname(LN_sha256))
+    if (!tls_digest_byname(LN_sha256, NULL))
        EVP_add_digest(EVP_sha256());
 #endif
 #if defined(LN_sha512) && defined(NID_sha512) && !defined(OPENSSL_NO_SHA512)
-    if (!EVP_get_digestbyname(LN_sha384))
+    if (!tls_digest_byname(LN_sha384, NULL))
        EVP_add_digest(EVP_sha384());
-    if (!EVP_get_digestbyname(LN_sha512))
+    if (!tls_digest_byname(LN_sha512, NULL))
        EVP_add_digest(EVP_sha512());
 #endif
 
@@ -1540,19 +1539,10 @@ int     tls_validate_digest(const char *dgst)
      * If the administrator specifies an unsupported digest algorithm, fail
      * now, rather than in the middle of a TLS handshake.
      */
-    if ((md_alg = EVP_get_digestbyname(dgst)) == 0) {
+    if ((md_alg = tls_digest_byname(dgst, NULL)) == 0) {
        msg_warn("Digest algorithm \"%s\" not found", dgst);
        return (0);
     }
-
-    /*
-     * Sanity check: Newer shared libraries may use larger digests.
-     */
-    if ((md_len = EVP_MD_size(md_alg)) > EVP_MAX_MD_SIZE) {
-       msg_warn("Digest algorithm \"%s\" output size %u too large",
-                dgst, md_len);
-       return (0);
-    }
     return (1);
 }
 
index 92f6a833779e162b16fd94d12836e0a66da6761d..ad7a4d4e684a4c15129e626dc8bd1e1ca0e31b79 100644 (file)
@@ -477,6 +477,15 @@ TLS_APPL_STATE *tls_server_init(const TLS_SERVER_INIT_PROPS *props)
     if (scache_timeout <= 0)
        cachable = 0;
 
+    /*
+     * Presently we use TLS only with SMTP where truncation attacks are not
+     * possible as a result of application framing.  If we ever use TLS in
+     * some other application protocol where truncation could be relevant,
+     * we'd need to disable truncation detection conditionally, or explicitly
+     * clear the option in that code path.
+     */
+    off |= SSL_OP_IGNORE_UNEXPECTED_EOF;
+
     /*
      * Protocol work-arounds, OpenSSL version dependent.
      */
index d3bd10317fa28d2d25d27334557b85088b93e0fb..2259f12d40f0a587fdde20336bc901425377bed8 100644 (file)
@@ -659,8 +659,8 @@ void    dict_cache_close(DICT_CACHE *cp)
     /*
      * Destroy the DICT_CACHE object.
      */
-    myfree(cp->name);
     dict_cache_control(cp, DICT_CACHE_CTL_INTERVAL, 0, DICT_CACHE_CTL_END);
+    myfree(cp->name);
     dict_close(cp->db);
     if (cp->saved_curr_key)
        myfree(cp->saved_curr_key);
index c54a5268b82ee0480902e205586fb054b4acf735..f6a53dea687a0ecee037c574f380e39b5c531374 100644 (file)
@@ -80,6 +80,12 @@ extern int strncasecmp_utf8x(int, const char *, const char *, ssize_t);
 #define strncasecmp_utf8(s1, s2, l) \
     strncasecmp_utf8x(util_utf8_enable ? CASEF_FLAG_UTF8 : 0, (s1), (s2), (l))
 
+ /*
+  * Use STRREF(x) instead of x, to shut up compiler warnings when the operand
+  * is a string literal.
+  */
+#define STRREF(x)              (&x[0])
+
 /* LICENSE
 /* .ad
 /* .fi
index 5de585504c3d7a62263236397925f58a2779714e..f38bd153206129e3451fb66a568d777467360c5a 100644 (file)
@@ -749,7 +749,8 @@ extern int initgroups(const char *, int);
  /*
   * LINUX.
   */
-#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5)
+#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5) \
+       || defined(LINUX6)
 #define SUPPORTED
 #define UINT32_TYPE    unsigned int
 #define UINT16_TYPE    unsigned short