A wall surrounds the hair gotten stuck inside the follicle. The cells that make up this wall secrete protein and keratin. The drainage of discharges inside the cyst can cause a foul odor.