[0/2] Improve tst-ttyname within containers

Message ID 20230612183014.882895-1-adhemerval.zanella@linaro.org
Headers
Series Improve tst-ttyname within containers |

Message

Adhemerval Zanella Netto June 12, 2023, 6:30 p.m. UTC
  The test might fail depending on how the container is configure,
its capabilities, and/or which LSM is enabled and how it is
configured (check the discussion on libc-alpha [1]).

[1] https://sourceware.org/pipermail/libc-alpha/2023-June/148747.html

Adhemerval Zanella (2):
  linux: Split tst-ttyname
  linux: Return unsupported if procfs can not be mount on
    tst-ttyname-namespace

 sysdeps/unix/sysv/linux/Makefile              |   3 +-
 .../{tst-ttyname.c => tst-ttyname-common.c}   | 208 +-----------------
 sysdeps/unix/sysv/linux/tst-ttyname-direct.c  | 110 +++++++++
 .../unix/sysv/linux/tst-ttyname-namespace.c   | 147 +++++++++++++
 4 files changed, 263 insertions(+), 205 deletions(-)
 rename sysdeps/unix/sysv/linux/{tst-ttyname.c => tst-ttyname-common.c} (68%)
 create mode 100644 sysdeps/unix/sysv/linux/tst-ttyname-direct.c
 create mode 100644 sysdeps/unix/sysv/linux/tst-ttyname-namespace.c