Landmine attachments are designed as a kind of sheath ... Bundle a large towel or two into the corner of the gym wall or a power rack, and place the barbell inside the bundle.
Sometimes, the barbell is attached to a rack to keep it secure. You can pivot the barbell to work your muscles from various angles. Most gyms now have special landmine attachments that you can ...