All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libgit2: disable NTLM support inconditionally.
@ 2021-05-24 17:33 Nicolas Cavallari
  2021-05-24 17:49 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Cavallari @ 2021-05-24 17:33 UTC (permalink / raw)
  To: buildroot

NTLM is an old authentication protocol depending on DES and MD4 and
its creator, Microsoft, discourage its use since 2010, because it is
weak and vulnerable to many attacks.

libgit2 has support for NTLM and it is enabled by default if openssl
is used, however, since commit a83d41867c8d ("package/libopenssl: add
option to enable some features"), support for DES and MD4 can be
disabled in openssl.

Since openssl is an optional dependency to libgit2 and getting rid of
NTLM is a goal in itself for many windows administrators, disable NTLM
by default.

Fixes: http://autobuild.buildroot.net/results/efb4ce2174cb6944558e895ce852182ba2738a70
Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
---
 package/libgit2/libgit2.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/libgit2/libgit2.mk b/package/libgit2/libgit2.mk
index e5d17fa3dd..668fa758f8 100644
--- a/package/libgit2/libgit2.mk
+++ b/package/libgit2/libgit2.mk
@@ -17,6 +17,7 @@ LIBGIT2_CONF_OPTS = \
 	-DUSE_ICONV=ON \
 	-DREGEX_BACKEND=regcomp \
 	-DUSE_HTTP_PARSER=system \
+	-DUSE_NTLMCLIENT=OFF \
 	-DTHREADSAFE=$(if $(BR2_TOOLCHAIN_HAS_THREADS),ON,OFF)
 
 LIBGIT2_DEPENDENCIES = zlib libhttpparser
-- 
2.32.0.rc0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/libgit2: disable NTLM support inconditionally.
  2021-05-24 17:33 [Buildroot] [PATCH 1/1] package/libgit2: disable NTLM support inconditionally Nicolas Cavallari
@ 2021-05-24 17:49 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2021-05-24 17:49 UTC (permalink / raw)
  To: buildroot

Nicolas, All,

On 2021-05-24 19:33 +0200, Nicolas Cavallari spake thusly:
> NTLM is an old authentication protocol depending on DES and MD4 and
> its creator, Microsoft, discourage its use since 2010, because it is
> weak and vulnerable to many attacks.
> 
> libgit2 has support for NTLM and it is enabled by default if openssl
> is used, however, since commit a83d41867c8d ("package/libopenssl: add
> option to enable some features"), support for DES and MD4 can be
> disabled in openssl.
> 
> Since openssl is an optional dependency to libgit2 and getting rid of
> NTLM is a goal in itself for many windows administrators, disable NTLM
> by default.

I was not entirely sure that was a good idea, because some setups might
still need it (enterprisy environment can be incredibly resistant to
change)... But the, yes, NTLM is bad, so yes, this is a good idea; if
someone is stuck in the past, they can still send a patch to reenable
NTLM with the appropriate select against DES and MD4.

> Fixes: http://autobuild.buildroot.net/results/efb4ce2174cb6944558e895ce852182ba2738a70
> Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>

Applied to next (after fixing a minor typo in the commit title), thanks.

Regards,
Yann E. MORIN.

> ---
>  package/libgit2/libgit2.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/libgit2/libgit2.mk b/package/libgit2/libgit2.mk
> index e5d17fa3dd..668fa758f8 100644
> --- a/package/libgit2/libgit2.mk
> +++ b/package/libgit2/libgit2.mk
> @@ -17,6 +17,7 @@ LIBGIT2_CONF_OPTS = \
>  	-DUSE_ICONV=ON \
>  	-DREGEX_BACKEND=regcomp \
>  	-DUSE_HTTP_PARSER=system \
> +	-DUSE_NTLMCLIENT=OFF \
>  	-DTHREADSAFE=$(if $(BR2_TOOLCHAIN_HAS_THREADS),ON,OFF)
>  
>  LIBGIT2_DEPENDENCIES = zlib libhttpparser
> -- 
> 2.32.0.rc0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-24 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 17:33 [Buildroot] [PATCH 1/1] package/libgit2: disable NTLM support inconditionally Nicolas Cavallari
2021-05-24 17:49 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.