[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: configure option --disable-root-access does not work
From: |
Thomas Dickey |
Subject: |
Re: configure option --disable-root-access does not work |
Date: |
Sat, 15 Apr 2023 07:48:21 -0400 |
On Sat, Apr 15, 2023 at 08:42:22AM +0200, Sven Joachim wrote:
> The --disable-root-access configure option does not work, due to a
> copy&paste error in configure.in:
>
> ,----
> | ./configure --disable-root-access
> | [...]
> | checking if you want to permit setuid programs to access all files... yes
> | [...]
> `----
>
> The attached patch (and regenerating ./configure) fixes that. :-)
thanks :-)
> Cheers,
> Sven
>
> diff --git a/configure.in b/configure.in
> index c332e045..97a4494a 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -875,7 +875,7 @@ AC_MSG_RESULT($with_root_environ)
> test "x$with_root_environ" = xyes && AC_DEFINE(USE_ROOT_ENVIRON,1,[Define to
> 1 if root is allowed to use ncurses environment])
>
> AC_MSG_CHECKING(if you want to permit setuid programs to access all files)
> -AC_ARG_ENABLE(root-environ,
> +AC_ARG_ENABLE(root-access,
> [ --disable-root-access restrict file-access when running setuid],
> [with_root_access=$enableval],
> [with_root_access=yes])
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature