[LTP] [PATCH v17 0/3] open16: allow restricted O_CREAT of FIFOs and regular files

Wei Gao wegao@suse.com
Tue Oct 27 03:48:58 CET 2026


v16->v17:
- lib/tst_uid.c: Align tst_get_free_uid() with tst_get_free_gid_() by
  setting errno = 0 before the loop and combining the check
  (ret == skip || getpwuid(ret)).
- lib/tst_uid.c: Add TERRNO flag (TINFO | TERRNO) when reporting unused UID.
- include/tst_path_defs.h: Split PATH_FS_PROTECTED_REGULAR and
  PATH_FS_PROTECTED_FIFOS into a separate patch preceding open16.
- open16.c: Remove redundant exit(0) call at the end of verify_open().
- Add Reviewed-by tags from Petr Vorel.

Wei Gao (3):
  lib: New library function tst_get_free_uid
  lib: Add PATH_FS_PROTECTED_REGULAR and PATH_FS_PROTECTED_FIFOS
  open16: allow restricted O_CREAT of FIFOs and regular files

 include/tst_path_defs.h                   |   2 +
 include/tst_uid.h                         |  14 +++
 lib/tst_uid.c                             |  26 ++++
 runtest/syscalls                          |   1 +
 testcases/kernel/syscalls/open/.gitignore |   1 +
 testcases/kernel/syscalls/open/open16.c   | 141 ++++++++++++++++++++++
 6 files changed, 185 insertions(+)
 create mode 100644 testcases/kernel/syscalls/open/open16.c

-- 
2.55.0



More information about the ltp mailing list