函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:security\integrity\ima\ima_template.c Create Date:2022-07-27 22:04:54
首页 Copyright©Brick

164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
static int template_fmt_size(const char *template_fmt)
{
    char c;
    int template_fmt_len = strlen(template_fmt);
    int i = 0, j = 0;
 
    while (i < template_fmt_len) {
        c = template_fmt[i];
        if (c == '|')
            j++;
        i++;
    }
 
    return j + 1;
}