Initially some in China might have complained that Buddhist monasticism was a threat to the authority of the state, since the monks were autonomous.
However, Buddhist monks could provide magical or divination services for elite donors, which appealed to the Chinese desire to gain advantages (like prosperity and long life).
Also, Buddhism’s emphasis on ethics appealed to the Confucian predilection for moral instruction.
So the upshot of this is that by the 5th century CE Mahayana Buddhism had already become a fixture in Chinese society.