Strictly speaking, it is illegal to buy things in the dormitory. If you want to buy something, you should contact the school office and give you a certificate, which is usually used by college students to start a business, so that you can get the support of the school. If it's too much trouble, don't go to the school office to open it yourself.
Legal basis: Regulations on Individual Industrial and Commercial Households
Article 2 Citizens with operational ability refer to individual industrial and commercial households registered by the administrative department for industry and commerce in accordance with the provisions of these Regulations.
Individual industrial and commercial households can operate independently or at home.
The legitimate rights and interests of individual industrial and commercial households are protected by law, and no unit or individual may infringe upon them.
Article 4 The State practices the principle of equal market access and fair treatment for individual industrial and commercial households.
If individual industrial and commercial households apply for registration, and the business scope of the application for registration does not belong to the industry prohibited by laws and administrative regulations, the registration authority shall register it according to law.