This series fixes the remaining test_policy.pp build errors under refpolicy and enables building the test policy under both Fedora policy and refpolicy in Travis CI. Passed Travis run: https://travis-ci.org/WOnder93/selinux-testsuite/builds/613471070 Changes in v3: - drop the first patch, replace with the following: - add patch to replace userdom_search_generic_user_home_dirs() directly with userdom_search_user_home_dirs() - add a fallback for userdom_search_admin_dir() Changes in v2: - report policy version 999 in the fake selinuxfs to force building latest version - install userspace tools and libraries straight from source instead of working around missing features in the Ubuntu builds - install also latest keyutils from source to allow the new 'keys' subtest helpers to build Ondrej Mosnacek (3): policy: drop the unneeded userdom_search_generic_user_home_dirs() policy: add fallbacks for Fedora-specific macros travis: test building the test policy package .travis.yml | 48 ++++++++++++++++++++++++++--- policy/Makefile | 11 ++++--- policy/test_ipc.te | 2 +- policy/test_policy.if | 21 +++++++++++-- policy/test_ptrace.te | 2 +- travis-ci/enable-policy.sh | 10 ++++++ travis-ci/setup-policy-fedora.sh | 33 ++++++++++++++++++++ travis-ci/setup-policy-refpolicy.sh | 19 ++++++++++++ 8 files changed, 133 insertions(+), 13 deletions(-) create mode 100644 travis-ci/enable-policy.sh create mode 100644 travis-ci/setup-policy-fedora.sh create mode 100644 travis-ci/setup-policy-refpolicy.sh -- 2.23.0