The invention discloses a duplex stacked
operating system security mechanism. The mechanism comprises the following steps: S1,
system resource classification configuration: carrying out
system resource classification and integrity grade division on
system resources; carrying out credibility marking and forming a protection configuration table; s2, marking management: carrying out integrity marking on the system resources; s3, forming a mapping relation between the integrity mark and the integrity level; issuing the mapping relation from the
user space to the kernel space; issuing the credibility mark and the protection configuration table from the
user space to the kernel space; s4, when the
software runs, judging whether the
software is
system software or not; if yes, trusted measurement is carried out, and the step S5 is carried out after success; if the measurement is not successful, directly ending; if the
software is not the
system software, directly entering the step S5; and S5, carrying out integrity
verification on the software, if the
verification is successful, allowing the software to access, and if the
verification is not successful, directly ending.