This set of social rules are called norms. Norms are the expectations from people and society as to what are the basic social interactions from one person to another. This can be as simple as saying hello to someone in a given situation, or shaking somebody's hand that you are meeting for the first time.