函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\loadpin\loadpin.c Create Date:2022-07-27 21:49:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This must be called after early kernel init, since then the rootdev* is available.

函数原型:static void check_pinning_enforcement(struct super_block *mnt_sb)

返回类型:void

参数:

类型参数名称
struct super_block *mnt_sb
72  bool ro = false
78  如果s_bdev
81  ro等于bdev_read_only(s_bdev)
82  bdevname(s_bdev, bdev)
83  打印信息("%s (%u:%u): %s\n", bdev, MAJOR(bd_dev), MINOR( not a kdev_t - it's a search key ), ro ? "read-only" : "writable")
87  否则打印信息("mnt_sb lacks block device, treating as: writable\n")
90  如果非ro
91  如果非register_sysctl_paths(loadpin_sysctl_path, loadpin_sysctl_table)则打印注释信息("sysctl registration failed!\n")
94  否则打印信息("enforcement can be disabled.\n")
96  否则打印信息("load pinning engaged.\n")
调用者
名称描述
loadpin_read_file