Function report |
Source Code:security\apparmor\apparmorfs.c |
Create Date:2022-07-28 19:50:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_create_aafs - create the apparmor security filesystem* dentries created here are released by aa_destroy_aafs* Returns: error on failure
Proto:static int __init aa_create_aafs(void)
Type:int
Parameter:Nothing
2622 | If Not Flag indicating whether initialization completed Then Return 0 |
2625 | If dentry Then |
2631 | aafs_mnt = kern_mount( & aafs_ops) |
2632 | If IS_ERR(aafs_mnt) Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
2643 | If IS_ERR(dent) Then Go to dent_error |
2645 | ns_subload(root_ns) = dent |
2649 | If IS_ERR(dent) Then Go to dent_error |
2651 | ns_subreplace(root_ns) = dent |
2655 | If IS_ERR(dent) Then Go to dent_error |
2657 | ns_subremove(root_ns) = dent |
2661 | If IS_ERR(dent) Then Go to dent_error |
2663 | ns_subrevision(root_ns) = dent |
2666 | mutex_lock_nested( & lock, level) |
2667 | error = Requires: @ns->lock held |
2676 | If IS_ERR(dent) Then Go to dent_error |
2679 | error = aa_mk_null_file(dentry) |
2686 | aa_info_message("AppArmor Filesystem Enabled") |
2687 | Return 0 |
2689 | dent_error : |
2691 | error : |
2693 | AA_ERROR("Error creating AppArmor securityfs\n") |
2694 | Return error |
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 |