[LTP] [PATCH] sched: add sched sysctl sanity test
Richard Palethorpe
rpalethorpe@suse.de
Wed Oct 4 11:22:05 CEST 2023
Hello,
Cyril Hrubis <chrubis@suse.cz> writes:
> Hi!
>> Hmm, so I guess that with LSM we are able to open these files R/W but we
>> can stil get EPERM from the write() right? I'm reluctant to add wildcard
>> TCONF on any errno, but I guess that we can add a TST_EXP_FAIL macro
>> version that would have one errno for PASS and one errno for TCONF.
>
> I was thinking about this yesterday and maybe best solution would be to
> introduce a global switch (env variable) that would switch the
> TST_EXP_FAIL() macros to a more forgiving mode so that EINVAL and EPERM
> and possibly a few more errnos would be converted into TCONF
> automatically. What do you think?
It sounds reasonable, I think it would also make sense to have an option
to allow any value in the full errno range.
--
Thank you,
Richard.
More information about the ltp
mailing list