Skip to contentSkip to conversation

common/dump: add explicit requirement for specific users and groups

PATCH New Anthony Iliopoulos 1 participant 1 message Jan 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common/dump: add explicit requirement for specific users and groups

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.

---
 common/dump | 5 +++++
 1 file changed, 5 insertions(+)
common/dump +5 -0
index 3c4029ff1f37..ea16d442cb4f 100644
@@ -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
 
Signature · 1 line
2.34.1