From: Wei Gao via ltp <ltp@lists.linux.it>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v17 0/3] open16: allow restricted O_CREAT of FIFOs and regular files
Date: Tue, 27 Oct 2026 02:48:58 +0000 [thread overview]
Message-ID: <20261027024906.31789-1-wegao@suse.com> (raw)
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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2026-10-27 2:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 2:48 Wei Gao via ltp [this message]
2026-10-27 2:48 ` [LTP] [PATCH v17 1/3] lib: New library function tst_get_free_uid Wei Gao via ltp
2026-10-27 7:26 ` [LTP] " linuxtestproject.agent
2026-10-27 2:49 ` [LTP] [PATCH v17 2/3] lib: Add PATH_FS_PROTECTED_REGULAR and PATH_FS_PROTECTED_FIFOS Wei Gao via ltp
2026-10-27 2:49 ` [LTP] [PATCH v17 3/3] open16: allow restricted O_CREAT of FIFOs and regular files Wei Gao via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261027024906.31789-1-wegao@suse.com \
--to=ltp@lists.linux.it \
--cc=wegao@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.