* [PATCH 1/2] Reformat all the code based on .clang-format
@ 2026-06-03 9:33 Petr Lautrbach
2026-06-03 9:33 ` [PATCH 2/2] Add check_format Github CI job Petr Lautrbach
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Petr Lautrbach @ 2026-06-03 9:33 UTC (permalink / raw)
To: selinux; +Cc: Petr Lautrbach
Commit 0a6b917da08f ("treewide: add .clang-format configuration file")
added .clang-format configuration file from Linux kernel which allows to
make formatting consistent.
For this patch `make format` to reformat all sources. In future it's
expected that new contribution will be checked using `make check-format`
to keep the consistent formatting.
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
---
The patch is big and is available at https://github.com/SELinuxProject/selinux/pull/520
https://github.com/SELinuxProject/selinux/commit/184a4b9dc681c21e3f6459d8a02cce8ceb244fa7
checkpolicy/checkmodule.c | 109 +-
checkpolicy/checkpolicy.c | 502 +-
checkpolicy/fuzz/checkpolicy-fuzzer.c | 39 +-
checkpolicy/module_compiler.c | 265 +-
checkpolicy/module_compiler.h | 26 +-
checkpolicy/parse_util.c | 5 +-
checkpolicy/parse_util.h | 2 +-
checkpolicy/policy_define.c | 1187 +-
checkpolicy/policy_define.h | 6 +-
checkpolicy/queue.c | 13 +-
checkpolicy/queue.h | 7 +-
checkpolicy/test/dismod.c | 361 +-
checkpolicy/test/dispol.c | 181 +-
.../fuzz/selabel_file_compiled-fuzzer.c | 44 +-
libselinux/fuzz/selabel_file_text-fuzzer.c | 34 +-
libselinux/include/selinux/avc.h | 104 +-
libselinux/include/selinux/context.h | 32 +-
libselinux/include/selinux/get_context_list.h | 46 +-
libselinux/include/selinux/get_default_type.h | 6 +-
libselinux/include/selinux/label.h | 75 +-
libselinux/include/selinux/restorecon.h | 50 +-
libselinux/include/selinux/selinux.h | 337 +-
libselinux/src/audit2why.c | 217 +-
libselinux/src/avc.c | 228 +-
libselinux/src/avc_internal.c | 63 +-
libselinux/src/avc_internal.h | 100 +-
libselinux/src/avc_sidtab.c | 26 +-
libselinux/src/avc_sidtab.h | 17 +-
libselinux/src/booleans.c | 41 +-
libselinux/src/callbacks.c | 51 +-
libselinux/src/callbacks.h | 34 +-
libselinux/src/canonicalize_context.c | 14 +-
libselinux/src/checkAccess.c | 61 +-
libselinux/src/check_context.c | 8 +-
libselinux/src/checkreqprot.c | 1 -
libselinux/src/compute_av.c | 54 +-
libselinux/src/compute_create.c | 54 +-
libselinux/src/compute_member.c | 21 +-
libselinux/src/compute_relabel.c | 21 +-
libselinux/src/compute_user.c | 16 +-
libselinux/src/context.c | 72 +-
libselinux/src/context_internal.h | 1 -
libselinux/src/deny_unknown.c | 1 -
libselinux/src/disable.c | 1 -
libselinux/src/enabled.c | 2 -
libselinux/src/fgetfilecon.c | 13 +-
libselinux/src/file_path_suffixes.h | 66 +-
libselinux/src/freecon.c | 3 +-
libselinux/src/freeconary.c | 3 +-
libselinux/src/fsetfilecon.c | 17 +-
libselinux/src/get_context_list.c | 92 +-
libselinux/src/get_context_list_internal.h | 1 -
libselinux/src/get_default_type.c | 4 +-
libselinux/src/get_default_type_internal.h | 1 -
libselinux/src/get_initial_context.c | 13 +-
libselinux/src/getenforce.c | 1 -
libselinux/src/getfilecon.c | 10 +-
libselinux/src/getpeercon.c | 9 +-
libselinux/src/init.c | 16 +-
libselinux/src/is_customizable_type.c | 6 +-
libselinux/src/label.c | 45 +-
libselinux/src/label_backends_android.c | 82 +-
libselinux/src/label_db.c | 97 +-
libselinux/src/label_file.c | 932 +-
libselinux/src/label_file.h | 266 +-
libselinux/src/label_internal.h | 106 +-
libselinux/src/label_media.c | 23 +-
libselinux/src/label_support.c | 25 +-
libselinux/src/label_x.c | 16 +-
libselinux/src/lgetfilecon.c | 9 +-
libselinux/src/load_policy.c | 100 +-
libselinux/src/lsetfilecon.c | 13 +-
libselinux/src/mapping.c | 81 +-
libselinux/src/mapping.h | 18 +-
libselinux/src/matchmediacon.c | 5 +-
libselinux/src/matchpathcon.c | 138 +-
libselinux/src/policyvers.c | 1 -
libselinux/src/procattr.c | 117 +-
libselinux/src/query_user_context.c | 39 +-
libselinux/src/regex.c | 62 +-
libselinux/src/regex.h | 33 +-
libselinux/src/reject_unknown.c | 1 -
.../src/selinux_check_securetty_context.c | 2 +-
libselinux/src/selinux_config.c | 147 +-
libselinux/src/selinux_internal.c | 1 -
libselinux/src/selinux_internal.h | 121 +-
libselinux/src/selinux_netlink.h | 8 +-
libselinux/src/selinux_restorecon.c | 435 +-
libselinux/src/sestatus.c | 68 +-
libselinux/src/setenforce.c | 1 -
libselinux/src/setexecfilecon.c | 9 +-
libselinux/src/setfilecon.c | 13 +-
libselinux/src/setrans_client.c | 80 +-
libselinux/src/setrans_internal.h | 9 +-
libselinux/src/seusers.c | 89 +-
libselinux/src/sha1.c | 339 +-
libselinux/src/sha1.h | 37 +-
libselinux/src/stringrep.c | 45 +-
libselinux/src/validatetrans.c | 17 +-
libselinux/utils/avcstat.c | 33 +-
libselinux/utils/compute_av.c | 9 +-
libselinux/utils/compute_create.c | 12 +-
libselinux/utils/compute_member.c | 6 +-
libselinux/utils/compute_relabel.c | 6 +-
libselinux/utils/getconlist.c | 17 +-
libselinux/utils/getdefaultcon.c | 41 +-
libselinux/utils/getenforce.c | 7 +-
libselinux/utils/getfilecon.c | 4 +-
libselinux/utils/getpidcon.c | 3 +-
libselinux/utils/getpidprevcon.c | 3 +-
libselinux/utils/getpolicyload.c | 12 +-
libselinux/utils/getsebool.c | 8 +-
libselinux/utils/getseuser.c | 14 +-
libselinux/utils/matchpathcon.c | 33 +-
libselinux/utils/policyvers.c | 5 +-
libselinux/utils/sefcontext_compile.c | 135 +-
libselinux/utils/selabel_compare.c | 24 +-
libselinux/utils/selabel_digest.c | 51 +-
.../selabel_get_digests_all_partial_matches.c | 36 +-
libselinux/utils/selabel_lookup.c | 24 +-
libselinux/utils/selabel_lookup_best_match.c | 30 +-
libselinux/utils/selabel_partial_match.c | 17 +-
libselinux/utils/selinux_check_access.c | 12 +-
.../utils/selinux_check_securetty_context.c | 2 +-
libselinux/utils/selinuxexeccon.c | 22 +-
libselinux/utils/setenforce.c | 5 +-
libselinux/utils/togglesebool.c | 9 +-
libselinux/utils/validatetrans.c | 15 +-
libsemanage/example/test_fcontext.c | 32 +-
libsemanage/include/semanage/boolean_record.h | 43 +-
.../include/semanage/booleans_active.h | 30 +-
libsemanage/include/semanage/booleans_local.h | 34 +-
.../include/semanage/booleans_policy.h | 22 +-
libsemanage/include/semanage/context_record.h | 47 +-
libsemanage/include/semanage/debug.h | 22 +-
.../include/semanage/fcontext_record.h | 72 +-
.../include/semanage/fcontexts_local.h | 35 +-
.../include/semanage/fcontexts_policy.h | 30 +-
libsemanage/include/semanage/handle.h | 52 +-
.../include/semanage/ibendport_record.h | 16 +-
.../include/semanage/ibendports_local.h | 8 +-
.../include/semanage/ibendports_policy.h | 11 +-
libsemanage/include/semanage/ibpkey_record.h | 13 +-
libsemanage/include/semanage/ibpkeys_local.h | 8 +-
libsemanage/include/semanage/ibpkeys_policy.h | 11 +-
libsemanage/include/semanage/iface_record.h | 58 +-
.../include/semanage/interfaces_local.h | 34 +-
.../include/semanage/interfaces_policy.h | 22 +-
libsemanage/include/semanage/modules.h | 25 +-
libsemanage/include/semanage/node_record.h | 91 +-
libsemanage/include/semanage/nodes_local.h | 34 +-
libsemanage/include/semanage/nodes_policy.h | 22 +-
libsemanage/include/semanage/port_record.h | 54 +-
libsemanage/include/semanage/ports_local.h | 34 +-
libsemanage/include/semanage/ports_policy.h | 22 +-
libsemanage/include/semanage/seuser_record.h | 52 +-
libsemanage/include/semanage/seusers_local.h | 34 +-
libsemanage/include/semanage/seusers_policy.h | 24 +-
libsemanage/include/semanage/user_record.h | 75 +-
libsemanage/include/semanage/users_local.h | 34 +-
libsemanage/include/semanage/users_policy.h | 22 +-
libsemanage/src/boolean_internal.h | 20 +-
libsemanage/src/boolean_record.c | 62 +-
libsemanage/src/booleans_active.c | 35 +-
libsemanage/src/booleans_activedb.c | 39 +-
libsemanage/src/booleans_file.c | 37 +-
libsemanage/src/booleans_local.c | 41 +-
libsemanage/src/booleans_policy.c | 28 +-
libsemanage/src/booleans_policydb.c | 31 +-
libsemanage/src/compressed_file.c | 69 +-
libsemanage/src/compressed_file.h | 4 +-
libsemanage/src/context_record.c | 61 +-
libsemanage/src/database.c | 75 +-
libsemanage/src/database.h | 124 +-
libsemanage/src/database_activedb.c | 34 +-
libsemanage/src/database_activedb.h | 19 +-
libsemanage/src/database_file.c | 34 +-
libsemanage/src/database_file.h | 21 +-
libsemanage/src/database_join.c | 44 +-
libsemanage/src/database_join.h | 23 +-
libsemanage/src/database_llist.c | 114 +-
libsemanage/src/database_llist.h | 82 +-
libsemanage/src/database_policydb.c | 195 +-
libsemanage/src/database_policydb.h | 83 +-
libsemanage/src/debug.c | 45 +-
libsemanage/src/debug.h | 65 +-
libsemanage/src/direct_api.c | 936 +-
libsemanage/src/direct_api.h | 1 -
libsemanage/src/fcontext_internal.h | 14 +-
libsemanage/src/fcontext_record.c | 117 +-
libsemanage/src/fcontexts_file.c | 43 +-
libsemanage/src/fcontexts_local.c | 65 +-
libsemanage/src/fcontexts_policy.c | 33 +-
libsemanage/src/genhomedircon.c | 347 +-
libsemanage/src/genhomedircon.h | 5 +-
libsemanage/src/handle.c | 84 +-
libsemanage/src/handle.h | 161 +-
libsemanage/src/ibendport_internal.h | 5 +-
libsemanage/src/ibendport_record.c | 30 +-
libsemanage/src/ibendports_file.c | 30 +-
libsemanage/src/ibendports_local.c | 24 +-
libsemanage/src/ibendports_policy.c | 10 +-
libsemanage/src/ibendports_policydb.c | 12 +-
libsemanage/src/ibpkey_internal.h | 5 +-
libsemanage/src/ibpkey_record.c | 34 +-
libsemanage/src/ibpkeys_file.c | 28 +-
libsemanage/src/ibpkeys_local.c | 42 +-
libsemanage/src/ibpkeys_policy.c | 3 +-
libsemanage/src/ibpkeys_policydb.c | 12 +-
libsemanage/src/iface_internal.h | 14 +-
libsemanage/src/iface_record.c | 81 +-
libsemanage/src/interfaces_file.c | 53 +-
libsemanage/src/interfaces_local.c | 39 +-
libsemanage/src/interfaces_policy.c | 28 +-
libsemanage/src/interfaces_policydb.c | 30 +-
libsemanage/src/modules.c | 328 +-
libsemanage/src/modules.h | 22 +-
libsemanage/src/node_internal.h | 18 +-
libsemanage/src/node_record.c | 126 +-
libsemanage/src/nodes_file.c | 46 +-
libsemanage/src/nodes_local.c | 42 +-
libsemanage/src/nodes_policy.c | 28 +-
libsemanage/src/nodes_policydb.c | 29 +-
libsemanage/src/parse_utils.c | 103 +-
libsemanage/src/parse_utils.h | 53 +-
libsemanage/src/policy.h | 61 +-
libsemanage/src/policy_components.c | 82 +-
libsemanage/src/port_internal.h | 18 +-
libsemanage/src/port_record.c | 88 +-
libsemanage/src/ports_file.c | 47 +-
libsemanage/src/ports_local.c | 58 +-
libsemanage/src/ports_policy.c | 28 +-
libsemanage/src/ports_policydb.c | 29 +-
libsemanage/src/semanage_conf.h | 8 +-
libsemanage/src/semanage_store.c | 682 +-
libsemanage/src/semanage_store.h | 62 +-
libsemanage/src/seuser_internal.h | 14 +-
libsemanage/src/seuser_record.c | 92 +-
libsemanage/src/seusers_file.c | 33 +-
libsemanage/src/seusers_local.c | 145 +-
libsemanage/src/seusers_policy.c | 29 +-
libsemanage/src/sha256.c | 396 +-
libsemanage/src/sha256.h | 56 +-
libsemanage/src/user_base_record.c | 99 +-
libsemanage/src/user_extra_record.c | 89 +-
libsemanage/src/user_internal.h | 163 +-
libsemanage/src/user_record.c | 160 +-
libsemanage/src/users_base_file.c | 45 +-
libsemanage/src/users_base_policydb.c | 30 +-
libsemanage/src/users_extra_file.c | 42 +-
libsemanage/src/users_join.c | 16 +-
libsemanage/src/users_local.c | 52 +-
libsemanage/src/users_policy.c | 30 +-
libsemanage/src/utilities.c | 21 +-
libsemanage/src/utilities.h | 23 +-
libsemanage/tests/libsemanage-tests.c | 40 +-
libsemanage/tests/test_bool.c | 52 +-
libsemanage/tests/test_fcontext.c | 58 +-
libsemanage/tests/test_handle.c | 18 +-
libsemanage/tests/test_ibendport.c | 86 +-
libsemanage/tests/test_iface.c | 27 +-
libsemanage/tests/test_node.c | 44 +-
libsemanage/tests/test_other.c | 7 +-
libsemanage/tests/test_port.c | 38 +-
libsemanage/tests/test_semanage_store.c | 38 +-
libsemanage/tests/test_user.c | 16 +-
libsemanage/tests/test_utilities.c | 43 +-
libsemanage/tests/utilities.c | 62 +-
libsemanage/tests/utilities.h | 40 +-
libsepol/cil/include/cil/cil.h | 20 +-
libsepol/cil/src/cil.c | 208 +-
libsepol/cil/src/cil_binary.c | 2139 +-
libsepol/cil/src/cil_binary.h | 66 +-
libsepol/cil/src/cil_build_ast.c | 2198 +-
libsepol/cil/src/cil_build_ast.h | 332 +-
libsepol/cil/src/cil_copy_ast.c | 403 +-
libsepol/cil/src/cil_copy_ast.h | 199 +-
libsepol/cil/src/cil_deny.c | 304 +-
libsepol/cil/src/cil_deny.h | 17 +-
libsepol/cil/src/cil_find.c | 157 +-
libsepol/cil/src/cil_find.h | 4 +-
libsepol/cil/src/cil_flavor.h | 3 +-
libsepol/cil/src/cil_fqn.c | 29 +-
libsepol/cil/src/cil_internal.h | 71 +-
libsepol/cil/src/cil_lexer.h | 2 +-
libsepol/cil/src/cil_list.c | 17 +-
libsepol/cil/src/cil_list.h | 16 +-
libsepol/cil/src/cil_log.c | 23 +-
libsepol/cil/src/cil_log.h | 6 +-
libsepol/cil/src/cil_mem.c | 10 +-
libsepol/cil/src/cil_mem.h | 1 -
libsepol/cil/src/cil_parser.c | 88 +-
libsepol/cil/src/cil_parser.h | 3 +-
libsepol/cil/src/cil_policy.c | 473 +-
libsepol/cil/src/cil_post.c | 685 +-
libsepol/cil/src/cil_reset_ast.c | 18 +-
libsepol/cil/src/cil_resolve_ast.c | 1432 +-
libsepol/cil/src/cil_resolve_ast.h | 82 +-
libsepol/cil/src/cil_stack.c | 7 +-
libsepol/cil/src/cil_stack.h | 13 +-
libsepol/cil/src/cil_strpool.c | 17 +-
libsepol/cil/src/cil_symtab.c | 74 +-
libsepol/cil/src/cil_symtab.h | 25 +-
libsepol/cil/src/cil_tree.c | 79 +-
libsepol/cil/src/cil_tree.h | 34 +-
libsepol/cil/src/cil_verify.c | 639 +-
libsepol/cil/src/cil_verify.h | 47 +-
libsepol/cil/src/cil_write_ast.c | 374 +-
libsepol/cil/src/cil_write_ast.h | 3 +-
libsepol/cil/test/unit/AllTests.c | 66 +-
libsepol/cil/test/unit/CilTest.c | 947 +-
libsepol/cil/test/unit/CilTest.h | 2 +-
libsepol/cil/test/unit/CuTest.c | 206 +-
libsepol/cil/test/unit/CuTest.h | 148 +-
libsepol/cil/test/unit/test_cil.c | 66 +-
libsepol/cil/test/unit/test_cil_build_ast.c | 16702 ++++++++++------
libsepol/cil/test/unit/test_cil_build_ast.h | 52 +-
libsepol/cil/test/unit/test_cil_copy_ast.c | 2196 +-
libsepol/cil/test/unit/test_cil_copy_ast.h | 112 +-
libsepol/cil/test/unit/test_cil_fqn.c | 49 +-
libsepol/cil/test/unit/test_cil_lexer.c | 117 +-
libsepol/cil/test/unit/test_cil_list.c | 138 +-
libsepol/cil/test/unit/test_cil_parser.c | 7 +-
libsepol/cil/test/unit/test_cil_post.c | 734 +-
libsepol/cil/test/unit/test_cil_post.h | 1 -
libsepol/cil/test/unit/test_cil_resolve_ast.c | 16100 ++++++++++-----
libsepol/cil/test/unit/test_cil_resolve_ast.h | 1 -
libsepol/cil/test/unit/test_cil_symtab.c | 17 +-
libsepol/cil/test/unit/test_cil_tree.c | 29 +-
libsepol/cil/test/unit/test_integration.c | 29 +-
libsepol/fuzz/binpolicy-fuzzer.c | 20 +-
libsepol/fuzz/secilc-fuzzer.c | 7 +-
libsepol/include/sepol/boolean_record.h | 41 +-
libsepol/include/sepol/booleans.h | 32 +-
libsepol/include/sepol/context.h | 18 +-
libsepol/include/sepol/context_record.h | 44 +-
libsepol/include/sepol/debug.h | 19 +-
libsepol/include/sepol/errcodes.h | 14 +-
libsepol/include/sepol/handle.h | 10 +-
libsepol/include/sepol/ibendport_record.h | 9 +-
libsepol/include/sepol/ibendports.h | 11 +-
libsepol/include/sepol/ibpkey_record.h | 18 +-
libsepol/include/sepol/ibpkeys.h | 14 +-
libsepol/include/sepol/iface_record.h | 52 +-
libsepol/include/sepol/interfaces.h | 34 +-
libsepol/include/sepol/module.h | 68 +-
libsepol/include/sepol/module_to_cil.h | 3 +-
libsepol/include/sepol/node_record.h | 80 +-
libsepol/include/sepol/nodes.h | 33 +-
libsepol/include/sepol/policydb.h | 64 +-
.../include/sepol/policydb/avrule_block.h | 15 +-
libsepol/include/sepol/policydb/avtab.h | 93 +-
libsepol/include/sepol/policydb/conditional.h | 67 +-
libsepol/include/sepol/policydb/constraint.h | 70 +-
libsepol/include/sepol/policydb/context.h | 36 +-
libsepol/include/sepol/policydb/ebitmap.h | 74 +-
libsepol/include/sepol/policydb/expand.h | 44 +-
libsepol/include/sepol/policydb/flask_types.h | 2 +-
libsepol/include/sepol/policydb/hashtab.h | 42 +-
libsepol/include/sepol/policydb/hierarchy.h | 7 +-
libsepol/include/sepol/policydb/link.h | 6 +-
libsepol/include/sepol/policydb/mls_types.h | 64 +-
libsepol/include/sepol/policydb/module.h | 2 +-
libsepol/include/sepol/policydb/policydb.h | 499 +-
libsepol/include/sepol/policydb/services.h | 147 +-
libsepol/include/sepol/policydb/sidtab.h | 54 +-
libsepol/include/sepol/policydb/symtab.h | 6 +-
libsepol/include/sepol/policydb/util.h | 5 +-
libsepol/include/sepol/port_record.h | 52 +-
libsepol/include/sepol/ports.h | 33 +-
libsepol/include/sepol/sepol.h | 2 +-
libsepol/include/sepol/user_record.h | 66 +-
libsepol/include/sepol/users.h | 32 +-
libsepol/src/assertion.c | 486 +-
libsepol/src/avrule_block.c | 34 +-
libsepol/src/avtab.c | 150 +-
libsepol/src/boolean_record.c | 72 +-
libsepol/src/booleans.c | 68 +-
libsepol/src/conditional.c | 156 +-
libsepol/src/constraint.c | 4 +-
libsepol/src/context.c | 109 +-
libsepol/src/context.h | 34 +-
libsepol/src/context_record.c | 124 +-
libsepol/src/debug.c | 37 +-
libsepol/src/debug.h | 42 +-
libsepol/src/ebitmap.c | 97 +-
libsepol/src/expand.c | 1004 +-
libsepol/src/flask.h | 56 +-
libsepol/src/handle.c | 13 +-
libsepol/src/handle.h | 6 +-
libsepol/src/hashtab.c | 44 +-
libsepol/src/hierarchy.c | 222 +-
libsepol/src/ibendport_record.c | 53 +-
libsepol/src/ibendports.c | 42 +-
libsepol/src/ibpkey_record.c | 70 +-
libsepol/src/ibpkeys.c | 47 +-
libsepol/src/iface_record.c | 98 +-
libsepol/src/interfaces.c | 69 +-
libsepol/src/kernel_to_cil.c | 715 +-
libsepol/src/kernel_to_common.c | 96 +-
libsepol/src/kernel_to_common.h | 77 +-
libsepol/src/kernel_to_conf.c | 687 +-
libsepol/src/link.c | 772 +-
libsepol/src/mls.c | 232 +-
libsepol/src/mls.h | 44 +-
libsepol/src/module.c | 169 +-
libsepol/src/module_internal.h | 1 -
libsepol/src/module_to_cil.c | 1060 +-
libsepol/src/node_record.c | 299 +-
libsepol/src/nodes.c | 225 +-
libsepol/src/optimize.c | 44 +-
libsepol/src/polcaps.c | 32 +-
libsepol/src/policydb.c | 1527 +-
libsepol/src/policydb_convert.c | 12 +-
libsepol/src/policydb_internal.h | 2 +-
libsepol/src/policydb_public.c | 59 +-
libsepol/src/policydb_validate.c | 561 +-
libsepol/src/port_record.c | 104 +-
libsepol/src/ports.c | 93 +-
libsepol/src/private.h | 32 +-
libsepol/src/services.c | 585 +-
libsepol/src/sidtab.c | 55 +-
libsepol/src/symtab.c | 11 +-
libsepol/src/user_record.c | 131 +-
libsepol/src/users.c | 95 +-
libsepol/src/util.c | 68 +-
libsepol/src/write.c | 447 +-
libsepol/tests/debug.c | 8 +-
libsepol/tests/debug.h | 4 +-
libsepol/tests/helpers.c | 14 +-
libsepol/tests/helpers.h | 26 +-
libsepol/tests/libsepol-tests.c | 40 +-
libsepol/tests/test-common.c | 101 +-
libsepol/tests/test-common.h | 17 +-
libsepol/tests/test-cond.c | 8 +-
libsepol/tests/test-deps.c | 119 +-
libsepol/tests/test-downgrade.c | 33 +-
libsepol/tests/test-ebitmap.c | 73 +-
libsepol/tests/test-ebitmap.h | 2 +-
libsepol/tests/test-expander-attr-map.c | 126 +-
libsepol/tests/test-expander-users.c | 15 +-
libsepol/tests/test-expander.c | 53 +-
libsepol/tests/test-linker-cond-map.c | 17 +-
libsepol/tests/test-linker-cond-map.h | 4 +-
libsepol/tests/test-linker-roles.c | 78 +-
libsepol/tests/test-linker-roles.h | 4 +-
libsepol/tests/test-linker-types.c | 73 +-
libsepol/tests/test-linker-types.h | 4 +-
libsepol/tests/test-linker.c | 13 +-
libsepol/tests/test-neverallow.c | 53 +-
libsepol/tests/test-neverallow.h | 2 +-
libsepol/utils/chkcon.c | 10 +-
libsepol/utils/sepol_check_access.c | 27 +-
libsepol/utils/sepol_compute_av.c | 19 +-
libsepol/utils/sepol_compute_member.c | 13 +-
libsepol/utils/sepol_compute_relabel.c | 13 +-
libsepol/utils/sepol_validate_transition.c | 16 +-
mcstrans/src/mcscolor.c | 74 +-
mcstrans/src/mcstrans.c | 898 +-
mcstrans/src/mcstransd.c | 156 +-
mcstrans/src/mls_level.c | 16 +-
mcstrans/utils/transcon.c | 12 +-
mcstrans/utils/untranscon.c | 12 +-
policycoreutils/hll/pp/pp.c | 28 +-
policycoreutils/load_policy/load_policy.c | 35 +-
policycoreutils/newrole/hashtab.c | 33 +-
policycoreutils/newrole/hashtab.h | 50 +-
policycoreutils/newrole/newrole.c | 249 +-
policycoreutils/run_init/open_init_pty.c | 62 +-
policycoreutils/run_init/run_init.c | 117 +-
policycoreutils/secon/secon.c | 225 +-
policycoreutils/semodule/semodule.c | 756 +-
policycoreutils/sestatus/sestatus.c | 78 +-
policycoreutils/setfiles/restore.c | 56 +-
policycoreutils/setfiles/restorecon_xattr.c | 45 +-
policycoreutils/setfiles/setfiles.c | 58 +-
policycoreutils/setsebool/setsebool.c | 39 +-
policycoreutils/unsetfiles/unsetfiles.c | 68 +-
.../audit2allow/sepolgen-ifgen-attr-helper.c | 39 +-
restorecond/restore.c | 28 +-
restorecond/restorecond.c | 17 +-
restorecond/restorecond.h | 2 +-
restorecond/stringslist.c | 8 +-
restorecond/user.c | 220 +-
restorecond/utmpwatcher.c | 7 +-
restorecond/watch.c | 70 +-
sandbox/seunshare.c | 382 +-
secilc/secil2conf.c | 78 +-
secilc/secil2tree.c | 85 +-
secilc/secilc.c | 242 +-
secilc/secilcheck.c | 65 +-
.../semodule_expand/semodule_expand.c | 65 +-
semodule-utils/semodule_link/semodule_link.c | 15 +-
.../semodule_package/semodule_package.c | 91 +-
.../semodule_package/semodule_unpackage.c | 24 +-
495 files changed, 49832 insertions(+), 34947 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] Add check_format Github CI job
2026-06-03 9:33 [PATCH 1/2] Reformat all the code based on .clang-format Petr Lautrbach
@ 2026-06-03 9:33 ` Petr Lautrbach
2026-06-04 13:22 ` Stephen Smalley
2026-06-03 9:42 ` [PATCH 1/2] Reformat all the code based on .clang-format Petr Lautrbach
2026-06-03 19:01 ` Petr Lautrbach
2 siblings, 1 reply; 6+ messages in thread
From: Petr Lautrbach @ 2026-06-03 9:33 UTC (permalink / raw)
To: selinux; +Cc: Petr Lautrbach
Run `make check-format` on PRs and pushes
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
---
There's a test run available at https://github.com/SELinuxProject/selinux/pull/520
https://github.com/SELinuxProject/selinux/actions/runs/26875462663/job/79261408494?pr=520
.github/workflows/check_format.yml | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 .github/workflows/check_format.yml
diff --git a/.github/workflows/check_format.yml b/.github/workflows/check_format.yml
new file mode 100644
index 000000000000..bb44e60a5507
--- /dev/null
+++ b/.github/workflows/check_format.yml
@@ -0,0 +1,21 @@
+name: Check format
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+
+jobs:
+ check-format:
+ runs-on: ubuntu-latest
+ container:
+ image: fedora:latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Install tools
+ run: dnf install -y make clang-tools-extra
+ - name: Check format
+ run: make check-format
--
2.54.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] Reformat all the code based on .clang-format
2026-06-03 9:33 [PATCH 1/2] Reformat all the code based on .clang-format Petr Lautrbach
2026-06-03 9:33 ` [PATCH 2/2] Add check_format Github CI job Petr Lautrbach
@ 2026-06-03 9:42 ` Petr Lautrbach
2026-06-03 19:01 ` Petr Lautrbach
2 siblings, 0 replies; 6+ messages in thread
From: Petr Lautrbach @ 2026-06-03 9:42 UTC (permalink / raw)
To: selinux
Petr Lautrbach <lautrbach@redhat.com> writes:
> Commit 0a6b917da08f ("treewide: add .clang-format configuration file")
> added .clang-format configuration file from Linux kernel which allows to
> make formatting consistent.
>
> For this patch `make format` to reformat all sources. In future it's
> expected that new contribution will be checked using `make check-format`
> to keep the consistent formatting.
>
> Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
FTR this is based on commit 19e445e18619 ("libselinux: label_support:
move digest_add_specfile() bounds check")
> ---
>
> The patch is big and is available at https://github.com/SELinuxProject/selinux/pull/520
>
> https://github.com/SELinuxProject/selinux/commit/184a4b9dc681c21e3f6459d8a02cce8ceb244fa7
>
> checkpolicy/checkmodule.c | 109 +-
> checkpolicy/checkpolicy.c | 502 +-
> checkpolicy/fuzz/checkpolicy-fuzzer.c | 39 +-
> checkpolicy/module_compiler.c | 265 +-
> checkpolicy/module_compiler.h | 26 +-
> checkpolicy/parse_util.c | 5 +-
> checkpolicy/parse_util.h | 2 +-
> checkpolicy/policy_define.c | 1187 +-
> checkpolicy/policy_define.h | 6 +-
> checkpolicy/queue.c | 13 +-
> checkpolicy/queue.h | 7 +-
> checkpolicy/test/dismod.c | 361 +-
> checkpolicy/test/dispol.c | 181 +-
> .../fuzz/selabel_file_compiled-fuzzer.c | 44 +-
> libselinux/fuzz/selabel_file_text-fuzzer.c | 34 +-
> libselinux/include/selinux/avc.h | 104 +-
> libselinux/include/selinux/context.h | 32 +-
> libselinux/include/selinux/get_context_list.h | 46 +-
> libselinux/include/selinux/get_default_type.h | 6 +-
> libselinux/include/selinux/label.h | 75 +-
> libselinux/include/selinux/restorecon.h | 50 +-
> libselinux/include/selinux/selinux.h | 337 +-
> libselinux/src/audit2why.c | 217 +-
> libselinux/src/avc.c | 228 +-
> libselinux/src/avc_internal.c | 63 +-
> libselinux/src/avc_internal.h | 100 +-
> libselinux/src/avc_sidtab.c | 26 +-
> libselinux/src/avc_sidtab.h | 17 +-
> libselinux/src/booleans.c | 41 +-
> libselinux/src/callbacks.c | 51 +-
> libselinux/src/callbacks.h | 34 +-
> libselinux/src/canonicalize_context.c | 14 +-
> libselinux/src/checkAccess.c | 61 +-
> libselinux/src/check_context.c | 8 +-
> libselinux/src/checkreqprot.c | 1 -
> libselinux/src/compute_av.c | 54 +-
> libselinux/src/compute_create.c | 54 +-
> libselinux/src/compute_member.c | 21 +-
> libselinux/src/compute_relabel.c | 21 +-
> libselinux/src/compute_user.c | 16 +-
> libselinux/src/context.c | 72 +-
> libselinux/src/context_internal.h | 1 -
> libselinux/src/deny_unknown.c | 1 -
> libselinux/src/disable.c | 1 -
> libselinux/src/enabled.c | 2 -
> libselinux/src/fgetfilecon.c | 13 +-
> libselinux/src/file_path_suffixes.h | 66 +-
> libselinux/src/freecon.c | 3 +-
> libselinux/src/freeconary.c | 3 +-
> libselinux/src/fsetfilecon.c | 17 +-
> libselinux/src/get_context_list.c | 92 +-
> libselinux/src/get_context_list_internal.h | 1 -
> libselinux/src/get_default_type.c | 4 +-
> libselinux/src/get_default_type_internal.h | 1 -
> libselinux/src/get_initial_context.c | 13 +-
> libselinux/src/getenforce.c | 1 -
> libselinux/src/getfilecon.c | 10 +-
> libselinux/src/getpeercon.c | 9 +-
> libselinux/src/init.c | 16 +-
> libselinux/src/is_customizable_type.c | 6 +-
> libselinux/src/label.c | 45 +-
> libselinux/src/label_backends_android.c | 82 +-
> libselinux/src/label_db.c | 97 +-
> libselinux/src/label_file.c | 932 +-
> libselinux/src/label_file.h | 266 +-
> libselinux/src/label_internal.h | 106 +-
> libselinux/src/label_media.c | 23 +-
> libselinux/src/label_support.c | 25 +-
> libselinux/src/label_x.c | 16 +-
> libselinux/src/lgetfilecon.c | 9 +-
> libselinux/src/load_policy.c | 100 +-
> libselinux/src/lsetfilecon.c | 13 +-
> libselinux/src/mapping.c | 81 +-
> libselinux/src/mapping.h | 18 +-
> libselinux/src/matchmediacon.c | 5 +-
> libselinux/src/matchpathcon.c | 138 +-
> libselinux/src/policyvers.c | 1 -
> libselinux/src/procattr.c | 117 +-
> libselinux/src/query_user_context.c | 39 +-
> libselinux/src/regex.c | 62 +-
> libselinux/src/regex.h | 33 +-
> libselinux/src/reject_unknown.c | 1 -
> .../src/selinux_check_securetty_context.c | 2 +-
> libselinux/src/selinux_config.c | 147 +-
> libselinux/src/selinux_internal.c | 1 -
> libselinux/src/selinux_internal.h | 121 +-
> libselinux/src/selinux_netlink.h | 8 +-
> libselinux/src/selinux_restorecon.c | 435 +-
> libselinux/src/sestatus.c | 68 +-
> libselinux/src/setenforce.c | 1 -
> libselinux/src/setexecfilecon.c | 9 +-
> libselinux/src/setfilecon.c | 13 +-
> libselinux/src/setrans_client.c | 80 +-
> libselinux/src/setrans_internal.h | 9 +-
> libselinux/src/seusers.c | 89 +-
> libselinux/src/sha1.c | 339 +-
> libselinux/src/sha1.h | 37 +-
> libselinux/src/stringrep.c | 45 +-
> libselinux/src/validatetrans.c | 17 +-
> libselinux/utils/avcstat.c | 33 +-
> libselinux/utils/compute_av.c | 9 +-
> libselinux/utils/compute_create.c | 12 +-
> libselinux/utils/compute_member.c | 6 +-
> libselinux/utils/compute_relabel.c | 6 +-
> libselinux/utils/getconlist.c | 17 +-
> libselinux/utils/getdefaultcon.c | 41 +-
> libselinux/utils/getenforce.c | 7 +-
> libselinux/utils/getfilecon.c | 4 +-
> libselinux/utils/getpidcon.c | 3 +-
> libselinux/utils/getpidprevcon.c | 3 +-
> libselinux/utils/getpolicyload.c | 12 +-
> libselinux/utils/getsebool.c | 8 +-
> libselinux/utils/getseuser.c | 14 +-
> libselinux/utils/matchpathcon.c | 33 +-
> libselinux/utils/policyvers.c | 5 +-
> libselinux/utils/sefcontext_compile.c | 135 +-
> libselinux/utils/selabel_compare.c | 24 +-
> libselinux/utils/selabel_digest.c | 51 +-
> .../selabel_get_digests_all_partial_matches.c | 36 +-
> libselinux/utils/selabel_lookup.c | 24 +-
> libselinux/utils/selabel_lookup_best_match.c | 30 +-
> libselinux/utils/selabel_partial_match.c | 17 +-
> libselinux/utils/selinux_check_access.c | 12 +-
> .../utils/selinux_check_securetty_context.c | 2 +-
> libselinux/utils/selinuxexeccon.c | 22 +-
> libselinux/utils/setenforce.c | 5 +-
> libselinux/utils/togglesebool.c | 9 +-
> libselinux/utils/validatetrans.c | 15 +-
> libsemanage/example/test_fcontext.c | 32 +-
> libsemanage/include/semanage/boolean_record.h | 43 +-
> .../include/semanage/booleans_active.h | 30 +-
> libsemanage/include/semanage/booleans_local.h | 34 +-
> .../include/semanage/booleans_policy.h | 22 +-
> libsemanage/include/semanage/context_record.h | 47 +-
> libsemanage/include/semanage/debug.h | 22 +-
> .../include/semanage/fcontext_record.h | 72 +-
> .../include/semanage/fcontexts_local.h | 35 +-
> .../include/semanage/fcontexts_policy.h | 30 +-
> libsemanage/include/semanage/handle.h | 52 +-
> .../include/semanage/ibendport_record.h | 16 +-
> .../include/semanage/ibendports_local.h | 8 +-
> .../include/semanage/ibendports_policy.h | 11 +-
> libsemanage/include/semanage/ibpkey_record.h | 13 +-
> libsemanage/include/semanage/ibpkeys_local.h | 8 +-
> libsemanage/include/semanage/ibpkeys_policy.h | 11 +-
> libsemanage/include/semanage/iface_record.h | 58 +-
> .../include/semanage/interfaces_local.h | 34 +-
> .../include/semanage/interfaces_policy.h | 22 +-
> libsemanage/include/semanage/modules.h | 25 +-
> libsemanage/include/semanage/node_record.h | 91 +-
> libsemanage/include/semanage/nodes_local.h | 34 +-
> libsemanage/include/semanage/nodes_policy.h | 22 +-
> libsemanage/include/semanage/port_record.h | 54 +-
> libsemanage/include/semanage/ports_local.h | 34 +-
> libsemanage/include/semanage/ports_policy.h | 22 +-
> libsemanage/include/semanage/seuser_record.h | 52 +-
> libsemanage/include/semanage/seusers_local.h | 34 +-
> libsemanage/include/semanage/seusers_policy.h | 24 +-
> libsemanage/include/semanage/user_record.h | 75 +-
> libsemanage/include/semanage/users_local.h | 34 +-
> libsemanage/include/semanage/users_policy.h | 22 +-
> libsemanage/src/boolean_internal.h | 20 +-
> libsemanage/src/boolean_record.c | 62 +-
> libsemanage/src/booleans_active.c | 35 +-
> libsemanage/src/booleans_activedb.c | 39 +-
> libsemanage/src/booleans_file.c | 37 +-
> libsemanage/src/booleans_local.c | 41 +-
> libsemanage/src/booleans_policy.c | 28 +-
> libsemanage/src/booleans_policydb.c | 31 +-
> libsemanage/src/compressed_file.c | 69 +-
> libsemanage/src/compressed_file.h | 4 +-
> libsemanage/src/context_record.c | 61 +-
> libsemanage/src/database.c | 75 +-
> libsemanage/src/database.h | 124 +-
> libsemanage/src/database_activedb.c | 34 +-
> libsemanage/src/database_activedb.h | 19 +-
> libsemanage/src/database_file.c | 34 +-
> libsemanage/src/database_file.h | 21 +-
> libsemanage/src/database_join.c | 44 +-
> libsemanage/src/database_join.h | 23 +-
> libsemanage/src/database_llist.c | 114 +-
> libsemanage/src/database_llist.h | 82 +-
> libsemanage/src/database_policydb.c | 195 +-
> libsemanage/src/database_policydb.h | 83 +-
> libsemanage/src/debug.c | 45 +-
> libsemanage/src/debug.h | 65 +-
> libsemanage/src/direct_api.c | 936 +-
> libsemanage/src/direct_api.h | 1 -
> libsemanage/src/fcontext_internal.h | 14 +-
> libsemanage/src/fcontext_record.c | 117 +-
> libsemanage/src/fcontexts_file.c | 43 +-
> libsemanage/src/fcontexts_local.c | 65 +-
> libsemanage/src/fcontexts_policy.c | 33 +-
> libsemanage/src/genhomedircon.c | 347 +-
> libsemanage/src/genhomedircon.h | 5 +-
> libsemanage/src/handle.c | 84 +-
> libsemanage/src/handle.h | 161 +-
> libsemanage/src/ibendport_internal.h | 5 +-
> libsemanage/src/ibendport_record.c | 30 +-
> libsemanage/src/ibendports_file.c | 30 +-
> libsemanage/src/ibendports_local.c | 24 +-
> libsemanage/src/ibendports_policy.c | 10 +-
> libsemanage/src/ibendports_policydb.c | 12 +-
> libsemanage/src/ibpkey_internal.h | 5 +-
> libsemanage/src/ibpkey_record.c | 34 +-
> libsemanage/src/ibpkeys_file.c | 28 +-
> libsemanage/src/ibpkeys_local.c | 42 +-
> libsemanage/src/ibpkeys_policy.c | 3 +-
> libsemanage/src/ibpkeys_policydb.c | 12 +-
> libsemanage/src/iface_internal.h | 14 +-
> libsemanage/src/iface_record.c | 81 +-
> libsemanage/src/interfaces_file.c | 53 +-
> libsemanage/src/interfaces_local.c | 39 +-
> libsemanage/src/interfaces_policy.c | 28 +-
> libsemanage/src/interfaces_policydb.c | 30 +-
> libsemanage/src/modules.c | 328 +-
> libsemanage/src/modules.h | 22 +-
> libsemanage/src/node_internal.h | 18 +-
> libsemanage/src/node_record.c | 126 +-
> libsemanage/src/nodes_file.c | 46 +-
> libsemanage/src/nodes_local.c | 42 +-
> libsemanage/src/nodes_policy.c | 28 +-
> libsemanage/src/nodes_policydb.c | 29 +-
> libsemanage/src/parse_utils.c | 103 +-
> libsemanage/src/parse_utils.h | 53 +-
> libsemanage/src/policy.h | 61 +-
> libsemanage/src/policy_components.c | 82 +-
> libsemanage/src/port_internal.h | 18 +-
> libsemanage/src/port_record.c | 88 +-
> libsemanage/src/ports_file.c | 47 +-
> libsemanage/src/ports_local.c | 58 +-
> libsemanage/src/ports_policy.c | 28 +-
> libsemanage/src/ports_policydb.c | 29 +-
> libsemanage/src/semanage_conf.h | 8 +-
> libsemanage/src/semanage_store.c | 682 +-
> libsemanage/src/semanage_store.h | 62 +-
> libsemanage/src/seuser_internal.h | 14 +-
> libsemanage/src/seuser_record.c | 92 +-
> libsemanage/src/seusers_file.c | 33 +-
> libsemanage/src/seusers_local.c | 145 +-
> libsemanage/src/seusers_policy.c | 29 +-
> libsemanage/src/sha256.c | 396 +-
> libsemanage/src/sha256.h | 56 +-
> libsemanage/src/user_base_record.c | 99 +-
> libsemanage/src/user_extra_record.c | 89 +-
> libsemanage/src/user_internal.h | 163 +-
> libsemanage/src/user_record.c | 160 +-
> libsemanage/src/users_base_file.c | 45 +-
> libsemanage/src/users_base_policydb.c | 30 +-
> libsemanage/src/users_extra_file.c | 42 +-
> libsemanage/src/users_join.c | 16 +-
> libsemanage/src/users_local.c | 52 +-
> libsemanage/src/users_policy.c | 30 +-
> libsemanage/src/utilities.c | 21 +-
> libsemanage/src/utilities.h | 23 +-
> libsemanage/tests/libsemanage-tests.c | 40 +-
> libsemanage/tests/test_bool.c | 52 +-
> libsemanage/tests/test_fcontext.c | 58 +-
> libsemanage/tests/test_handle.c | 18 +-
> libsemanage/tests/test_ibendport.c | 86 +-
> libsemanage/tests/test_iface.c | 27 +-
> libsemanage/tests/test_node.c | 44 +-
> libsemanage/tests/test_other.c | 7 +-
> libsemanage/tests/test_port.c | 38 +-
> libsemanage/tests/test_semanage_store.c | 38 +-
> libsemanage/tests/test_user.c | 16 +-
> libsemanage/tests/test_utilities.c | 43 +-
> libsemanage/tests/utilities.c | 62 +-
> libsemanage/tests/utilities.h | 40 +-
> libsepol/cil/include/cil/cil.h | 20 +-
> libsepol/cil/src/cil.c | 208 +-
> libsepol/cil/src/cil_binary.c | 2139 +-
> libsepol/cil/src/cil_binary.h | 66 +-
> libsepol/cil/src/cil_build_ast.c | 2198 +-
> libsepol/cil/src/cil_build_ast.h | 332 +-
> libsepol/cil/src/cil_copy_ast.c | 403 +-
> libsepol/cil/src/cil_copy_ast.h | 199 +-
> libsepol/cil/src/cil_deny.c | 304 +-
> libsepol/cil/src/cil_deny.h | 17 +-
> libsepol/cil/src/cil_find.c | 157 +-
> libsepol/cil/src/cil_find.h | 4 +-
> libsepol/cil/src/cil_flavor.h | 3 +-
> libsepol/cil/src/cil_fqn.c | 29 +-
> libsepol/cil/src/cil_internal.h | 71 +-
> libsepol/cil/src/cil_lexer.h | 2 +-
> libsepol/cil/src/cil_list.c | 17 +-
> libsepol/cil/src/cil_list.h | 16 +-
> libsepol/cil/src/cil_log.c | 23 +-
> libsepol/cil/src/cil_log.h | 6 +-
> libsepol/cil/src/cil_mem.c | 10 +-
> libsepol/cil/src/cil_mem.h | 1 -
> libsepol/cil/src/cil_parser.c | 88 +-
> libsepol/cil/src/cil_parser.h | 3 +-
> libsepol/cil/src/cil_policy.c | 473 +-
> libsepol/cil/src/cil_post.c | 685 +-
> libsepol/cil/src/cil_reset_ast.c | 18 +-
> libsepol/cil/src/cil_resolve_ast.c | 1432 +-
> libsepol/cil/src/cil_resolve_ast.h | 82 +-
> libsepol/cil/src/cil_stack.c | 7 +-
> libsepol/cil/src/cil_stack.h | 13 +-
> libsepol/cil/src/cil_strpool.c | 17 +-
> libsepol/cil/src/cil_symtab.c | 74 +-
> libsepol/cil/src/cil_symtab.h | 25 +-
> libsepol/cil/src/cil_tree.c | 79 +-
> libsepol/cil/src/cil_tree.h | 34 +-
> libsepol/cil/src/cil_verify.c | 639 +-
> libsepol/cil/src/cil_verify.h | 47 +-
> libsepol/cil/src/cil_write_ast.c | 374 +-
> libsepol/cil/src/cil_write_ast.h | 3 +-
> libsepol/cil/test/unit/AllTests.c | 66 +-
> libsepol/cil/test/unit/CilTest.c | 947 +-
> libsepol/cil/test/unit/CilTest.h | 2 +-
> libsepol/cil/test/unit/CuTest.c | 206 +-
> libsepol/cil/test/unit/CuTest.h | 148 +-
> libsepol/cil/test/unit/test_cil.c | 66 +-
> libsepol/cil/test/unit/test_cil_build_ast.c | 16702 ++++++++++------
> libsepol/cil/test/unit/test_cil_build_ast.h | 52 +-
> libsepol/cil/test/unit/test_cil_copy_ast.c | 2196 +-
> libsepol/cil/test/unit/test_cil_copy_ast.h | 112 +-
> libsepol/cil/test/unit/test_cil_fqn.c | 49 +-
> libsepol/cil/test/unit/test_cil_lexer.c | 117 +-
> libsepol/cil/test/unit/test_cil_list.c | 138 +-
> libsepol/cil/test/unit/test_cil_parser.c | 7 +-
> libsepol/cil/test/unit/test_cil_post.c | 734 +-
> libsepol/cil/test/unit/test_cil_post.h | 1 -
> libsepol/cil/test/unit/test_cil_resolve_ast.c | 16100 ++++++++++-----
> libsepol/cil/test/unit/test_cil_resolve_ast.h | 1 -
> libsepol/cil/test/unit/test_cil_symtab.c | 17 +-
> libsepol/cil/test/unit/test_cil_tree.c | 29 +-
> libsepol/cil/test/unit/test_integration.c | 29 +-
> libsepol/fuzz/binpolicy-fuzzer.c | 20 +-
> libsepol/fuzz/secilc-fuzzer.c | 7 +-
> libsepol/include/sepol/boolean_record.h | 41 +-
> libsepol/include/sepol/booleans.h | 32 +-
> libsepol/include/sepol/context.h | 18 +-
> libsepol/include/sepol/context_record.h | 44 +-
> libsepol/include/sepol/debug.h | 19 +-
> libsepol/include/sepol/errcodes.h | 14 +-
> libsepol/include/sepol/handle.h | 10 +-
> libsepol/include/sepol/ibendport_record.h | 9 +-
> libsepol/include/sepol/ibendports.h | 11 +-
> libsepol/include/sepol/ibpkey_record.h | 18 +-
> libsepol/include/sepol/ibpkeys.h | 14 +-
> libsepol/include/sepol/iface_record.h | 52 +-
> libsepol/include/sepol/interfaces.h | 34 +-
> libsepol/include/sepol/module.h | 68 +-
> libsepol/include/sepol/module_to_cil.h | 3 +-
> libsepol/include/sepol/node_record.h | 80 +-
> libsepol/include/sepol/nodes.h | 33 +-
> libsepol/include/sepol/policydb.h | 64 +-
> .../include/sepol/policydb/avrule_block.h | 15 +-
> libsepol/include/sepol/policydb/avtab.h | 93 +-
> libsepol/include/sepol/policydb/conditional.h | 67 +-
> libsepol/include/sepol/policydb/constraint.h | 70 +-
> libsepol/include/sepol/policydb/context.h | 36 +-
> libsepol/include/sepol/policydb/ebitmap.h | 74 +-
> libsepol/include/sepol/policydb/expand.h | 44 +-
> libsepol/include/sepol/policydb/flask_types.h | 2 +-
> libsepol/include/sepol/policydb/hashtab.h | 42 +-
> libsepol/include/sepol/policydb/hierarchy.h | 7 +-
> libsepol/include/sepol/policydb/link.h | 6 +-
> libsepol/include/sepol/policydb/mls_types.h | 64 +-
> libsepol/include/sepol/policydb/module.h | 2 +-
> libsepol/include/sepol/policydb/policydb.h | 499 +-
> libsepol/include/sepol/policydb/services.h | 147 +-
> libsepol/include/sepol/policydb/sidtab.h | 54 +-
> libsepol/include/sepol/policydb/symtab.h | 6 +-
> libsepol/include/sepol/policydb/util.h | 5 +-
> libsepol/include/sepol/port_record.h | 52 +-
> libsepol/include/sepol/ports.h | 33 +-
> libsepol/include/sepol/sepol.h | 2 +-
> libsepol/include/sepol/user_record.h | 66 +-
> libsepol/include/sepol/users.h | 32 +-
> libsepol/src/assertion.c | 486 +-
> libsepol/src/avrule_block.c | 34 +-
> libsepol/src/avtab.c | 150 +-
> libsepol/src/boolean_record.c | 72 +-
> libsepol/src/booleans.c | 68 +-
> libsepol/src/conditional.c | 156 +-
> libsepol/src/constraint.c | 4 +-
> libsepol/src/context.c | 109 +-
> libsepol/src/context.h | 34 +-
> libsepol/src/context_record.c | 124 +-
> libsepol/src/debug.c | 37 +-
> libsepol/src/debug.h | 42 +-
> libsepol/src/ebitmap.c | 97 +-
> libsepol/src/expand.c | 1004 +-
> libsepol/src/flask.h | 56 +-
> libsepol/src/handle.c | 13 +-
> libsepol/src/handle.h | 6 +-
> libsepol/src/hashtab.c | 44 +-
> libsepol/src/hierarchy.c | 222 +-
> libsepol/src/ibendport_record.c | 53 +-
> libsepol/src/ibendports.c | 42 +-
> libsepol/src/ibpkey_record.c | 70 +-
> libsepol/src/ibpkeys.c | 47 +-
> libsepol/src/iface_record.c | 98 +-
> libsepol/src/interfaces.c | 69 +-
> libsepol/src/kernel_to_cil.c | 715 +-
> libsepol/src/kernel_to_common.c | 96 +-
> libsepol/src/kernel_to_common.h | 77 +-
> libsepol/src/kernel_to_conf.c | 687 +-
> libsepol/src/link.c | 772 +-
> libsepol/src/mls.c | 232 +-
> libsepol/src/mls.h | 44 +-
> libsepol/src/module.c | 169 +-
> libsepol/src/module_internal.h | 1 -
> libsepol/src/module_to_cil.c | 1060 +-
> libsepol/src/node_record.c | 299 +-
> libsepol/src/nodes.c | 225 +-
> libsepol/src/optimize.c | 44 +-
> libsepol/src/polcaps.c | 32 +-
> libsepol/src/policydb.c | 1527 +-
> libsepol/src/policydb_convert.c | 12 +-
> libsepol/src/policydb_internal.h | 2 +-
> libsepol/src/policydb_public.c | 59 +-
> libsepol/src/policydb_validate.c | 561 +-
> libsepol/src/port_record.c | 104 +-
> libsepol/src/ports.c | 93 +-
> libsepol/src/private.h | 32 +-
> libsepol/src/services.c | 585 +-
> libsepol/src/sidtab.c | 55 +-
> libsepol/src/symtab.c | 11 +-
> libsepol/src/user_record.c | 131 +-
> libsepol/src/users.c | 95 +-
> libsepol/src/util.c | 68 +-
> libsepol/src/write.c | 447 +-
> libsepol/tests/debug.c | 8 +-
> libsepol/tests/debug.h | 4 +-
> libsepol/tests/helpers.c | 14 +-
> libsepol/tests/helpers.h | 26 +-
> libsepol/tests/libsepol-tests.c | 40 +-
> libsepol/tests/test-common.c | 101 +-
> libsepol/tests/test-common.h | 17 +-
> libsepol/tests/test-cond.c | 8 +-
> libsepol/tests/test-deps.c | 119 +-
> libsepol/tests/test-downgrade.c | 33 +-
> libsepol/tests/test-ebitmap.c | 73 +-
> libsepol/tests/test-ebitmap.h | 2 +-
> libsepol/tests/test-expander-attr-map.c | 126 +-
> libsepol/tests/test-expander-users.c | 15 +-
> libsepol/tests/test-expander.c | 53 +-
> libsepol/tests/test-linker-cond-map.c | 17 +-
> libsepol/tests/test-linker-cond-map.h | 4 +-
> libsepol/tests/test-linker-roles.c | 78 +-
> libsepol/tests/test-linker-roles.h | 4 +-
> libsepol/tests/test-linker-types.c | 73 +-
> libsepol/tests/test-linker-types.h | 4 +-
> libsepol/tests/test-linker.c | 13 +-
> libsepol/tests/test-neverallow.c | 53 +-
> libsepol/tests/test-neverallow.h | 2 +-
> libsepol/utils/chkcon.c | 10 +-
> libsepol/utils/sepol_check_access.c | 27 +-
> libsepol/utils/sepol_compute_av.c | 19 +-
> libsepol/utils/sepol_compute_member.c | 13 +-
> libsepol/utils/sepol_compute_relabel.c | 13 +-
> libsepol/utils/sepol_validate_transition.c | 16 +-
> mcstrans/src/mcscolor.c | 74 +-
> mcstrans/src/mcstrans.c | 898 +-
> mcstrans/src/mcstransd.c | 156 +-
> mcstrans/src/mls_level.c | 16 +-
> mcstrans/utils/transcon.c | 12 +-
> mcstrans/utils/untranscon.c | 12 +-
> policycoreutils/hll/pp/pp.c | 28 +-
> policycoreutils/load_policy/load_policy.c | 35 +-
> policycoreutils/newrole/hashtab.c | 33 +-
> policycoreutils/newrole/hashtab.h | 50 +-
> policycoreutils/newrole/newrole.c | 249 +-
> policycoreutils/run_init/open_init_pty.c | 62 +-
> policycoreutils/run_init/run_init.c | 117 +-
> policycoreutils/secon/secon.c | 225 +-
> policycoreutils/semodule/semodule.c | 756 +-
> policycoreutils/sestatus/sestatus.c | 78 +-
> policycoreutils/setfiles/restore.c | 56 +-
> policycoreutils/setfiles/restorecon_xattr.c | 45 +-
> policycoreutils/setfiles/setfiles.c | 58 +-
> policycoreutils/setsebool/setsebool.c | 39 +-
> policycoreutils/unsetfiles/unsetfiles.c | 68 +-
> .../audit2allow/sepolgen-ifgen-attr-helper.c | 39 +-
> restorecond/restore.c | 28 +-
> restorecond/restorecond.c | 17 +-
> restorecond/restorecond.h | 2 +-
> restorecond/stringslist.c | 8 +-
> restorecond/user.c | 220 +-
> restorecond/utmpwatcher.c | 7 +-
> restorecond/watch.c | 70 +-
> sandbox/seunshare.c | 382 +-
> secilc/secil2conf.c | 78 +-
> secilc/secil2tree.c | 85 +-
> secilc/secilc.c | 242 +-
> secilc/secilcheck.c | 65 +-
> .../semodule_expand/semodule_expand.c | 65 +-
> semodule-utils/semodule_link/semodule_link.c | 15 +-
> .../semodule_package/semodule_package.c | 91 +-
> .../semodule_package/semodule_unpackage.c | 24 +-
> 495 files changed, 49832 insertions(+), 34947 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] Reformat all the code based on .clang-format
2026-06-03 9:33 [PATCH 1/2] Reformat all the code based on .clang-format Petr Lautrbach
2026-06-03 9:33 ` [PATCH 2/2] Add check_format Github CI job Petr Lautrbach
2026-06-03 9:42 ` [PATCH 1/2] Reformat all the code based on .clang-format Petr Lautrbach
@ 2026-06-03 19:01 ` Petr Lautrbach
2 siblings, 0 replies; 6+ messages in thread
From: Petr Lautrbach @ 2026-06-03 19:01 UTC (permalink / raw)
To: selinux
Petr Lautrbach <lautrbach@redhat.com> writes:
> Commit 0a6b917da08f ("treewide: add .clang-format configuration file")
> added .clang-format configuration file from Linux kernel which allows to
> make formatting consistent.
>
> For this patch `make format` to reformat all sources. In future it's
> expected that new contribution will be checked using `make check-format`
> to keep the consistent formatting.
>
> Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
This is merged now.
> ---
>
> The patch is big and is available at https://github.com/SELinuxProject/selinux/pull/520
>
> https://github.com/SELinuxProject/selinux/commit/184a4b9dc681c21e3f6459d8a02cce8ceb244fa7
>
> checkpolicy/checkmodule.c | 109 +-
> checkpolicy/checkpolicy.c | 502 +-
> checkpolicy/fuzz/checkpolicy-fuzzer.c | 39 +-
> checkpolicy/module_compiler.c | 265 +-
> checkpolicy/module_compiler.h | 26 +-
> checkpolicy/parse_util.c | 5 +-
> checkpolicy/parse_util.h | 2 +-
> checkpolicy/policy_define.c | 1187 +-
> checkpolicy/policy_define.h | 6 +-
> checkpolicy/queue.c | 13 +-
> checkpolicy/queue.h | 7 +-
> checkpolicy/test/dismod.c | 361 +-
> checkpolicy/test/dispol.c | 181 +-
> .../fuzz/selabel_file_compiled-fuzzer.c | 44 +-
> libselinux/fuzz/selabel_file_text-fuzzer.c | 34 +-
> libselinux/include/selinux/avc.h | 104 +-
> libselinux/include/selinux/context.h | 32 +-
> libselinux/include/selinux/get_context_list.h | 46 +-
> libselinux/include/selinux/get_default_type.h | 6 +-
> libselinux/include/selinux/label.h | 75 +-
> libselinux/include/selinux/restorecon.h | 50 +-
> libselinux/include/selinux/selinux.h | 337 +-
> libselinux/src/audit2why.c | 217 +-
> libselinux/src/avc.c | 228 +-
> libselinux/src/avc_internal.c | 63 +-
> libselinux/src/avc_internal.h | 100 +-
> libselinux/src/avc_sidtab.c | 26 +-
> libselinux/src/avc_sidtab.h | 17 +-
> libselinux/src/booleans.c | 41 +-
> libselinux/src/callbacks.c | 51 +-
> libselinux/src/callbacks.h | 34 +-
> libselinux/src/canonicalize_context.c | 14 +-
> libselinux/src/checkAccess.c | 61 +-
> libselinux/src/check_context.c | 8 +-
> libselinux/src/checkreqprot.c | 1 -
> libselinux/src/compute_av.c | 54 +-
> libselinux/src/compute_create.c | 54 +-
> libselinux/src/compute_member.c | 21 +-
> libselinux/src/compute_relabel.c | 21 +-
> libselinux/src/compute_user.c | 16 +-
> libselinux/src/context.c | 72 +-
> libselinux/src/context_internal.h | 1 -
> libselinux/src/deny_unknown.c | 1 -
> libselinux/src/disable.c | 1 -
> libselinux/src/enabled.c | 2 -
> libselinux/src/fgetfilecon.c | 13 +-
> libselinux/src/file_path_suffixes.h | 66 +-
> libselinux/src/freecon.c | 3 +-
> libselinux/src/freeconary.c | 3 +-
> libselinux/src/fsetfilecon.c | 17 +-
> libselinux/src/get_context_list.c | 92 +-
> libselinux/src/get_context_list_internal.h | 1 -
> libselinux/src/get_default_type.c | 4 +-
> libselinux/src/get_default_type_internal.h | 1 -
> libselinux/src/get_initial_context.c | 13 +-
> libselinux/src/getenforce.c | 1 -
> libselinux/src/getfilecon.c | 10 +-
> libselinux/src/getpeercon.c | 9 +-
> libselinux/src/init.c | 16 +-
> libselinux/src/is_customizable_type.c | 6 +-
> libselinux/src/label.c | 45 +-
> libselinux/src/label_backends_android.c | 82 +-
> libselinux/src/label_db.c | 97 +-
> libselinux/src/label_file.c | 932 +-
> libselinux/src/label_file.h | 266 +-
> libselinux/src/label_internal.h | 106 +-
> libselinux/src/label_media.c | 23 +-
> libselinux/src/label_support.c | 25 +-
> libselinux/src/label_x.c | 16 +-
> libselinux/src/lgetfilecon.c | 9 +-
> libselinux/src/load_policy.c | 100 +-
> libselinux/src/lsetfilecon.c | 13 +-
> libselinux/src/mapping.c | 81 +-
> libselinux/src/mapping.h | 18 +-
> libselinux/src/matchmediacon.c | 5 +-
> libselinux/src/matchpathcon.c | 138 +-
> libselinux/src/policyvers.c | 1 -
> libselinux/src/procattr.c | 117 +-
> libselinux/src/query_user_context.c | 39 +-
> libselinux/src/regex.c | 62 +-
> libselinux/src/regex.h | 33 +-
> libselinux/src/reject_unknown.c | 1 -
> .../src/selinux_check_securetty_context.c | 2 +-
> libselinux/src/selinux_config.c | 147 +-
> libselinux/src/selinux_internal.c | 1 -
> libselinux/src/selinux_internal.h | 121 +-
> libselinux/src/selinux_netlink.h | 8 +-
> libselinux/src/selinux_restorecon.c | 435 +-
> libselinux/src/sestatus.c | 68 +-
> libselinux/src/setenforce.c | 1 -
> libselinux/src/setexecfilecon.c | 9 +-
> libselinux/src/setfilecon.c | 13 +-
> libselinux/src/setrans_client.c | 80 +-
> libselinux/src/setrans_internal.h | 9 +-
> libselinux/src/seusers.c | 89 +-
> libselinux/src/sha1.c | 339 +-
> libselinux/src/sha1.h | 37 +-
> libselinux/src/stringrep.c | 45 +-
> libselinux/src/validatetrans.c | 17 +-
> libselinux/utils/avcstat.c | 33 +-
> libselinux/utils/compute_av.c | 9 +-
> libselinux/utils/compute_create.c | 12 +-
> libselinux/utils/compute_member.c | 6 +-
> libselinux/utils/compute_relabel.c | 6 +-
> libselinux/utils/getconlist.c | 17 +-
> libselinux/utils/getdefaultcon.c | 41 +-
> libselinux/utils/getenforce.c | 7 +-
> libselinux/utils/getfilecon.c | 4 +-
> libselinux/utils/getpidcon.c | 3 +-
> libselinux/utils/getpidprevcon.c | 3 +-
> libselinux/utils/getpolicyload.c | 12 +-
> libselinux/utils/getsebool.c | 8 +-
> libselinux/utils/getseuser.c | 14 +-
> libselinux/utils/matchpathcon.c | 33 +-
> libselinux/utils/policyvers.c | 5 +-
> libselinux/utils/sefcontext_compile.c | 135 +-
> libselinux/utils/selabel_compare.c | 24 +-
> libselinux/utils/selabel_digest.c | 51 +-
> .../selabel_get_digests_all_partial_matches.c | 36 +-
> libselinux/utils/selabel_lookup.c | 24 +-
> libselinux/utils/selabel_lookup_best_match.c | 30 +-
> libselinux/utils/selabel_partial_match.c | 17 +-
> libselinux/utils/selinux_check_access.c | 12 +-
> .../utils/selinux_check_securetty_context.c | 2 +-
> libselinux/utils/selinuxexeccon.c | 22 +-
> libselinux/utils/setenforce.c | 5 +-
> libselinux/utils/togglesebool.c | 9 +-
> libselinux/utils/validatetrans.c | 15 +-
> libsemanage/example/test_fcontext.c | 32 +-
> libsemanage/include/semanage/boolean_record.h | 43 +-
> .../include/semanage/booleans_active.h | 30 +-
> libsemanage/include/semanage/booleans_local.h | 34 +-
> .../include/semanage/booleans_policy.h | 22 +-
> libsemanage/include/semanage/context_record.h | 47 +-
> libsemanage/include/semanage/debug.h | 22 +-
> .../include/semanage/fcontext_record.h | 72 +-
> .../include/semanage/fcontexts_local.h | 35 +-
> .../include/semanage/fcontexts_policy.h | 30 +-
> libsemanage/include/semanage/handle.h | 52 +-
> .../include/semanage/ibendport_record.h | 16 +-
> .../include/semanage/ibendports_local.h | 8 +-
> .../include/semanage/ibendports_policy.h | 11 +-
> libsemanage/include/semanage/ibpkey_record.h | 13 +-
> libsemanage/include/semanage/ibpkeys_local.h | 8 +-
> libsemanage/include/semanage/ibpkeys_policy.h | 11 +-
> libsemanage/include/semanage/iface_record.h | 58 +-
> .../include/semanage/interfaces_local.h | 34 +-
> .../include/semanage/interfaces_policy.h | 22 +-
> libsemanage/include/semanage/modules.h | 25 +-
> libsemanage/include/semanage/node_record.h | 91 +-
> libsemanage/include/semanage/nodes_local.h | 34 +-
> libsemanage/include/semanage/nodes_policy.h | 22 +-
> libsemanage/include/semanage/port_record.h | 54 +-
> libsemanage/include/semanage/ports_local.h | 34 +-
> libsemanage/include/semanage/ports_policy.h | 22 +-
> libsemanage/include/semanage/seuser_record.h | 52 +-
> libsemanage/include/semanage/seusers_local.h | 34 +-
> libsemanage/include/semanage/seusers_policy.h | 24 +-
> libsemanage/include/semanage/user_record.h | 75 +-
> libsemanage/include/semanage/users_local.h | 34 +-
> libsemanage/include/semanage/users_policy.h | 22 +-
> libsemanage/src/boolean_internal.h | 20 +-
> libsemanage/src/boolean_record.c | 62 +-
> libsemanage/src/booleans_active.c | 35 +-
> libsemanage/src/booleans_activedb.c | 39 +-
> libsemanage/src/booleans_file.c | 37 +-
> libsemanage/src/booleans_local.c | 41 +-
> libsemanage/src/booleans_policy.c | 28 +-
> libsemanage/src/booleans_policydb.c | 31 +-
> libsemanage/src/compressed_file.c | 69 +-
> libsemanage/src/compressed_file.h | 4 +-
> libsemanage/src/context_record.c | 61 +-
> libsemanage/src/database.c | 75 +-
> libsemanage/src/database.h | 124 +-
> libsemanage/src/database_activedb.c | 34 +-
> libsemanage/src/database_activedb.h | 19 +-
> libsemanage/src/database_file.c | 34 +-
> libsemanage/src/database_file.h | 21 +-
> libsemanage/src/database_join.c | 44 +-
> libsemanage/src/database_join.h | 23 +-
> libsemanage/src/database_llist.c | 114 +-
> libsemanage/src/database_llist.h | 82 +-
> libsemanage/src/database_policydb.c | 195 +-
> libsemanage/src/database_policydb.h | 83 +-
> libsemanage/src/debug.c | 45 +-
> libsemanage/src/debug.h | 65 +-
> libsemanage/src/direct_api.c | 936 +-
> libsemanage/src/direct_api.h | 1 -
> libsemanage/src/fcontext_internal.h | 14 +-
> libsemanage/src/fcontext_record.c | 117 +-
> libsemanage/src/fcontexts_file.c | 43 +-
> libsemanage/src/fcontexts_local.c | 65 +-
> libsemanage/src/fcontexts_policy.c | 33 +-
> libsemanage/src/genhomedircon.c | 347 +-
> libsemanage/src/genhomedircon.h | 5 +-
> libsemanage/src/handle.c | 84 +-
> libsemanage/src/handle.h | 161 +-
> libsemanage/src/ibendport_internal.h | 5 +-
> libsemanage/src/ibendport_record.c | 30 +-
> libsemanage/src/ibendports_file.c | 30 +-
> libsemanage/src/ibendports_local.c | 24 +-
> libsemanage/src/ibendports_policy.c | 10 +-
> libsemanage/src/ibendports_policydb.c | 12 +-
> libsemanage/src/ibpkey_internal.h | 5 +-
> libsemanage/src/ibpkey_record.c | 34 +-
> libsemanage/src/ibpkeys_file.c | 28 +-
> libsemanage/src/ibpkeys_local.c | 42 +-
> libsemanage/src/ibpkeys_policy.c | 3 +-
> libsemanage/src/ibpkeys_policydb.c | 12 +-
> libsemanage/src/iface_internal.h | 14 +-
> libsemanage/src/iface_record.c | 81 +-
> libsemanage/src/interfaces_file.c | 53 +-
> libsemanage/src/interfaces_local.c | 39 +-
> libsemanage/src/interfaces_policy.c | 28 +-
> libsemanage/src/interfaces_policydb.c | 30 +-
> libsemanage/src/modules.c | 328 +-
> libsemanage/src/modules.h | 22 +-
> libsemanage/src/node_internal.h | 18 +-
> libsemanage/src/node_record.c | 126 +-
> libsemanage/src/nodes_file.c | 46 +-
> libsemanage/src/nodes_local.c | 42 +-
> libsemanage/src/nodes_policy.c | 28 +-
> libsemanage/src/nodes_policydb.c | 29 +-
> libsemanage/src/parse_utils.c | 103 +-
> libsemanage/src/parse_utils.h | 53 +-
> libsemanage/src/policy.h | 61 +-
> libsemanage/src/policy_components.c | 82 +-
> libsemanage/src/port_internal.h | 18 +-
> libsemanage/src/port_record.c | 88 +-
> libsemanage/src/ports_file.c | 47 +-
> libsemanage/src/ports_local.c | 58 +-
> libsemanage/src/ports_policy.c | 28 +-
> libsemanage/src/ports_policydb.c | 29 +-
> libsemanage/src/semanage_conf.h | 8 +-
> libsemanage/src/semanage_store.c | 682 +-
> libsemanage/src/semanage_store.h | 62 +-
> libsemanage/src/seuser_internal.h | 14 +-
> libsemanage/src/seuser_record.c | 92 +-
> libsemanage/src/seusers_file.c | 33 +-
> libsemanage/src/seusers_local.c | 145 +-
> libsemanage/src/seusers_policy.c | 29 +-
> libsemanage/src/sha256.c | 396 +-
> libsemanage/src/sha256.h | 56 +-
> libsemanage/src/user_base_record.c | 99 +-
> libsemanage/src/user_extra_record.c | 89 +-
> libsemanage/src/user_internal.h | 163 +-
> libsemanage/src/user_record.c | 160 +-
> libsemanage/src/users_base_file.c | 45 +-
> libsemanage/src/users_base_policydb.c | 30 +-
> libsemanage/src/users_extra_file.c | 42 +-
> libsemanage/src/users_join.c | 16 +-
> libsemanage/src/users_local.c | 52 +-
> libsemanage/src/users_policy.c | 30 +-
> libsemanage/src/utilities.c | 21 +-
> libsemanage/src/utilities.h | 23 +-
> libsemanage/tests/libsemanage-tests.c | 40 +-
> libsemanage/tests/test_bool.c | 52 +-
> libsemanage/tests/test_fcontext.c | 58 +-
> libsemanage/tests/test_handle.c | 18 +-
> libsemanage/tests/test_ibendport.c | 86 +-
> libsemanage/tests/test_iface.c | 27 +-
> libsemanage/tests/test_node.c | 44 +-
> libsemanage/tests/test_other.c | 7 +-
> libsemanage/tests/test_port.c | 38 +-
> libsemanage/tests/test_semanage_store.c | 38 +-
> libsemanage/tests/test_user.c | 16 +-
> libsemanage/tests/test_utilities.c | 43 +-
> libsemanage/tests/utilities.c | 62 +-
> libsemanage/tests/utilities.h | 40 +-
> libsepol/cil/include/cil/cil.h | 20 +-
> libsepol/cil/src/cil.c | 208 +-
> libsepol/cil/src/cil_binary.c | 2139 +-
> libsepol/cil/src/cil_binary.h | 66 +-
> libsepol/cil/src/cil_build_ast.c | 2198 +-
> libsepol/cil/src/cil_build_ast.h | 332 +-
> libsepol/cil/src/cil_copy_ast.c | 403 +-
> libsepol/cil/src/cil_copy_ast.h | 199 +-
> libsepol/cil/src/cil_deny.c | 304 +-
> libsepol/cil/src/cil_deny.h | 17 +-
> libsepol/cil/src/cil_find.c | 157 +-
> libsepol/cil/src/cil_find.h | 4 +-
> libsepol/cil/src/cil_flavor.h | 3 +-
> libsepol/cil/src/cil_fqn.c | 29 +-
> libsepol/cil/src/cil_internal.h | 71 +-
> libsepol/cil/src/cil_lexer.h | 2 +-
> libsepol/cil/src/cil_list.c | 17 +-
> libsepol/cil/src/cil_list.h | 16 +-
> libsepol/cil/src/cil_log.c | 23 +-
> libsepol/cil/src/cil_log.h | 6 +-
> libsepol/cil/src/cil_mem.c | 10 +-
> libsepol/cil/src/cil_mem.h | 1 -
> libsepol/cil/src/cil_parser.c | 88 +-
> libsepol/cil/src/cil_parser.h | 3 +-
> libsepol/cil/src/cil_policy.c | 473 +-
> libsepol/cil/src/cil_post.c | 685 +-
> libsepol/cil/src/cil_reset_ast.c | 18 +-
> libsepol/cil/src/cil_resolve_ast.c | 1432 +-
> libsepol/cil/src/cil_resolve_ast.h | 82 +-
> libsepol/cil/src/cil_stack.c | 7 +-
> libsepol/cil/src/cil_stack.h | 13 +-
> libsepol/cil/src/cil_strpool.c | 17 +-
> libsepol/cil/src/cil_symtab.c | 74 +-
> libsepol/cil/src/cil_symtab.h | 25 +-
> libsepol/cil/src/cil_tree.c | 79 +-
> libsepol/cil/src/cil_tree.h | 34 +-
> libsepol/cil/src/cil_verify.c | 639 +-
> libsepol/cil/src/cil_verify.h | 47 +-
> libsepol/cil/src/cil_write_ast.c | 374 +-
> libsepol/cil/src/cil_write_ast.h | 3 +-
> libsepol/cil/test/unit/AllTests.c | 66 +-
> libsepol/cil/test/unit/CilTest.c | 947 +-
> libsepol/cil/test/unit/CilTest.h | 2 +-
> libsepol/cil/test/unit/CuTest.c | 206 +-
> libsepol/cil/test/unit/CuTest.h | 148 +-
> libsepol/cil/test/unit/test_cil.c | 66 +-
> libsepol/cil/test/unit/test_cil_build_ast.c | 16702 ++++++++++------
> libsepol/cil/test/unit/test_cil_build_ast.h | 52 +-
> libsepol/cil/test/unit/test_cil_copy_ast.c | 2196 +-
> libsepol/cil/test/unit/test_cil_copy_ast.h | 112 +-
> libsepol/cil/test/unit/test_cil_fqn.c | 49 +-
> libsepol/cil/test/unit/test_cil_lexer.c | 117 +-
> libsepol/cil/test/unit/test_cil_list.c | 138 +-
> libsepol/cil/test/unit/test_cil_parser.c | 7 +-
> libsepol/cil/test/unit/test_cil_post.c | 734 +-
> libsepol/cil/test/unit/test_cil_post.h | 1 -
> libsepol/cil/test/unit/test_cil_resolve_ast.c | 16100 ++++++++++-----
> libsepol/cil/test/unit/test_cil_resolve_ast.h | 1 -
> libsepol/cil/test/unit/test_cil_symtab.c | 17 +-
> libsepol/cil/test/unit/test_cil_tree.c | 29 +-
> libsepol/cil/test/unit/test_integration.c | 29 +-
> libsepol/fuzz/binpolicy-fuzzer.c | 20 +-
> libsepol/fuzz/secilc-fuzzer.c | 7 +-
> libsepol/include/sepol/boolean_record.h | 41 +-
> libsepol/include/sepol/booleans.h | 32 +-
> libsepol/include/sepol/context.h | 18 +-
> libsepol/include/sepol/context_record.h | 44 +-
> libsepol/include/sepol/debug.h | 19 +-
> libsepol/include/sepol/errcodes.h | 14 +-
> libsepol/include/sepol/handle.h | 10 +-
> libsepol/include/sepol/ibendport_record.h | 9 +-
> libsepol/include/sepol/ibendports.h | 11 +-
> libsepol/include/sepol/ibpkey_record.h | 18 +-
> libsepol/include/sepol/ibpkeys.h | 14 +-
> libsepol/include/sepol/iface_record.h | 52 +-
> libsepol/include/sepol/interfaces.h | 34 +-
> libsepol/include/sepol/module.h | 68 +-
> libsepol/include/sepol/module_to_cil.h | 3 +-
> libsepol/include/sepol/node_record.h | 80 +-
> libsepol/include/sepol/nodes.h | 33 +-
> libsepol/include/sepol/policydb.h | 64 +-
> .../include/sepol/policydb/avrule_block.h | 15 +-
> libsepol/include/sepol/policydb/avtab.h | 93 +-
> libsepol/include/sepol/policydb/conditional.h | 67 +-
> libsepol/include/sepol/policydb/constraint.h | 70 +-
> libsepol/include/sepol/policydb/context.h | 36 +-
> libsepol/include/sepol/policydb/ebitmap.h | 74 +-
> libsepol/include/sepol/policydb/expand.h | 44 +-
> libsepol/include/sepol/policydb/flask_types.h | 2 +-
> libsepol/include/sepol/policydb/hashtab.h | 42 +-
> libsepol/include/sepol/policydb/hierarchy.h | 7 +-
> libsepol/include/sepol/policydb/link.h | 6 +-
> libsepol/include/sepol/policydb/mls_types.h | 64 +-
> libsepol/include/sepol/policydb/module.h | 2 +-
> libsepol/include/sepol/policydb/policydb.h | 499 +-
> libsepol/include/sepol/policydb/services.h | 147 +-
> libsepol/include/sepol/policydb/sidtab.h | 54 +-
> libsepol/include/sepol/policydb/symtab.h | 6 +-
> libsepol/include/sepol/policydb/util.h | 5 +-
> libsepol/include/sepol/port_record.h | 52 +-
> libsepol/include/sepol/ports.h | 33 +-
> libsepol/include/sepol/sepol.h | 2 +-
> libsepol/include/sepol/user_record.h | 66 +-
> libsepol/include/sepol/users.h | 32 +-
> libsepol/src/assertion.c | 486 +-
> libsepol/src/avrule_block.c | 34 +-
> libsepol/src/avtab.c | 150 +-
> libsepol/src/boolean_record.c | 72 +-
> libsepol/src/booleans.c | 68 +-
> libsepol/src/conditional.c | 156 +-
> libsepol/src/constraint.c | 4 +-
> libsepol/src/context.c | 109 +-
> libsepol/src/context.h | 34 +-
> libsepol/src/context_record.c | 124 +-
> libsepol/src/debug.c | 37 +-
> libsepol/src/debug.h | 42 +-
> libsepol/src/ebitmap.c | 97 +-
> libsepol/src/expand.c | 1004 +-
> libsepol/src/flask.h | 56 +-
> libsepol/src/handle.c | 13 +-
> libsepol/src/handle.h | 6 +-
> libsepol/src/hashtab.c | 44 +-
> libsepol/src/hierarchy.c | 222 +-
> libsepol/src/ibendport_record.c | 53 +-
> libsepol/src/ibendports.c | 42 +-
> libsepol/src/ibpkey_record.c | 70 +-
> libsepol/src/ibpkeys.c | 47 +-
> libsepol/src/iface_record.c | 98 +-
> libsepol/src/interfaces.c | 69 +-
> libsepol/src/kernel_to_cil.c | 715 +-
> libsepol/src/kernel_to_common.c | 96 +-
> libsepol/src/kernel_to_common.h | 77 +-
> libsepol/src/kernel_to_conf.c | 687 +-
> libsepol/src/link.c | 772 +-
> libsepol/src/mls.c | 232 +-
> libsepol/src/mls.h | 44 +-
> libsepol/src/module.c | 169 +-
> libsepol/src/module_internal.h | 1 -
> libsepol/src/module_to_cil.c | 1060 +-
> libsepol/src/node_record.c | 299 +-
> libsepol/src/nodes.c | 225 +-
> libsepol/src/optimize.c | 44 +-
> libsepol/src/polcaps.c | 32 +-
> libsepol/src/policydb.c | 1527 +-
> libsepol/src/policydb_convert.c | 12 +-
> libsepol/src/policydb_internal.h | 2 +-
> libsepol/src/policydb_public.c | 59 +-
> libsepol/src/policydb_validate.c | 561 +-
> libsepol/src/port_record.c | 104 +-
> libsepol/src/ports.c | 93 +-
> libsepol/src/private.h | 32 +-
> libsepol/src/services.c | 585 +-
> libsepol/src/sidtab.c | 55 +-
> libsepol/src/symtab.c | 11 +-
> libsepol/src/user_record.c | 131 +-
> libsepol/src/users.c | 95 +-
> libsepol/src/util.c | 68 +-
> libsepol/src/write.c | 447 +-
> libsepol/tests/debug.c | 8 +-
> libsepol/tests/debug.h | 4 +-
> libsepol/tests/helpers.c | 14 +-
> libsepol/tests/helpers.h | 26 +-
> libsepol/tests/libsepol-tests.c | 40 +-
> libsepol/tests/test-common.c | 101 +-
> libsepol/tests/test-common.h | 17 +-
> libsepol/tests/test-cond.c | 8 +-
> libsepol/tests/test-deps.c | 119 +-
> libsepol/tests/test-downgrade.c | 33 +-
> libsepol/tests/test-ebitmap.c | 73 +-
> libsepol/tests/test-ebitmap.h | 2 +-
> libsepol/tests/test-expander-attr-map.c | 126 +-
> libsepol/tests/test-expander-users.c | 15 +-
> libsepol/tests/test-expander.c | 53 +-
> libsepol/tests/test-linker-cond-map.c | 17 +-
> libsepol/tests/test-linker-cond-map.h | 4 +-
> libsepol/tests/test-linker-roles.c | 78 +-
> libsepol/tests/test-linker-roles.h | 4 +-
> libsepol/tests/test-linker-types.c | 73 +-
> libsepol/tests/test-linker-types.h | 4 +-
> libsepol/tests/test-linker.c | 13 +-
> libsepol/tests/test-neverallow.c | 53 +-
> libsepol/tests/test-neverallow.h | 2 +-
> libsepol/utils/chkcon.c | 10 +-
> libsepol/utils/sepol_check_access.c | 27 +-
> libsepol/utils/sepol_compute_av.c | 19 +-
> libsepol/utils/sepol_compute_member.c | 13 +-
> libsepol/utils/sepol_compute_relabel.c | 13 +-
> libsepol/utils/sepol_validate_transition.c | 16 +-
> mcstrans/src/mcscolor.c | 74 +-
> mcstrans/src/mcstrans.c | 898 +-
> mcstrans/src/mcstransd.c | 156 +-
> mcstrans/src/mls_level.c | 16 +-
> mcstrans/utils/transcon.c | 12 +-
> mcstrans/utils/untranscon.c | 12 +-
> policycoreutils/hll/pp/pp.c | 28 +-
> policycoreutils/load_policy/load_policy.c | 35 +-
> policycoreutils/newrole/hashtab.c | 33 +-
> policycoreutils/newrole/hashtab.h | 50 +-
> policycoreutils/newrole/newrole.c | 249 +-
> policycoreutils/run_init/open_init_pty.c | 62 +-
> policycoreutils/run_init/run_init.c | 117 +-
> policycoreutils/secon/secon.c | 225 +-
> policycoreutils/semodule/semodule.c | 756 +-
> policycoreutils/sestatus/sestatus.c | 78 +-
> policycoreutils/setfiles/restore.c | 56 +-
> policycoreutils/setfiles/restorecon_xattr.c | 45 +-
> policycoreutils/setfiles/setfiles.c | 58 +-
> policycoreutils/setsebool/setsebool.c | 39 +-
> policycoreutils/unsetfiles/unsetfiles.c | 68 +-
> .../audit2allow/sepolgen-ifgen-attr-helper.c | 39 +-
> restorecond/restore.c | 28 +-
> restorecond/restorecond.c | 17 +-
> restorecond/restorecond.h | 2 +-
> restorecond/stringslist.c | 8 +-
> restorecond/user.c | 220 +-
> restorecond/utmpwatcher.c | 7 +-
> restorecond/watch.c | 70 +-
> sandbox/seunshare.c | 382 +-
> secilc/secil2conf.c | 78 +-
> secilc/secil2tree.c | 85 +-
> secilc/secilc.c | 242 +-
> secilc/secilcheck.c | 65 +-
> .../semodule_expand/semodule_expand.c | 65 +-
> semodule-utils/semodule_link/semodule_link.c | 15 +-
> .../semodule_package/semodule_package.c | 91 +-
> .../semodule_package/semodule_unpackage.c | 24 +-
> 495 files changed, 49832 insertions(+), 34947 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] Add check_format Github CI job
2026-06-03 9:33 ` [PATCH 2/2] Add check_format Github CI job Petr Lautrbach
@ 2026-06-04 13:22 ` Stephen Smalley
2026-06-05 16:20 ` Stephen Smalley
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Smalley @ 2026-06-04 13:22 UTC (permalink / raw)
To: Petr Lautrbach; +Cc: selinux
On Wed, Jun 3, 2026 at 5:45 AM Petr Lautrbach <lautrbach@redhat.com> wrote:
>
> Run `make check-format` on PRs and pushes
>
> Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
> ---
>
> There's a test run available at https://github.com/SELinuxProject/selinux/pull/520
>
> https://github.com/SELinuxProject/selinux/actions/runs/26875462663/job/79261408494?pr=520
>
> .github/workflows/check_format.yml | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
> create mode 100644 .github/workflows/check_format.yml
>
> diff --git a/.github/workflows/check_format.yml b/.github/workflows/check_format.yml
> new file mode 100644
> index 000000000000..bb44e60a5507
> --- /dev/null
> +++ b/.github/workflows/check_format.yml
> @@ -0,0 +1,21 @@
> +name: Check format
> +
> +on:
> + push:
> + branches:
> + - main
> + pull_request:
> + branches:
> + - main
> +
> +jobs:
> + check-format:
> + runs-on: ubuntu-latest
> + container:
> + image: fedora:latest
> + steps:
> + - uses: actions/checkout@v4
> + - name: Install tools
> + run: dnf install -y make clang-tools-extra
> + - name: Check format
> + run: make check-format
> --
> 2.54.0
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] Add check_format Github CI job
2026-06-04 13:22 ` Stephen Smalley
@ 2026-06-05 16:20 ` Stephen Smalley
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Smalley @ 2026-06-05 16:20 UTC (permalink / raw)
To: Petr Lautrbach; +Cc: selinux
On Thu, Jun 4, 2026 at 9:22 AM Stephen Smalley
<stephen.smalley.work@gmail.com> wrote:
>
> On Wed, Jun 3, 2026 at 5:45 AM Petr Lautrbach <lautrbach@redhat.com> wrote:
> >
> > Run `make check-format` on PRs and pushes
> >
> > Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
>
> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Merged.
>
> > ---
> >
> > There's a test run available at https://github.com/SELinuxProject/selinux/pull/520
> >
> > https://github.com/SELinuxProject/selinux/actions/runs/26875462663/job/79261408494?pr=520
> >
> > .github/workflows/check_format.yml | 21 +++++++++++++++++++++
> > 1 file changed, 21 insertions(+)
> > create mode 100644 .github/workflows/check_format.yml
> >
> > diff --git a/.github/workflows/check_format.yml b/.github/workflows/check_format.yml
> > new file mode 100644
> > index 000000000000..bb44e60a5507
> > --- /dev/null
> > +++ b/.github/workflows/check_format.yml
> > @@ -0,0 +1,21 @@
> > +name: Check format
> > +
> > +on:
> > + push:
> > + branches:
> > + - main
> > + pull_request:
> > + branches:
> > + - main
> > +
> > +jobs:
> > + check-format:
> > + runs-on: ubuntu-latest
> > + container:
> > + image: fedora:latest
> > + steps:
> > + - uses: actions/checkout@v4
> > + - name: Install tools
> > + run: dnf install -y make clang-tools-extra
> > + - name: Check format
> > + run: make check-format
> > --
> > 2.54.0
> >
> >
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-06-05 16:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 9:33 [PATCH 1/2] Reformat all the code based on .clang-format Petr Lautrbach
2026-06-03 9:33 ` [PATCH 2/2] Add check_format Github CI job Petr Lautrbach
2026-06-04 13:22 ` Stephen Smalley
2026-06-05 16:20 ` Stephen Smalley
2026-06-03 9:42 ` [PATCH 1/2] Reformat all the code based on .clang-format Petr Lautrbach
2026-06-03 19:01 ` Petr Lautrbach
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.