Trigger SELinux autorelabel on first boot.

This adds about 30 seconds to my local boot time.

Fixes bug #1179730

Change-Id: I519bb9289236abd43f8eb784768dcab10e2e5754
This commit is contained in:
Steve Baker 2013-05-14 12:03:24 +12:00
parent 6b44b6d274
commit d36ecfb75c

View File

@ -0,0 +1,6 @@
#!/bin/bash
# Without fixing selinux file labels, sshd will run in the kernel_t domain
# instead of the sshd_t domain, making ssh connections fail with
# "Unable to get valid context for <user>" error message
touch /.autorelabel