Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:53:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sb_finish_set_opts
Proto:static int sb_finish_set_opts(struct super_block *sb)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct super_block * | sb |
539 | sbsec = s_security |
542 | rc = 0 |
544 | If labeling behavior == use xattr Then |
551 | pr_warn("SELinux: (dev %s, type %s) has no xattr support\n", Informational name , name) |
553 | rc = -EOPNOTSUPP |
554 | Go to out |
557 | rc = __vfs_getxattr(root, root_inode, XATTR_NAME_SELINUX, NULL, 0) |
559 | If rc == -EOPNOTSUPP Then pr_warn("SELinux: (dev %s, type %s) has no security xattr handler\n", Informational name , name) |
563 | Else pr_warn("SELinux: (dev %s, type %s) getxattr errno %d\n", Informational name , name, - rc) |
567 | Go to out |
578 | If selinux_is_sblabel_mnt(sb) Then which mount options were specified |= SBLABEL_MNT |
580 | Else which mount options were specified &= ~SBLABEL_MNT |
584 | rc = inode_doinit_with_dentry(root_inode, root) |
597 | spin_unlock( & isec_lock) |
599 | If inode Then |
600 | If Not IS_PRIVATE(inode) Then inode_doinit(inode) |
602 | put an inode |
606 | spin_unlock( & isec_lock) |
607 | out : |
608 | Return rc |
Name | Describe |
---|---|
selinux_set_mnt_opts | Allow filesystems with binary mount data to explicitly set mount point* labeling information. |
selinux_sb_clone_mnt_opts |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |