函数逻辑报告 |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-27 20:51:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:smk_ipv6_port_label - Smack port access table management*@sock: socket*@address: address* Create or update the port list entry
函数原型:static void smk_ipv6_port_label(struct socket *sock, struct sockaddr *address)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct socket * | sock | |
| struct sockaddr * | address |
| 2532 | ssp等于sk_security |
| 2534 | port等于0 |
| 2536 | 如果(address == NULL)则 |
| 2544 | 如果sk不等于socket initialized on 则继续下一循环 |
| 2546 | bound label 等于 inbound label |
| 2547 | utgoing label 等于 outbound label |
| 2549 | 返回 |
| 2556 | 返回 |
| 2560 | port等于ntohs( Transport layer port # ) |
| 2564 | 如果port恒等于0则返回 |
| 2573 | 如果he port number 不等于port或Socket type 不等于type则继续下一循环 |
| 2575 | 如果smk_can_reuse不等于1则 |
| 2579 | he port number 等于port |
| 2580 | socket initialized on 等于sk |
| 2581 | bound label 等于 inbound label |
| 2582 | utgoing label 等于 outbound label |
| 2583 | smk_can_reuse等于0 |
| 2585 | 返回 |
| 2592 | 如果(spp == NULL)则返回 |
| 2595 | he port number 等于port |
| 2596 | socket initialized on 等于sk |
| 2597 | bound label 等于 inbound label |
| 2598 | utgoing label 等于 outbound label |
| 2599 | Socket type 等于type |
| 2600 | smk_can_reuse等于0 |
| 2602 | mutex_lock( & smack_ipv6_lock) |
| 2603 | 添加RCU保护项 |
| 2605 | 返回 |
| 名称 | 描述 |
|---|---|
| smack_inode_setsecurity | smack_inode_setsecurity - set smack xattrs*@inode: the object*@name: attribute name*@value: attribute value*@size: size of the attribute*@flags: unused* Sets the named attribute in the appropriate blob* Returns 0 on success, or an error code |
| smack_socket_bind | smack_socket_bind - record port binding information.*@sock: the socket*@address: the port address*@addrlen: size of the address* Records the label bound to a port.* Returns 0 on success, and error code otherwise |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |