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