audit: make is_audit_feature_set() static
Currently nobody use is_audit_feature_set() outside this file, so make it static. Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
5ee6cfdd11
commit
546093206b
|
@ -119,8 +119,6 @@ enum audit_nfcfgop {
|
||||||
AUDIT_NFT_OP_INVALID,
|
AUDIT_NFT_OP_INVALID,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int is_audit_feature_set(int which);
|
|
||||||
|
|
||||||
extern int __init audit_register_class(int class, unsigned *list);
|
extern int __init audit_register_class(int class, unsigned *list);
|
||||||
extern int audit_classify_syscall(int abi, unsigned syscall);
|
extern int audit_classify_syscall(int abi, unsigned syscall);
|
||||||
extern int audit_classify_arch(int arch);
|
extern int audit_classify_arch(int arch);
|
||||||
|
|
|
@ -1100,7 +1100,7 @@ static inline void audit_log_user_recv_msg(struct audit_buffer **ab,
|
||||||
audit_log_common_recv_msg(NULL, ab, msg_type);
|
audit_log_common_recv_msg(NULL, ab, msg_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
int is_audit_feature_set(int i)
|
static int is_audit_feature_set(int i)
|
||||||
{
|
{
|
||||||
return af.features & AUDIT_FEATURE_TO_MASK(i);
|
return af.features & AUDIT_FEATURE_TO_MASK(i);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue