Skip to content

Commit

Permalink
Merge pull request #2728 from OSInside/parallel_setfiles
Browse files Browse the repository at this point in the history
Allow to run setfiles multi threaded
  • Loading branch information
Conan-Kudo authored Jan 30, 2025
2 parents af9272f + 92cd8fc commit 30356e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kiwi/system/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def set_selinux_file_contexts(self, security_context_file: str) -> None:
Command.run(
[
'chroot', self.root_dir, 'setfiles',
'-F', '-p', '-c', self._find_selinux_policy_file(
'-T0', '-F', '-p', '-c', self._find_selinux_policy_file(
self.xml_state.build_type.get_selinux_policy() or 'targeted'
)
] + exclude + [
Expand Down
2 changes: 1 addition & 1 deletion test/unit/system/setup_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@ def test_set_selinux_file_contexts_new_version(
mock_command.assert_called_once_with(
[
'chroot', 'root_dir',
'setfiles', '-F', '-p',
'setfiles', '-T0', '-F', '-p',
'-c', '/etc/selinux/targeted/policy/policy.some_policy',
'-e', '/proc', '-e', '/sys', '-e', '/dev',
'security_context_file', '/'
Expand Down

0 comments on commit 30356e2

Please sign in to comment.