UID/GID lookup fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | chmod05, fchmod05: Use free GID instead of "bin" grouptestcases/ testcases/ | +8 | 1 reply | |
| 2/7 | Simplify syscalls/mkdir02testcases/ | +24 | 1 reply | |
| 3/7 | Add user/group ID lookup helper functionsinclude/ include/ lib/ | +123 | 1 reply | |
| 3/7 | Add user/group ID lookup helper functions | +0 | 0 replies | |
| 4/7 | syscalls/kill05: Use any two unprivileged userstestcases/ | +10 | 1 reply | |
| 4/7 | syscalls/kill05: Use any two unprivileged users | +0 | 2 replies | |
| 4/7 | syscalls/kill05: Use any two unprivileged users | +0 | 1 reply | |
| 4/7 | syscalls/kill05: Use any two unprivileged users | +0 | 0 replies | |
| 5/7 | syscalls/mkdir04: Simplify test and use any existing userstestcases/ | +8 | 0 replies | |
| 6/7 | syscalls/setregid02-04: Simplify GID handlingtestcases/ testcases/ testcases/ | +61 | 0 replies | |
| 7/7 | syscalls/setregid02-04: Eliminate named group lookupstestcases/ testcases/ testcases/ | +58 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [LTP] [PATCH 0/7] UID/GID lookup fixes
Some LTP tests assume that certain user/group names exist on all systems. That is not true and those tests fail as a result.
This patchset replaces lookups of specific named users/groups with either some unused group ID or any existing user/group IDs, depending on test scenario. There are more tests with the same issue but they also require porting to the new LTP API. I'll submit those later one by one.
Martin Doucha (7):
chmod05, fchmod05: Use free GID instead of "bin" group Simplify syscalls/mkdir02
Add user/group ID lookup helper functions syscalls/kill05: Use any two unprivileged users syscalls/mkdir04: Simplify test and use any existing users syscalls/setregid02-04: Simplify GID handling syscalls/setregid02-04: Eliminate named group lookups
include/tst_safe_macros.h | 6 ++ include/tst_uid.h | 17 +++ lib/tst_uid.c | 100 ++++++++++++++++++ testcases/kernel/syscalls/chmod/chmod05.c | 7 +- testcases/kernel/syscalls/fchmod/fchmod05.c | 7 +- testcases/kernel/syscalls/kill/kill05.c | 23 ++-- testcases/kernel/syscalls/mkdir/mkdir02.c | 77 +++++--------- testcases/kernel/syscalls/mkdir/mkdir04.c | 30 ++---- .../kernel/syscalls/setregid/setregid02.c | 75 ++++++------- .../kernel/syscalls/setregid/setregid03.c | 92 +++++++--------- .../kernel/syscalls/setregid/setregid04.c | 58 +++++----- 11 files changed, 279 insertions(+), 213 deletions(-)
Signature · 1 line
2.33.0