selinux: update parameter documentation

security/selinux/include/audit.h:54: warning: Function parameter or member 'krule' not described in 'selinux_audit_rule_known'
security/selinux/include/audit.h:54: warning: Excess function parameter 'rule' description in 'selinux_audit_rule_known'
security/selinux/include/avc.h:130: warning: Function parameter or member 'state' not described in 'avc_audit'

This also bring the parameter name of selinux_audit_rule_known() in sync
between declaration and definition.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Christian Göttsche 2022-05-02 16:01:50 +02:00 committed by Paul Moore
parent ede17552b1
commit 759205151c
2 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,7 @@ int selinux_audit_rule_match(u32 sid, u32 field, u32 op, void *rule);
* @rule: rule to be checked * @rule: rule to be checked
* Returns 1 if there are selinux fields specified in the rule, 0 otherwise. * Returns 1 if there are selinux fields specified in the rule, 0 otherwise.
*/ */
int selinux_audit_rule_known(struct audit_krule *krule); int selinux_audit_rule_known(struct audit_krule *rule);
#endif /* _SELINUX_AUDIT_H */ #endif /* _SELINUX_AUDIT_H */

View File

@ -104,6 +104,7 @@ int slow_avc_audit(struct selinux_state *state,
/** /**
* avc_audit - Audit the granting or denial of permissions. * avc_audit - Audit the granting or denial of permissions.
* @state: SELinux state
* @ssid: source security identifier * @ssid: source security identifier
* @tsid: target security identifier * @tsid: target security identifier
* @tclass: target security class * @tclass: target security class