open16: allow restricted O_CREAT of FIFOs and regular files
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v17 Latest3 patches 1 replyIn review
- v162 patches 11 repliesSuperseded
- v153 patches 3 repliesSuperseded
Earlier versions · 15
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v14 | 3 patches | 1 reply | Superseded | |
| v13 | 3 patches | 5 replies | Superseded | |
| v12 | 3 patches | 11 replies | Superseded | |
| v11 | 2 patches | 3 replies | Superseded | |
| v10 | 2 patches | 1 reply | Superseded | |
| v9 | 2 patches | 1 reply | Superseded | |
| v8 | 2 patches | 3 replies | Superseded | |
| v7 | 2 patches | 1 reply | Superseded | |
| v6 posting 2/2 | 0 of 2 patches | 0 replies | Superseded | |
| v6 posting 1/2 | 2 patches | 1 reply | Superseded | |
| v5 | 1 patch | 1 reply | Superseded | |
| v4 | 1 patch | 1 reply | Superseded | |
| v3 | 1 patch | 1 reply | Superseded | |
| v2 | 1 patch | 1 reply | Superseded | |
| v1 | 1 patch | 1 reply | Superseded |
Changes in v17 from the cover letter
- 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.
Patches in v17 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | lib: New library function tst_get_free_uidinclude/ lib/ | +40 | 1 reply | |
| 2/3 | lib: Add PATH_FS_PROTECTED_REGULAR and PATH_FS_PROTECTED_FIFOSinclude/ | +2 | 0 replies | |
| 3/3 | open16: allow restricted O_CREAT of FIFOs and regular filesruntest/ testcases/ testcases/ | +143 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Andrea Cervesato | Petr Vorel |
|---|---|---|
| 1/3 | R-b | R-b |
| 2/3 | R-b | |
| 3/3 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [LTP] [PATCH v17 0/3] open16: allow restricted O_CREAT of FIFOs and regular files
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
Signature · 5 lines
2.55.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp