mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
Merge pull request #18478 from mrc0mmand/fix-TEST-06
TEST-06-SELINUX fixes
This commit is contained in:
commit
0c69f2ee26
1
test/TEST-06-SELINUX/systemd_test.fc
Normal file
1
test/TEST-06-SELINUX/systemd_test.fc
Normal file
@ -0,0 +1 @@
|
||||
/usr/lib/systemd/tests/testdata/testsuite-06\.units(/.*)? system_u:object_r:systemd_unit_file_t:s0
|
@ -37,6 +37,7 @@ test_append_files() {
|
||||
mkdir $1/systemd-test-module
|
||||
cp systemd_test.te $1/systemd-test-module
|
||||
cp systemd_test.if $1/systemd-test-module
|
||||
cp systemd_test.fc $1/systemd-test-module
|
||||
dracut_install -o sesearch
|
||||
dracut_install runcon
|
||||
dracut_install checkmodule semodule semodule_package m4 make load_policy sefcontext_compile
|
||||
|
@ -8,7 +8,7 @@ Before=sysinit.target shutdown.target autorelabel.service
|
||||
ConditionSecurity=selinux
|
||||
|
||||
[Service]
|
||||
ExecStart=sh -x -c 'echo 0 >/sys/fs/selinux/enforce && cd /systemd-test-module && make -f /usr/share/selinux/devel/Makefile load'
|
||||
ExecStart=sh -x -c 'echo 0 >/sys/fs/selinux/enforce && cd /systemd-test-module && make -f /usr/share/selinux/devel/Makefile clean load'
|
||||
Type=oneshot
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user