SELinuxProject / selinux-testsuite

This is the upstream SELinux testsuite which is designed as a basic set of regression tests for the SELinux kernel functionality.
GNU General Public License v2.0
54 stars 43 forks source link

Fix a compilation error in binder_common.c with headers of kernel 4.4 #77

Closed Raverstern closed 2 years ago

Raverstern commented 2 years ago

Fix the following compilation error when building with headers of kernel 4.4:

binder_common.c:111:14: error: ‘const struct flat_binder_object’ has no member named ‘hdr’
   switch (obj->hdr.type) {
              ^
binder_common.c:125:38: error: ‘const struct flat_binder_object’ has no member named ‘hdr’
    printf("Unknown header: %u\n", obj->hdr.type);
                                      ^