Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bad_option

Proto:static int bad_option(struct superblock_security_struct *sbsec, char flag, unsigned int old_sid, unsigned int new_sid)

Type:int

Parameter:

TypeParameterName
struct superblock_security_struct *sbsec
charflag
unsigned intold_sid
unsigned intnew_sid
614  mnt_flags = which mount options were specified & Mask for just the mount related flags
617  If which mount options were specified & Non-mount related flags Then If Not ( which mount options were specified & flag) || old_sid != new_sid Then
620  Return 1
625  If Not ( which mount options were specified & Non-mount related flags ) Then If mnt_flags & flag Then
627  Return 1
628  Return 0
Caller
NameDescribe
selinux_set_mnt_optsAllow filesystems with binary mount data to explicitly set mount point* labeling information.
selinux_sb_remount