函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bad_option

函数原型:static int bad_option(struct superblock_security_struct *sbsec, char flag, unsigned int old_sid, unsigned int new_sid)

返回类型:int

参数:

类型参数名称
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  如果 which mount options were specified 按位与Non-mount related flags 则如果非 which mount options were specified 按位与flag的值或old_sid不等于new_sid
620  返回:1
625  如果非 which mount options were specified 按位与Non-mount related flags 的值则如果mnt_flags按位与flag
627  返回:1
628  返回:0
调用者
名称描述
selinux_set_mnt_optsAllow filesystems with binary mount data to explicitly set mount point* labeling information.
selinux_sb_remount