Set the post_status
argument to an array of desired post status strings, or to the string any
to query regardless of status entirely:
$posts = get_posts(array(
'posts_per_page' => -1,
'post_type' => 'post',
'post_status' => array( 'publish', 'private' ),
));