[PATCH v14 03/12] selftests/landlock: Test IOCTL support

Günther Noack gnoack at google.com
Fri Apr 19 14:06:32 UTC 2024


On Thu, Apr 18, 2024 at 10:44:00PM -0700, Mickaël Salaün wrote:
> On Fri, Apr 05, 2024 at 09:40:31PM +0000, Günther Noack wrote:
> > +/* Invokes the FS_IOC_GETFLAGS IOCTL and returns its errno or 0. */
> > +static int test_fs_ioc_getflags_ioctl(int fd)
> > +{
> > +	uint32_t flags;
> > +
> > +	if (ioctl(fd, FS_IOC_GETFLAGS, &flags) < 0)
> > +		return errno;
> > +	return 0;
> > +}
> 
> test_fs_ioc_getflags_ioctl() should be moved to the next patch where it
> is used.

Thanks, done.



More information about the Linux-security-module-archive mailing list