Hi Sir..Lack of socialization & training can contribute to this behaviour. Discourage dominant behaviours.Use positive reinforcement training. Reward your pet for good behaviour.
If your pet does not believe in sharing is caring & starts snapping at anyone who approaches their kibble. The trick is to help them realize that no one is trying to take away their food. Start slowly, by standing near them while they eat, until they get comfortable enough for you to pet them during meals.
If your pet has suddenly started exhibiting aggressive tendencies when that's not their usual temperament, then it might have some underlying condition causing pain..You can get your pet examined by a vet..
Do you mean dog is aggressive while eating?
Teach him wait/stay command. Watch YouTube for how. Put food in front of him and ask him to wait.
Slowly, start petting him and eventually put your hand in his bowl while he is eating.
Take baby steps, don't rush into it