Since commit e95fe9503816 ("Add tests for default_range glblub") we look at $(SELINUXFS)/initial_contexts/kernel to determine the type of the policy. However, this node is not provided by the fake selinuxfs created by our CI scripts, leading to non-fatal errors like this: [...] make[1]: Entering directory '/home/travis/build/WOnder93/selinux-testsuite/policy' cat: /tmp/fake-selinuxfs/initial_contexts/kernel: No such file or directory [...] Create that node and fill it with the ussual kernel context to silence the errors. Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx> --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 18ab6b9..ae08c66 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,6 +55,8 @@ before_install: # establish a fake "selinuxfs" mount (policy/Makefile just greps for selinuxfs) - mkdir -p /tmp/fake-selinuxfs/policy_capabilities - echo 1 > /tmp/fake-selinuxfs/policy_capabilities/extended_socket_class + - mkdir -p /tmp/fake-selinuxfs/initial_contexts + - echo system_u:system_r:kernel_t:s0 > /tmp/fake-selinuxfs/initial_contexts/kernel - echo 999 >/tmp/fake-selinuxfs/policyvers script: -- 2.26.2