/* @data: String to parse. @is_not: True if it is "no_keep_domain" entry. @is_delete: True if it is a delete request.  */
int tomoyo_write_domain_keeper_policy(char *data, const bool is_not, const bool is_delete)
/* @data: String to parse. @is_not: True if it is "no_keep_domain" entry. @is_delete: True if it is a delete request.  */
int tomoyo_write_domain_keeper_policy(char *data, const bool is_not, const bool is_delete)
{
	char *cp = strstr(data, " from ");
	if (cp) {
		*cp = '\0';
		return tomoyo_update_domain_keeper_entry(cp + 6, data, is_not,
							 is_delete);
	}
	return tomoyo_update_domain_keeper_entry(data, NULL, is_not, is_delete);
}