public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 0/2] setpgid: Test EPERM error paths more reliably
@ 2023-04-20 16:09 Teo Couprie Diaz
  2023-04-20 16:09 ` [LTP] [PATCH v2 1/2] setpgid02: Use pid_max as PGID for EPERM Teo Couprie Diaz
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Teo Couprie Diaz @ 2023-04-20 16:09 UTC (permalink / raw)
  To: ltp

The current EPERM case in setpgid02 can fail in systems running the
login shell as init (PID 1).

Change the failing case to fail due to an invalid PGID instead of
a different session, but add a case in setpgid03 to continue
testing this error path in the kernel.

This is because setpgid03 already has the necessary scaffolding ready
by forking and synchronizing with a child that does setsid().


CI Build: https://github.com/Teo-CD/ltp/actions/runs/4756354740

Teo Couprie Diaz (2):
  setpgid02: Use pid_max as PGID for EPERM
  setpgid03: Add test for PGID in different session

 testcases/kernel/syscalls/setpgid/setpgid02.c | 14 +++++++-------
 testcases/kernel/syscalls/setpgid/setpgid03.c |  4 ++++
 2 files changed, 11 insertions(+), 7 deletions(-)

-- 
2.34.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-04-26 12:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20 16:09 [LTP] [PATCH v2 0/2] setpgid: Test EPERM error paths more reliably Teo Couprie Diaz
2023-04-20 16:09 ` [LTP] [PATCH v2 1/2] setpgid02: Use pid_max as PGID for EPERM Teo Couprie Diaz
2023-04-21  7:21   ` Li Wang
2023-04-21  8:04     ` Cyril Hrubis
2023-04-20 16:09 ` [LTP] [PATCH v2 2/2] setpgid03: Add test for PGID in different session Teo Couprie Diaz
2023-04-21  7:47   ` Li Wang
2023-04-26 11:43 ` [LTP] [PATCH v2 0/2] setpgid: Test EPERM error paths more reliably Cyril Hrubis
2023-04-26 12:00   ` Teo Couprie Diaz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox