the only reason a bear should be getting into your pack is for food or because hes mauling you. So just keep zip lock bags in your pack and keep the food in there and they cant smell it. As for not getting your ass mauled carry two metal pipes or anything that will make a loud noise when you bang them so you dont just stumble into a sleeping bear or a bear with cubs.