selinux: align avc_has_perm_noaudit() prototype with definition
authorPaul Moore <paul@paul-moore.com>
Thu, 21 Dec 2023 22:18:46 +0000 (17:18 -0500)
committerPaul Moore <paul@paul-moore.com>
Fri, 22 Dec 2023 23:09:26 +0000 (18:09 -0500)
A trivial correction to convert an 'unsigned' parameter into an
'unsigned int' parameter so the prototype matches the function
definition.

I really thought that someone submitted a patch for this a few years
ago but sadly I can't find it now.

Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/include/avc.h

index eadae219fa784f34b96baa900eb43284412dd0d6..96a614d47df8d1d67b0b033ebb90954653dfeab7 100644 (file)
@@ -131,7 +131,7 @@ static inline int avc_audit(u32 ssid, u32 tsid, u16 tclass, u32 requested,
 #define AVC_STRICT        1 /* Ignore permissive mode. */
 #define AVC_EXTENDED_PERMS 2 /* update extended permissions */
 int avc_has_perm_noaudit(u32 ssid, u32 tsid, u16 tclass, u32 requested,
-                        unsigned flags, struct av_decision *avd);
+                        unsigned int flags, struct av_decision *avd);
 
 int avc_has_perm(u32 ssid, u32 tsid, u16 tclass, u32 requested,
                 struct common_audit_data *auditdata);