mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
sync
This commit is contained in:
parent
1df86c567c
commit
98d00263c9
@ -197,7 +197,7 @@ selinux-policy-utils-unload-policy-packages() {
|
||||
fi
|
||||
done
|
||||
if [[ ${#args[@]} -gt 0 ]]; then
|
||||
einfo "Removing the following modules from the ${pt} module store: ${dropped_mods}"
|
||||
einfo "Removing the following modules from the ${pt} module store: ${dropped_mods[*]}"
|
||||
semodule "${root_opts[@]}" -s "${pt}" "${args[@]}"
|
||||
if [[ $? -ne 0 ]]; then
|
||||
ewarn "SELinux module unload failed.";
|
||||
@ -348,6 +348,7 @@ _spu_relabel_with_portage_utils() {
|
||||
if [[ ${#pkgs[@]} -eq 0 ]]; then
|
||||
return 0
|
||||
fi
|
||||
einfo "Relabeling contents of the following packages: ${pkgs[*]}"
|
||||
/usr/bin/qlist -C -d -o -s --showdebug "${pkgs[@]}" | sort -u | sed -e 's#/$##' | /sbin/restorecon -f -
|
||||
}
|
||||
|
||||
@ -359,6 +360,7 @@ _spu_relabel_with_gentoolkit() {
|
||||
if [[ ${#pkgs[@]} -eq 0 ]]; then
|
||||
return 0
|
||||
fi
|
||||
einfo "Relabeling contents of the following packages: ${pkgs[*]}"
|
||||
/usr/bin/equery -C -q files "${pkgs[@]}" | grep -v -x '[[:space:]]*' | /sbin/restorecon -f -
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user