Selflessness can help individuals feel more confident and less hostile when faced with stress, researchers report.