The FDA has deemed safrole to be a carcinogen and dangerous, so it has banned products with this ingredient for the market. However, the commercial file powder doesn’t contain this, so it shouldn’t be illegal. It is always best to check with your local regulations though, as laws may vary.