函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\printk\printk.c Create Date:2022-07-27 11:05:52
首页 Copyright©Brick

666
667
668
669
670
671
672
673
674
675
676
static int syslog_action_restricted(int type)
{
    if (dmesg_restrict)
        return 1;
    /*
     * Unless restricted, we allow "read all" and "get buffer size"
     * for everybody.
     */
    return type != SYSLOG_ACTION_READ_ALL &&
           type != SYSLOG_ACTION_SIZE_BUFFER;
}