[LTP] [PATCH v2 09/10] Add setxattrat01 test
Cyril Hrubis
chrubis@suse.cz
Wed Oct 8 11:44:57 CEST 2025
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
More information about the ltp
mailing list