Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:21:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smack_inode_getsecurity - get smack xattrs*@inode: the object*@name: attribute name*@buffer: where to put the result*@alloc: duplicate memory* Returns the size of the attribute or an error code
Proto:static int smack_inode_getsecurity(struct inode *inode, const char *name, void **buffer, bool alloc)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| const char * | name | |
| void ** | buffer | |
| bool | alloc |
| 1444 | If strcmp(name, XATTR_SMACK_SUFFIX) == 0 Then isp = Present a pointer to the smack label entry in an inode blob. |
| 1446 | Else |
| 1451 | If s_magic != SOCKFS_MAGIC Then Return -EOPNOTSUPP |
| 1455 | If (sock == NULL || sk == NULL) Then Return -EOPNOTSUPP |
| 1458 | ssp = sk_security |
| 1460 | If strcmp(name, XATTR_SMACK_IPIN) == 0 Then isp = inbound label |
| 1462 | Else if strcmp(name, XATTR_SMACK_IPOUT) == 0 Then isp = outbound label |
| 1464 | Else Return -EOPNOTSUPP |
| 1468 | If alloc Then |
| 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 |