Merge pull request #2 from rbkmoney/autorelabel

Add relabel
This commit is contained in:
Andrey Abramov 2020-04-03 13:36:26 +03:00 committed by GitHub
commit 44f5cc9cdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ parse_args() {
usage usage
exit 1 exit 1
;; ;;
esac esac
done done
} }
@ -100,6 +100,7 @@ main() {
# user_account # user_account
utmp utmp
yum_uuid yum_uuid
relabel
} }
abrt_data() { abrt_data() {
@ -377,9 +378,9 @@ package_manager_cache() {
pam_data() { pam_data() {
verbose "# Remove the PAM data" verbose "# Remove the PAM data"
run "rm -f /var/run/console/*" run "rm -f /var/run/console/*"
run "rm -f /var/run/faillock/*" run "rm -f /var/run/faillock/*"
run "rm -f /var/run/sepermit/*" run "rm -f /var/run/sepermit/*"
verbose verbose
} }
@ -511,6 +512,12 @@ yum_uuid() {
verbose verbose
} }
relabel() {
verbose "# Relabel"
run "rlpkg -ar"
verbose
}
main "$@" main "$@"
exit 0 exit 0