Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:20:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smack_set_mnt_opts - set Smack specific mount options*@sb: the file system superblock*@mnt_opts: Smack mount options*@kern_flags: mount option from kernel space or user space*@set_kern_flags: where to store converted mount opts* Returns 0 on success, an
Proto:static int smack_set_mnt_opts(struct super_block *sb, void *mnt_opts, unsigned long kern_flags, unsigned long *set_kern_flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct super_block * | sb | |
| void * | mnt_opts | |
| unsigned long | kern_flags | |
| unsigned long * | set_kern_flags |
| 783 | sp = s_security |
| 787 | bool transmute = false |
| 789 | If smk_flags & Superblock flags Then Return 0 |
| 792 | If (i_security == NULL) Then |
| 799 | If Not smack_privileged(Allow MAC configuration or state changes) Then |
| 810 | smk_default = skp |
| 819 | transmute = true |
| 820 | smk_flags |= SMK_SB_UNTRUSTED |
| 824 | smk_flags |= Superblock flags |
| 826 | If opts Then |
| 827 | If fsdefault Then |
| 828 | skp = smk_import_entry(fsdefault, 0) |
| 831 | smk_default = skp |
| 833 | If fsfloor Then |
| 834 | skp = smk_import_entry(fsfloor, 0) |
| 839 | If fshat Then |
| 845 | If fsroot Then |
| 846 | skp = smk_import_entry(fsroot, 0) |
| 851 | If fstransmute Then |
| 852 | skp = smk_import_entry(fstransmute, 0) |
| 856 | transmute = true |
| 865 | If transmute Then |
| 866 | isp = smack_inode(inode) |
| 870 | Return 0 |
| 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 |