rapido-linux / rapido

Quickly test Linux kernel changes
GNU Lesser General Public License v2.1
22 stars 22 forks source link

Keyctl runner and fstests PAM/su support #203

Closed ddiss closed 1 year ago

ddiss commented 1 year ago

This has been on my todo list for some time, to ensure that we get better fstests coverage - a bunch of tests make use of the fsgqa users and groups. I recall seeing some need for this withing ltp too, but have left it as-is for now - @pevik do you know what kind of PAM / multi-user setup ltp requires?

The following changes since commit 9f5fa7c2be4cb9cd7b9ba4347eff5a2aaf9c90b2:

  ocfs2: add cut and autorun scripts (2023-02-17 17:07:28 +0100)

are available in the Git repository at:

  https://github.com/ddiss/rapido/ keyctl_and_fstests_su

for you to fetch changes up to cfd2bcb382705ccb65371cf10fa0e5f8ebac85e2:

  cut/fstests_ext4|xfs: add uuidgen (2023-03-11 00:08:23 +0100)

----------------------------------------------------------------
David Disseldorp (7):
      keyctl: cut / autorun for simple key watch / notify
      runtime.vars: add _rt_require_pam_mods helper
      autorun/lib/fstests: add _fstests_users_groups_provision helper
      cut/fstests: use _rt_require_pam_mods helper and install su
      autorun/fstests: call _fstests_users_groups_provision helper
      kernel/config: enable CONFIG_USER_NS
      cut/fstests_ext4|xfs: add uuidgen

 autorun/fstests_btrfs.sh       |  2 ++
 autorun/fstests_btrfs_zoned.sh | 19 +++++--------------
 autorun/fstests_cephfs.sh      | 14 +++-----------
 autorun/fstests_cifs.sh        | 14 +++-----------
 autorun/fstests_exfat.sh       |  7 +------
 autorun/fstests_ext4.sh        |  7 +------
 autorun/fstests_nfs.sh         |  4 +++-
 autorun/fstests_udf.sh         |  7 +------
 autorun/fstests_xfs.sh         |  2 ++
 autorun/keyctl.sh              | 20 ++++++++++++++++++++
 autorun/lib/fstests.sh         | 21 +++++++++++++++++++++
 cut/fstests_btrfs.sh           |  6 ++++--
 cut/fstests_btrfs_zoned.sh     | 18 +++++-------------
 cut/fstests_cephfs.sh          | 18 +++++-------------
 cut/fstests_cifs.sh            |  6 ++++--
 cut/fstests_exfat.sh           |  6 ++++--
 cut/fstests_ext4.sh            |  6 ++++--
 cut/fstests_nfs.sh             |  8 +++++---
 cut/fstests_udf.sh             |  6 ++++--
 cut/fstests_xfs.sh             |  6 ++++--
 cut/keyctl.sh                  | 16 ++++++++++++++++
 kernel/sle12sp1_config         |  2 +-
 kernel/sle12sp2_config         |  2 +-
 kernel/sle12sp2_rbd_usb_config |  2 +-
 kernel/sle12sp3_config         |  2 +-
 kernel/sle15_config            |  2 +-
 kernel/sle15sp1_config         |  2 +-
 kernel/sle15sp2_config         |  2 +-
 kernel/sle15sp3_config         |  2 +-
 kernel/sle15sp4_config         |  2 +-
 kernel/vanilla_config          |  2 +-
 runtime.vars                   | 12 ++++++++++++
 32 files changed, 139 insertions(+), 106 deletions(-)
 create mode 100755 autorun/keyctl.sh
 create mode 100755 cut/keyctl.sh
ddiss commented 1 year ago

Merged - thanks for the review Petr!