]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/079: make sure users 'nobody' and 'daemon' exist
authorLuis Henriques <lhenriques@suse.de>
Mon, 27 Sep 2021 10:58:43 +0000 (11:58 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Oct 2021 13:33:34 +0000 (21:33 +0800)
commitdfae4068a8249caf4c96700eefc17cce7e37afbc
treedd5ad7179566d586fd7ea3930411055e95a5952d
parent7a2cdfa745aa66ad8640952dde715b85445d0bf4
generic/079: make sure users 'nobody' and 'daemon' exist

Test 'src/t_immutable' assumes the existence of users 'nobody' and
'daemon' on the system.  If any of these users don't exist, the test will
fail with:

  add_acl(/media/scratch/079/immutable.f) did not set errno == EPERM
  ...

because it tries to set ACLs such as:

  u::rwx,g::rwx,o::rwx,u:daemon:rwx,m::rwx

Use the new _require_user_exists() function to ensure these users exist.

Signed-off-by: Luis Henriques <lhenriques@suse.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/079