Skip to content

Commit

Permalink
ci: add module storage test
Browse files Browse the repository at this point in the history
Add test to verify modular policies can be successfully installed from
a module storage.

Signed-off-by: Christian Göttsche <[email protected]>
  • Loading branch information
cgzones committed Nov 10, 2024
1 parent 7718b32 commit e5f843d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ jobs:
run: |
make validate
- name: Test module storage
working-directory: ${{ inputs.path }}
shell: bash
if: ${{ matrix.monolithic == 'n' }}
run: |
mkdir -p /tmp/policy_root/var/lib/selinux/refpolicy
/usr/sbin/semodule --noreload --store mls --path /tmp/policy_root --verbose --install *.pp
/sbin/setfiles -c /tmp/policy_root/var/lib/selinux/refpolicy/policy/policy.* /tmp/policy_root/var/lib/selinux/refpolicy/contexts/files/file_contexts
- name: Build docs
working-directory: ${{ inputs.path }}
shell: bash
Expand Down

0 comments on commit e5f843d

Please sign in to comment.