archlinuxhardened / selinux

PKGBUILDs to build SELinux enabled packages for Arch Linux
147 stars 25 forks source link

ALPM Hook Multithreading #101

Closed 5265644D61736F6E closed 2 years ago

5265644D61736F6E commented 2 years ago

At selinux-alpm-hook:31 and selinux-alpm-hook:86, restorecon runs on a single thread. Could it run multi-threaded (-T0) so it's more bearable to install and upgrade packages?

I think the generated directory relabeling should take on a structure similar to the package file relabeling so the former can take full advantage of all threads, even when moving to the next directory.

fishilico commented 2 years ago

Thanks for your suggestion. I agree with adding -T0. I did this in commit https://aur.archlinux.org/cgit/aur.git/commit/?h=selinux-alpm-hook&id=4163d5df5929abd136da797806a5e2554e9b7291 and bumped the version to 0.1-4.