get_dmesg_restrict

Function get_dmesg_restrict 

Source
fn get_dmesg_restrict() -> u32
Expand description

获取 dmesg_restrict sysctl 值

§返回值

  • 0 - 允许所有用户读取内核日志
  • 1 - 只允许特权用户读取

§TODO

目前硬编码为 0,需要实现真实的 sysctl 支持。