Subject: bug#77232: [PATCH] Allow also to get attributes of the terminal line

From: Björn Bidar <[email-masked]>
Date: Wed, 26 Mar 2025 18:00:59 +0200

Werner Fink <[email-masked]> writes:

> as well as support mmap(2) flag MAP_DROPPABLE to allow
> zero memory under memory pressure on newer Linux systems.
>
> Otherwise a `make -k check` fails here in our build environment
> with newer kernels and with /dev/console as physical device.
>
> Signed-off-by: Werner Fink <[email-masked]>
> ---
>  lib-src/seccomp-filter.c | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)
>
> diff --git lib-src/seccomp-filter.c lib-src/seccomp-filter.c
> index d6421f0ebdb..4dda7d8f020 100644
> --- lib-src/seccomp-filter.c
> +++ lib-src/seccomp-filter.c
> @@ -42,6 +42,9 @@ variants of those files that can be used to sandbox Emacs before
>  #include <stdlib.h>
>  #include <stdint.h>
>  #include <stdio.h>
> +/* glibc uses internal an other TCGETS ioctl for its
> +   tcgetattr(3) call with its internal struct termios */
> +#include <asm/termbits.h>
>  #include <time.h>
>
>  #include <asm/prctl.h>
> @@ -64,6 +67,11 @@ variants of those files that can be used to sandbox Emacs before
>  #define ARCH_CET_STATUS 0x3001
>  #endif
>
> +/*
> https://github.com/torvalds/linux/commit/9651fcedf7b92d3f7f1ab179e8ab55b85ee10fc1
> */

Nit pick could you link to kernel.org instead?

The replacement link would be:
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9651fcedf7b92d3f7f1ab179e8ab55b85ee10fc1