Nowadays, SELinux has been widely applied in Linux systems to enforce security policy and provide flexible MAC. However, improperly configured rules in policies may cause illegal operations and serious security problems to the system. Up till now, it is a challenging task to analyze and modify anomalous rules in policy, since policy rules are massive and semantically complex. In this paper, we propose SPRT, an architecture for adjusting SELinux policy automatically to mitigate vulnerabilities caused by misconfigured policy. Based on the features of security description text of the vulnerabilities in CVE repository, we innovatively propose a criteria for classification of vulnerabilities and adjust SELinux policy according to the classification results, providing a new perspective on the field of policy adjustment. SPRT uses NLP techniques to train the prototype network model to automatically classify vulnerabilities into three categories. Furthermore, SPRT constructs a knowledge base to identify the mapping of policy, vulnerabilities and rules to be modified. It helps modify the rules in policy based on the classification results and audit logs to mitigate the potential impact of vulnerabilities. Our evaluation shows SPRT is effective in vulnerability mitigation, both in terms of fixing misconfigured policies and suppressing attacks generated by vulnerabilities. We collect policies in SELinux that involve the file-label mapping relationship, type transition policy rules and type enforcement policy rules, amounting to around 130,000 rules in all. Additionally, we analyze more than 400 security description texts of vulnerabilities. In our experiments, we compare other three supervised learning models with SPRT and demonstrate that SPRT can automatically classify vulnerabilities with a high accuracy of 92.84%. Additionally, SPRT provides effective policy adjustment to mitigate the damage that 90.47% of vulnerabilities resulting from misconfigured policies cause.