Re: [LTP] [PATCH v2 09/10] Add setxattrat01 test

Cyril Hrubis
2025-10-08T09:44:25Z

Hi!
> +/*\
> + * [Description]
> + *
> + * Test if setxattrat() syscall is correctly following symlink, setting a
> + * xattr on a file.
> + *
> + * [Algorithm]
> + *
> + * - create a file and the symlink pointing to it
> + * - run setxattrat() on the symlink following the pointing file
> + * - verify that file xattr has been set
> + * - verify that symlink xattr has not been set

Shouldn't this be a variant of a setxattr() test?

> + * - run setxattrat() on the symlink with AT_SYMLINK_NOFOLLOW
> + * - verify that file xattr has not been set
> + * - verify that symlink xattr has been set
> + */

And this a variant of lsetxattr() test?

--
Cyril Hrubis
chrubis@suse.cz