Skip to content

open16: allow restricted O_CREAT of FIFOs and regular files

Wei Gao via ltp ltp 18 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v17 Latest3 patches 1 replyIn review
  2. v162 patches 11 repliesSuperseded
  3. v153 patches 3 repliesSuperseded
Earlier versions · 15
VersionPostedPatchesRepliesStatus
v143 patches1 replySuperseded
v133 patches5 repliesSuperseded
v123 patches11 repliesSuperseded
v112 patches3 repliesSuperseded
v102 patches1 replySuperseded
v92 patches1 replySuperseded
v82 patches3 repliesSuperseded
v72 patches1 replySuperseded
v6 posting 2/20 of 2 patches0 repliesSuperseded
v6 posting 1/22 patches1 replySuperseded
v51 patch1 replySuperseded
v41 patch1 replySuperseded
v31 patch1 replySuperseded
v21 patch1 replySuperseded
v11 patch1 replySuperseded

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 filesSizeRepliesApplied
1/3lib: New library function tst_get_free_uidinclude/tst_uid.h lib/tst_uid.c+40 -01 reply
2/3lib: Add PATH_FS_PROTECTED_REGULAR and PATH_FS_PROTECTED_FIFOSinclude/tst_path_defs.h+2 -00 replies
3/3open16: allow restricted O_CREAT of FIFOs and regular filesruntest/syscalls testcases/kernel/syscalls/open/.gitignore testcases/kernel/syscalls/open/open16.c+143 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndrea CervesatoPetr Vorel
1/3R-b R-b
2/3R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v17 thread

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