These objects are generally considered safe and are hence allowed on board. However, you have to confirm your airliner before this. That is because the safety regulations are updated every quite often and also vary from airline to airline.