The practical solution to this is based on humans having multiple long fingers, which bears do not have.[1]
[1] https://bearsaver.com/collections/bear-resistant-food-storag...