Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christian Göttsche and committed by
Paul Moore
75920515 ede17552

+2 -1
+1 -1
security/selinux/include/audit.h
··· 51 51 * @rule: rule to be checked 52 52 * Returns 1 if there are selinux fields specified in the rule, 0 otherwise. 53 53 */ 54 - int selinux_audit_rule_known(struct audit_krule *krule); 54 + int selinux_audit_rule_known(struct audit_krule *rule); 55 55 56 56 #endif /* _SELINUX_AUDIT_H */ 57 57
+1
security/selinux/include/avc.h
··· 104 104 105 105 /** 106 106 * avc_audit - Audit the granting or denial of permissions. 107 + * @state: SELinux state 107 108 * @ssid: source security identifier 108 109 * @tsid: target security identifier 109 110 * @tclass: target security class