Most of the sierra requires either:
Hanging by approved counterbalance method
Sleeping with food, isnt mentioned as acceptable in an regulation that Im aware of. Because there isnt a cannister rule, doesnt mean that there arent food rules. Check the regs.
I have slept with food a lot on the AT. Bears there dont worry me a bit. They want your food, but they will not challenge you to get it. Food is actually safer with you, than hanging for sure. You are safer with your food hanging. Your food, is safer with YOU.
Western bears may be more aggressive for whatever reason. Possibly less abundant natural food sources, droughts, less hunting pressure (national parks), allow them to have less conditioned fear of humans.
Just as bears normally wont challenge you for food in your pack during the day, they are unlikely to go after food in your possession, even at night. If it is a few feet away, they might.
Unfortunately, while extremely rare, the consequences for you could be serious if you get one with a bad attitude. The consequences for the bear, are however worse.
That said, IMO most people do such a poor job of hanging food, it would be in the best interest of the bears, if they just slept with it. It would lessen the bears chances of getting it.
A couple of years ago Mountain Crossings on the AT in GA kept tabs on food bags lost to bears reported by the thruhikers coming thru. ( The NFS instituted a bear can regulation shortly thereafter from March to June every year). At one point that spring the score was : Foodbags lost while hanging about 75 , foodbags lost while sleeping with food...Zero.
Anything less than a perfect hang from the perfect branch, is worse than no hang at all IMO.