[LTP] [PATCH v1] splice10.c: New splice tests involving memfd secret
Wei Gao
wegao@suse.com
Mon Jul 21 16:22:01 CEST 2025
On Wed, Jul 16, 2025 at 09:13:14AM +0200, Andrea Cervesato wrote:
> Hi!
>
> > +{
> > + char buf[1024];
> > + int fd;
> > + int pipefd[2];
> Since we are testing only a failure, it makes sense to create input
> arguments via tst_test.bufs and initialize them in the setup().
> > +
> > + memset(buf, 0xff, sizeof(buf));
> > +
> > + if (!tst_selinux_enforcing())
> Maybe it's better to use tst_selinux_enabled() after merging: https://patchwork.ozlabs.org/project/ltp/patch/20250709-xattr_bug_repr-v3-1-379c2c291bb7@suse.com/
This case need check selinux runing status instead of enable or not.
So i will keep this unchanged for next patch, correct me if any
misunderstanding, thanks :)
More information about the ltp
mailing list