I've never even thought about it, just done it! I'm a T1 diabetic, I always have food with me. A bagel with creamcheese is perfect to carry on.
now that you've brought it up, next time it'll probably be taken away from me
I put it in my carry on and have never had an issue.
Maybe if not cream cheese, swiss or something less liquid-like?