Add home permission check and update read-only filesystem check