]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: add a custom SELinux file context 18478/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 5 Feb 2021 15:59:38 +0000 (16:59 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 5 Feb 2021 16:08:58 +0000 (17:08 +0100)
commit01da74243d74cbf9610666a0bf868da613e97069
treef7f4d6b10de76f8f72ea3eecde7469fad8e63d8e
parentcd2d8fea141761785195c53658a499006c19210b
test: add a custom SELinux file context

Since the test suite overhaul, the test units are now under
/usr/lib/systemd/tests/testdata/tetsuite-06.units with
system_u:object_r:lib_t context. This causes an AVC denial, since the
systemd unit files are expected to have the
system_u:object_r:systemd_unit_file_t context. Let's fix this by using a
custom file context definition.
test/TEST-06-SELINUX/systemd_test.fc [new file with mode: 0644]
test/TEST-06-SELINUX/test.sh