do they provide immunity of any sorts?
Yes - to protect the body against microorganisms. Sebaceous glands secrete acids to form a thin, slightly acidic film on the surface of the skin that acts as a barrier to microbes.
Sebaceous gland
Sebaceous glands are part of the body's integumentary system and serve to protect the body against microorganisms. Sebaceous glands secrete acids that form the acid mantle. This is a thin, slightly acidic film on the surface of the skin that acts as a barrier to microbes that might penetrate the skin. The pH of the skin is between 4.5 and 6.2, an acidity that helps to neutralize the alkaline nature of contaminants.
infection of the sebaceous gland and the formation of pimples Acne any particular place where these glands are found? In humans, sebaceous glands occur on all parts of the skin except the palms of the hands and soles of the feet. when do they develop? They are first visible from the 13th to the 16th week of fetal development then the Sebaceous glands develop from the same tissue that gives rise to the epidermis of the skin. what do they do? They secrete the oily, waxy substance called 'sebum' what purpose does this secretion serve? To lubricate the skin and hair
wiki:7481279
Sebaceous gland [SEP] Immune function and nutrition
Sebaceous glands are part of the body's integumentary system and serve to protect the body against microorganisms. Sebaceous glands secrete acids that form the acid mantle. This is a thin, slightly acidic film on the surface of the skin that acts as a barrier to microbes that might penetrate the skin. The pH of the skin is between 4.5 and 6.2, an acidity that helps to neutralize the alkaline nature of contaminants. Sebaceous lipids help maintain the integrity of the skin barrier and supply vitamin E to the skin.