函数逻辑报告 |
Source Code:security\device_cgroup.c |
Create Date:2022-07-27 21:52:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Modify the exception list using allow/deny rules
函数原型:static int devcgroup_update_access(struct dev_cgroup *devcgroup, int filetype, char *buffer)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct dev_cgroup * | devcgroup | |
| int | filetype | |
| char * | buffer |
| 600 | rc等于0 |
| 602 | parent等于css_to_devcgroup(PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.) |
| 613 | 当:filetype恒等于DEVCG_ALLOW |
| 617 | 如果非may_allow_all - checks if it's possible to change the behavior to* allow based on parent's rules.*@parent: device cgroup's parent* returns: != 0 in case it's allowed, 0 otherwise则返回:负EPERM |
| 628 | 退出 |
| 629 | 当:filetype恒等于DEVCG_DENY |
| 635 | 退出 |
| 636 | 默认 |
| 637 | 返回:负EINVAL |
| 639 | 返回:0 |
| 641 | type等于DEVCG_DEV_BLOCK |
| 642 | 退出 |
| 644 | type等于DEVCG_DEV_CHAR |
| 645 | 退出 |
| 646 | 默认 |
| 647 | 返回:负EINVAL |
| 649 | b自加 |
| 650 | 如果非Note: isspace() must return false for %NUL-terminator ( * b)则返回:负EINVAL |
| 652 | b自加 |
| 653 | 如果b恒等于'*'则 |
| 656 | 否则如果是数字则 |
| 667 | 否则 |
| 668 | 返回:负EINVAL |
| 672 | b自加 |
| 675 | 如果b恒等于'*'则 |
| 678 | 否则如果是数字则 |
| 689 | 否则 |
| 690 | 返回:负EINVAL |
| 692 | 如果非Note: isspace() must return false for %NUL-terminator ( * b)则返回:负EINVAL |
| 697 | access或等于DEVCG_ACC_READ |
| 698 | 退出 |
| 700 | access或等于DEVCG_ACC_WRITE |
| 701 | 退出 |
| 703 | access或等于DEVCG_ACC_MKNOD |
| 704 | 退出 |
| 709 | 默认 |
| 710 | 返回:负EINVAL |
| 715 | 当:filetype恒等于DEVCG_ALLOW |
| 721 | 如果behavior恒等于DEVCG_DEFAULT_ALLOW则 |
| 726 | 退出 |
| 729 | 如果非parent_has_perm:* when adding a new allow rule to a device exception list, the rule* must be allowed in the parent device则返回:负EPERM |
| 732 | 退出 |
| 733 | 当:filetype恒等于DEVCG_DENY |
| 741 | 否则rc等于alled under devcgroup_mutex |
| 748 | 退出 |
| 749 | 默认 |
| 752 | 返回:rc |
| 名称 | 描述 |
|---|---|
| devcgroup_access_write |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |