函数逻辑报告 |
Source Code:security\tomoyo\file.c |
Create Date:2022-07-27 21:10:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_path_number_perm - Check permission for "create", "mkdir", "mkfifo", "mksock", "ioctl", "chmod", "chown", "chgrp".*@type: Type of operation.*@path: Pointer to "struct path".*@number: Number.* Returns 0 on success, negative value otherwise.
函数原型:int tomoyo_path_number_perm(const u8 type, const struct path *path, unsigned long number)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const u8 | type | |
const struct path * | path | |
unsigned long | number |
712 | struct tomoyo_obj_info obj = { First pathname. Initialized with { NULL, NULL } if no path. = {mnt = mnt, dentry = dentry}, } |
719 | 如果tomoyo_init_request_info( & r, NULL, Mapping table from "enum tomoyo_path_number_acl_index" to* "enum tomoyo_mac_index".[type])恒等于TOMOYO_CONFIG_DISABLED或非dentry则返回:0 |
722 | idx等于moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). |
723 | 如果非moyo_get_realpath - Get realpath.*@buf: Pointer to "struct tomoyo_path_info".*@path: Pointer to "struct path".* Returns true on success, false otherwise.则转到:out |
725 | For holding parameters specific to operations which deal files.* NULL if not dealing files.等于obj |
732 | 循环 |
736 | 释放内存 |
737 | out : |
739 | 如果One of tomoyo_mode_index . 不等于TOMOYO_CONFIG_ENFORCING则error等于0 |
741 | 返回:error |
名称 | 描述 |
---|---|
tomoyo_path_mkdir | moyo_path_mkdir - Target for security_path_mkdir().*@parent: Pointer to "struct path".*@dentry: Pointer to "struct dentry".*@mode: DAC permission mode.* Returns 0 on success, negative value otherwise. |
tomoyo_path_mknod | moyo_path_mknod - Target for security_path_mknod().*@parent: Pointer to "struct path".*@dentry: Pointer to "struct dentry".*@mode: DAC permission mode.*@dev: Device attributes.* Returns 0 on success, negative value otherwise. |
tomoyo_file_ioctl | moyo_file_ioctl - Target for security_file_ioctl().*@file: Pointer to "struct file".*@cmd: Command for ioctl().*@arg: Argument for @cmd.* Returns 0 on success, negative value otherwise. |
tomoyo_path_chmod | moyo_path_chmod - Target for security_path_chmod().*@path: Pointer to "struct path".*@mode: DAC permission mode.* Returns 0 on success, negative value otherwise. |
tomoyo_path_chown | moyo_path_chown - Target for security_path_chown().*@path: Pointer to "struct path".*@uid: Owner ID.*@gid: Group ID.* Returns 0 on success, negative value otherwise. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |