I was going through this page and got a basic question from the link OP has shared, if somebody can help.
Creating custom SELinux policy
.te file and others are generated after sepolicy command was used. But before that, which .te file/ source code was being used to have an allow rule to make mydaemon service work.