• Ondrej Mosnacek's avatar
    selinux: fix wrong buffer types in policydb.c · ae3d8c2e
    Ondrej Mosnacek authored
    Two places used u32 where there should have been __le32.
    
    Fixes sparse warnings:
      CHECK   [...]/security/selinux/ss/services.c
    [...]/security/selinux/ss/policydb.c:2669:16: warning: incorrect type in assignment (different base types)
    [...]/security/selinux/ss/policydb.c:2669:16:    expected unsigned int
    [...]/security/selinux/ss/policydb.c:2669:16:    got restricted __le32 [usertype]
    [...]/security/selinux/ss/policydb.c:2674:24: warning: incorrect type in assignment (different base types)
    [...]/security/selinux/ss/policydb.c:2674:24:    expected unsigned int
    [...]/security/selinux/ss/policydb.c:2674:24:    got restricted __le32 [usertype]
    [...]/security/selinux/ss/policydb.c:2675:24: warning: incorrect type in assignment (different base types)
    [...]/security/selinux/ss/policydb.c:2675:24:    expected unsigned int
    [...]/security/selinux/ss/policydb.c:2675:24:    got restricted __le32 [usertype]
    [...]/security/selinux/ss/policydb.c:2676:24: warning: incorrect type in assignment (different base types)
    [...]/security/selinux/ss/policydb.c:2676:24:    expected unsigned int
    [...]/security/selinux/ss/policydb.c:2676:24:    got restricted __le32 [usertype]
    [...]/security/selinux/ss/policydb.c:2681:32: warning: incorrect type in assignment (different base types)
    [...]/security/selinux/ss/policydb.c:2681:32:    expected unsigned int
    [...]/security/selinux/ss/policydb.c:2681:32:    got restricted __le32 [usertype]
    [...]/security/selinux/ss/policydb.c:2701:16: warning: incorrect type in assignment (different base types)
    [...]/security/selinux/ss/policydb.c:2701:16:    expected unsigned int
    [...]/security/selinux/ss/policydb.c:2701:16:    got restricted __le32 [usertype]
    [...]/security/selinux/ss/policydb.c:2706:24: warning: incorrect type in assignment (different base types)
    [...]/security/selinux/ss/policydb.c:2706:24:    expected unsigned int
    [...]/security/selinux/ss/policydb.c:2706:24:    got restricted __le32 [usertype]
    [...]/security/selinux/ss/policydb.c:2707:24: warning: incorrect type in assignment (different base types)
    [...]/security/selinux/ss/policydb.c:2707:24:    expected unsigned int
    [...]/security/selinux/ss/policydb.c:2707:24:    got restricted __le32 [usertype]
    Signed-off-by: default avatarOndrej Mosnacek <omosnace@redhat.com>
    Reviewed-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
    Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
    ae3d8c2e
policydb.c 70.5 KB