函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\domain.c Create Date:2022-07-27 21:09:37
Last Modify:2022-05-23 20:14:46 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_dump_page - Dump a page to buffer.*@bprm: Pointer to "struct linux_binprm".*@pos: Location to dump.*@dump: Poiner to "struct tomoyo_page_dump".* Returns true on success, false otherwise.

函数原型:bool tomoyo_dump_page(struct linux_binprm *bprm, unsigned long pos, struct tomoyo_page_dump *dump)

返回类型:bool

参数:

类型参数名称
struct linux_binprm *bprm
unsigned longpos
struct tomoyo_page_dump *dump
904  如果非Contents of "page". Size is PAGE_SIZE.
905  Contents of "page". Size is PAGE_SIZE. 等于分配内存并置零
906  如果非Contents of "page". Size is PAGE_SIZE. 则返回:false
917  如果get_user_pages_remote() - pin user pages in memory*@tsk: the task_struct to use for page fault accounting, or* NULL if faults are not to be recorded小于等于0则返回:false
923  如果page不等于Previously dumped page.
924  offset等于pos取模PAGE_SIZE
930  kaddr等于kmap_atomic(page)
932  Previously dumped page. 等于page
933  memcpy(Contents of "page". Size is PAGE_SIZE. + offset, kaddr + offset, PAGE_SIZE - offset)
935  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr)
939  put_page(page)
941  返回:true
调用者
名称描述
tomoyo_scan_bprmmoyo_scan_bprm - Scan "struct linux_binprm".*@ee: Pointer to "struct tomoyo_execve".*@argc: Length of @argc.*@argv: Pointer to "struct tomoyo_argv".*@envc: Length of @envp.*@envp: Poiner to "struct tomoyo_envp".* Returns true on success, false otherwise.
tomoyo_environmoyo_environ - Check permission for environment variable names.*@ee: Pointer to "struct tomoyo_execve".* Returns 0 on success, negative value otherwise.