Function report |
Source Code:security\apparmor\mount.c |
Create Date:2022-07-28 19:54:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_new_mount
Proto:int aa_new_mount(struct aa_label *label, const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct aa_label * | label | |
const char * | dev_name | |
const struct path * | path | |
const char * | type | |
unsigned long | flags | |
void * | data |
523 | char * buffer = NULL, * dev_buffer = NULL |
524 | bool binary = true |
526 | requires_dev = 0 |
532 | If type Then |
535 | fstype = get_fs_type(type) |
538 | binary = fs_flags & FS_BINARY_MOUNTDATA |
539 | requires_dev = fs_flags & FS_REQUIRES_DEV |
540 | put_filesystem(fstype) |
542 | If requires_dev Then |
553 | buffer = aa_get_buffer(false) |
554 | If Not buffer Then |
558 | If dev_path Then |
559 | dev_buffer = aa_get_buffer(false) |
560 | If Not dev_buffer Then |
567 | Else |
573 | out : |
574 | aa_put_buffer(buffer) |
575 | aa_put_buffer(dev_buffer) |
579 | 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 |