You are permitted to take food items through security, but these can sometimes cause delays by blocking the scans on the X-Ray machine. If you can, it’s best to store food in your checked luggage unless you need it for the flight. The rules regarding liquids also apply to food items such as soup and syrup, meaning they must be less than 100ml and stored in a clear plastic bag.