]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selinux: consistently use u32 as sequence number type in the status code
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 6 Jul 2023 13:23:24 +0000 (15:23 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 18 Jul 2023 22:29:47 +0000 (18:29 -0400)
Align the type with the one used in selinux_notify_policy_change() and
the sequence member of struct selinux_kernel_status.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/include/security.h
security/selinux/status.c

index 665c4e5bae99dc41bf4af812942b817bbbb972af..08840aa0782d2b2246b65e98fe06e7722fec3853 100644 (file)
@@ -376,7 +376,7 @@ struct selinux_kernel_status {
 } __packed;
 
 extern void selinux_status_update_setenforce(int enforcing);
-extern void selinux_status_update_policyload(int seqno);
+extern void selinux_status_update_policyload(u32 seqno);
 extern void selinux_complete_init(void);
 extern struct path selinux_null;
 extern void selnl_notify_setenforce(int val);
index 19ef929a075cb06af660e1b9a35fe3518065ae90..e436e4975adc2714f0de1aad8a79bed08b1436f5 100644 (file)
@@ -101,7 +101,7 @@ void selinux_status_update_setenforce(int enforcing)
  * It updates status of the times of policy reloaded, and current
  * setting of deny_unknown.
  */
-void selinux_status_update_policyload(int seqno)
+void selinux_status_update_policyload(u32 seqno)
 {
        struct selinux_kernel_status   *status;