get_dmesg_restrict
os
0.1.0
get_
dmesg_
restrict
Sections
返回值
TODO
In os::
kernel::
syscall::
util
os
::
kernel
::
syscall
::
util
Function
get_
dmesg_
restrict
Copy item path
Source
fn get_dmesg_restrict() -> u32
Expand description
获取 dmesg_restrict sysctl 值
§
返回值
0
- 允许所有用户读取内核日志
1
- 只允许特权用户读取
§
TODO
目前硬编码为 0,需要实现真实的 sysctl 支持。