MAC/do: parse_rules(): Copy input string on its own
Since all callers have to do it, save them that burden and do it in
parse_rules() instead.
While here, replace "strlen(x) == 0" with the simpler and more efficient
"x[0] == '\0'".
Reviewed by: bapt
Approved by: markj (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47591