All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] common/dump: add explicit requirement for specific users and groups
@ 2022-01-21 13:58 Anthony Iliopoulos
  0 siblings, 0 replies; only message in thread
From: Anthony Iliopoulos @ 2022-01-21 13:58 UTC (permalink / raw)
  To: fstests

Make the requirement for daemon:sys and bin:bin explicit, so that the
xfs tests that source common/dump and rely on _do_create_dumpdir_fill
and _create_dumpdir_symlinks do not fail on chown when those
users/groups are missing.

Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
---
 common/dump | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/common/dump b/common/dump
index 3c4029ff1f37..ea16d442cb4f 100644
--- a/common/dump
+++ b/common/dump
@@ -27,6 +27,11 @@ fi
 [ "$XFSRESTORE_PROG" = "" ] && _notrun "xfsrestore not found"
 [ "$XFSINVUTIL_PROG" = "" ] && _notrun "xfsinvutil not found"
 
+_require_user_exists daemon
+_require_user_exists bin
+_require_group bin
+_require_group sys
+
 # status returned for not run tests
 NOTRUNSTS=2
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-21 13:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-21 13:58 [PATCH] common/dump: add explicit requirement for specific users and groups Anthony Iliopoulos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.