public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Handle running make check in a restricted environment
@ 2022-06-26 20:59 Mark Wielaard
  2022-06-26 20:59 ` [PATCH 1/4] time/tst-clock2.c: clock_settime CLOCK_MONOTONIC might return EPERM Mark Wielaard
                   ` (3 more replies)
  0 siblings, 4 replies; 29+ messages in thread
From: Mark Wielaard @ 2022-06-26 20:59 UTC (permalink / raw)
  To: libc-alpha

Hi,

A couple of tests fail in a restricted environment, like when running
under a systemd service or container with a seccomp filter set. Detect
such environments and mark the test as UNSUPPORTED instead of failing.

The following 4 patches are needed to get glibc-fedora-x86_64 builder,
which runs as a container, to zero FAIL:
https://builder.sourceware.org/buildbot/#/builders/glibc-fedora-x86_64

- time/tst-clock2.c: clock_settime CLOCK_MONOTONIC might return EPERM
- tst-pkey.c: Handle no permission to alloc memory protection keys
- tst-pidfd.c: Test is UNSUPPORTED without
  PTRACE_MODE_ATTACH_REALCREDS
- tst-personality.c: Handle personality failing with errno EPERM

Patches also available at:
https://code.wildebeest.org/git/user/mjw/glibc/log/?h=container-perms

Cheers,

Mark

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

end of thread, other threads:[~2022-07-01 10:38 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 20:59 Handle running make check in a restricted environment Mark Wielaard
2022-06-26 20:59 ` [PATCH 1/4] time/tst-clock2.c: clock_settime CLOCK_MONOTONIC might return EPERM Mark Wielaard
2022-06-26 21:15   ` Florian Weimer
2022-06-27  9:35     ` Mark Wielaard
2022-06-26 20:59 ` [PATCH 2/4] tst-pkey.c: Handle no permission to alloc memory protection keys Mark Wielaard
2022-06-26 21:17   ` Florian Weimer
2022-06-26 21:40     ` Florian Weimer
2022-06-27  9:50     ` Mark Wielaard
2022-06-27 11:39       ` Florian Weimer
2022-06-27 14:08         ` Mark Wielaard
2022-06-26 20:59 ` [PATCH 3/4] tst-pidfd.c: Test is UNSUPPORTED without PTRACE_MODE_ATTACH_REALCREDS Mark Wielaard
2022-06-26 21:20   ` Florian Weimer
2022-06-27 10:01     ` Mark Wielaard
2022-06-27 11:14       ` Florian Weimer
2022-06-27 11:51         ` Christian Brauner
2022-06-27 14:17           ` Mark Wielaard
2022-06-27 14:21             ` Adhemerval Zanella
2022-06-27 14:25             ` Christian Brauner
2022-06-27 14:42           ` Florian Weimer
2022-06-27 14:57             ` Adhemerval Zanella
2022-06-27 15:08               ` Christian Brauner
2022-06-27 15:14                 ` Adhemerval Zanella
2022-06-27 16:48                   ` Mark Wielaard
2022-06-27 17:03                     ` Adhemerval Zanella
2022-07-01 10:38                       ` Mark Wielaard
2022-06-27 15:03             ` Christian Brauner
2022-06-27 14:23   ` Adhemerval Zanella
2022-06-27 16:36     ` Mark Wielaard
2022-06-26 20:59 ` [PATCH 4/4] tst-personality.c: Handle personality failing with errno EPERM Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).