[LTP] [PATCH v5 2/7] Add lsm_get_self_attr01 test

Andrea Cervesato andrea.cervesato@suse.com
Mon Jun 2 18:48:05 CEST 2025


On 6/2/25 18:41, Andrea Cervesato wrote:
> +
> +static inline int verify_enabled_lsm(const char *name)
> +{
> +	int fd;
> +	char *ptr;
> +	char data[BUFSIZ];
> +
> +	if (access(LSM_SYS_FILE, F_OK))
> +		tst_brk(TCONF, "%s file is not present", LSM_SYS_FILE);

@Cyril can you please double check that it's ok? There's the same check 
in lsm_list_modules02 now, because this function is not needed there.

- Andrea



More information about the ltp mailing list