<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 10, 2020 at 12:46 AM Martin Doucha <<a href="mailto:mdoucha@suse.cz">mdoucha@suse.cz</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail_default" style="font-size:small">...</span><br>
<br>
include $(top_srcdir)/include/mk/<a href="http://testcases.mk" rel="noreferrer" target="_blank">testcases.mk</a><br>
<br>
+CFLAGS += $(EFIVAR_CFLAGS)<br>
+LDLIBS += $(EFIVAR_LIBS)<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Where can we get the value of these two variables? Shouldn't we add AC_SUBST() in the m4 file?</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--- a/testcases/kernel/syscalls/ioperm/ioperm02.c<br>
+++ b/testcases/kernel/syscalls/ioperm/ioperm02.c<br>
@@ -22,6 +22,7 @@<br>
#include <pwd.h><br>
#include "tst_test.h"<br>
#include "tst_safe_macros.h"<br>
+#include "tst_secureboot.h"<br>
<br>
#if defined __i386__ || defined(__x86_64__)<br>
#include <sys/io.h><br>
@@ -45,6 +46,10 @@ static struct tcase_t {<br>
<br>
static void setup(void)<br>
{<br>
+ /* ioperm() is restricted under kernel lockdown. */<br>
+ if (tst_lockdown_enabled() || tst_secureboot_enabled() > 0)<br>
+ tst_brk(TCONF, "Kernel is locked down, skip this test");<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">The ioperm02 is an error test for ioperm(), it doesn't matter without the</div><div class="gmail_default" style="font-size:small">lockdown/secure-boot status. Better to remove this from setup().</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">iopl02 as well.</div></div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>