The invention discloses a dynamic link
library integrity measuring method under a perlink mechanism. The method comprises the steps that firstly, a Linux integrity measuring enabling switch is turned off, an integrity maintaining mode is achieved, and a file to be measured is extracted; secondly, whether the measured file belongs to a dynamic link
library file or not is detected, and if yes, the displacement position and length of a
code segment in the dynamic link
library file in the file are extracted and sent to a measurement function, and the
reference measurement value is calculated and stored; thirdly, an integrity
verification mode is achieved, when a file loaded by the
system is the file to be measured, whether the file belongs to the dynamic link library file or not is detected, if yes, the displacement position and length of a
code segment in the dynamic link library file in the file are extracted and sent to the measurement function, the measurement value is calculated and compared with the
reference measurement value, if the measurement value is matched with the
reference measurement value, loading executing is allowed, and if the measurement value is not matched with the reference measurement value, loading executing is refused. The
integrity measurement can be carried out on the dynamic link library file without closing a prelink tool.