Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\loadpin\loadpin.c Create Date:2022-07-28 19:55:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This must be called after early kernel init, since then the rootdev* is available.

Proto:static void check_pinning_enforcement(struct super_block *mnt_sb)

Type:void

Parameter:

TypeParameterName
struct super_block *mnt_sb
72  bool ro = false
78  If s_bdev Then
81  ro = bdev_read_only(s_bdev)
82  bdevname(s_bdev, bdev)
83  pr_info("%s (%u:%u): %s\n", bdev, MAJOR(bd_dev), MINOR( not a kdev_t - it's a search key ), ro ? "read-only" : "writable")
87  Else pr_info("mnt_sb lacks block device, treating as: writable\n")
90  If Not ro Then
91  If Not register_sysctl_paths(loadpin_sysctl_path, loadpin_sysctl_table) Then pr_notice("sysctl registration failed!\n")
94  Else pr_info("enforcement can be disabled.\n")
96  Else pr_info("load pinning engaged.\n")
Caller
NameDescribe
loadpin_read_file