diff --git a/src/etc/one-context.d/loc-22-ssh_public_key b/src/etc/one-context.d/loc-22-ssh_public_key index 8e2a005..6fb7640 100755 --- a/src/etc/one-context.d/loc-22-ssh_public_key +++ b/src/etc/one-context.d/loc-22-ssh_public_key @@ -60,3 +60,8 @@ fi chown "${USERNAME}": ${AUTH_DIR} ${AUTH_FILE} chmod 600 $AUTH_FILE + +# restore SELinux contexts +if which restorecon &>/dev/null; then + restorecon -R -v "${AUTH_DIR}" +fi diff --git a/src/etc/one-context.d/loc-23-selinux-ssh##rpm b/src/etc/one-context.d/loc-23-selinux-ssh##rpm deleted file mode 100755 index bfc513d..0000000 --- a/src/etc/one-context.d/loc-23-selinux-ssh##rpm +++ /dev/null @@ -1 +0,0 @@ -[ -x /sbin/restorecon ] && restorecon -R -v /root/.ssh