函数逻辑报告 |
Source Code:kernel\auditsc.c |
Create Date:2022-07-27 12:29:54 |
Last Modify:2020-03-17 16:31:21 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:audit_field_compare
函数原型:static int audit_field_compare(struct task_struct *tsk, const struct cred *cred, struct audit_field *f, struct audit_context *ctx, struct audit_names *name)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | tsk | |
const struct cred * | cred | |
struct audit_field * | f | |
struct audit_context * | ctx | |
struct audit_names * | name |
363 | 返回:audit_compare_uid(进程uid, name, f, ctx) |
364 | 当:val恒等于AUDIT_COMPARE_GID_TO_OBJ_GID |
365 | 返回:audit_compare_gid(进程gid, name, f, ctx) |
367 | 返回:audit_compare_uid(有效uid, name, f, ctx) |
369 | 返回:audit_compare_gid(有效gid, name, f, ctx) |
371 | 返回:audit_compare_uid(audit_get_loginuid(tsk), name, f, ctx) |
373 | 返回:audit_compare_uid(保留uid, name, f, ctx) |
375 | 返回:audit_compare_gid(保留gid, name, f, ctx) |
377 | 返回:audit_compare_uid( UID for VFS ops , name, f, ctx) |
379 | 返回:audit_compare_gid( GID for VFS ops , name, f, ctx) |
381 | 当:val恒等于AUDIT_COMPARE_UID_TO_AUID |
382 | 返回:audit_uid_comparator(进程uid, op, audit_get_loginuid(tsk)) |
384 | 当:val恒等于AUDIT_COMPARE_UID_TO_EUID |
385 | 返回:audit_uid_comparator(进程uid, op, 有效uid) |
386 | 当:val恒等于AUDIT_COMPARE_UID_TO_SUID |
387 | 返回:audit_uid_comparator(进程uid, op, 保留uid) |
388 | 当:val恒等于AUDIT_COMPARE_UID_TO_FSUID |
389 | 返回:audit_uid_comparator(进程uid, op, UID for VFS ops ) |
391 | 当:val恒等于AUDIT_COMPARE_AUID_TO_EUID |
392 | 返回:audit_uid_comparator(audit_get_loginuid(tsk), op, 有效uid) |
394 | 当:val恒等于AUDIT_COMPARE_AUID_TO_SUID |
395 | 返回:audit_uid_comparator(audit_get_loginuid(tsk), op, 保留uid) |
397 | 当:val恒等于AUDIT_COMPARE_AUID_TO_FSUID |
398 | 返回:audit_uid_comparator(audit_get_loginuid(tsk), op, UID for VFS ops ) |
401 | 当:val恒等于AUDIT_COMPARE_EUID_TO_SUID |
402 | 返回:audit_uid_comparator(有效uid, op, 保留uid) |
403 | 当:val恒等于AUDIT_COMPARE_EUID_TO_FSUID |
404 | 返回:audit_uid_comparator(有效uid, op, UID for VFS ops ) |
406 | 当:val恒等于AUDIT_COMPARE_SUID_TO_FSUID |
407 | 返回:audit_uid_comparator(保留uid, op, UID for VFS ops ) |
409 | 当:val恒等于AUDIT_COMPARE_GID_TO_EGID |
410 | 返回:audit_gid_comparator(进程gid, op, 有效gid) |
411 | 当:val恒等于AUDIT_COMPARE_GID_TO_SGID |
412 | 返回:audit_gid_comparator(进程gid, op, 保留gid) |
413 | 当:val恒等于AUDIT_COMPARE_GID_TO_FSGID |
414 | 返回:audit_gid_comparator(进程gid, op, GID for VFS ops ) |
416 | 当:val恒等于AUDIT_COMPARE_EGID_TO_SGID |
417 | 返回:audit_gid_comparator(有效gid, op, 保留gid) |
418 | 当:val恒等于AUDIT_COMPARE_EGID_TO_FSGID |
419 | 返回:audit_gid_comparator(有效gid, op, GID for VFS ops ) |
421 | 当:val恒等于AUDIT_COMPARE_SGID_TO_FSGID |
422 | 返回:audit_gid_comparator(保留gid, op, GID for VFS ops ) |
423 | 默认 |
424 | WARN(1, "Missing AUDIT_COMPARE define. Report as a bug\n") |
425 | 返回:0 |
427 | 返回:0 |
名称 | 描述 |
---|---|
audit_filter_rules | Compare a task_struct with an audit_rule. Return 1 on match, 0* otherwise.* If task_creation is true, this is an explicit indication that we are* filtering a task rule at task creation time. This and tsk == current are |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |