Skip to content

Fix refpolicy build & build test_policy.pp in Travis

Ondrej Mosnacek selinux 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches8 repliesSuperseded

Changes in v4 from the cover letter

- more fine-grained dev_rw_infiniband_dev() fallback as suggested by Stephen Smalley

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3policy: drop the unneeded userdom_search_generic_user_home_dirs()policy/test_ipc.te policy/test_policy.if policy/test_ptrace.te+2 -80 replies
2/3policy: add fallbacks for Fedora-specific macrospolicy/test_policy.if+22 -00 replies
3/3travis: test building the test policy package.travis.yml policy/Makefile travis-ci/enable-policy.sh +2 more+113 -82 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchStephen Smalley
1/3
2/3
3/3R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH testsuite v4 0/3] Fix refpolicy build & build test_policy.pp in Travis

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/613536331

Changes in v4:
- more fine-grained dev_rw_infiniband_dev() fallback as suggested by Stephen Smalley

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               | 22 +++++++++++--
 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, 134 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
Signature · 1 line
2.23.0