Skip to content

libsemanage/libsepol object serialization and ps-api

[email protected] selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest33 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33libsepol: basic serilization supportlibsepol/include/sepol/handle.h libsepol/src/handle.c libsepol/src/handle.h +3 more+546 -012 replies
2/33libsepol: boolean serializationlibsepol/include/sepol/boolean_record.h libsepol/src/boolean_internal.h libsepol/src/boolean_record.c+108 -01 reply
3/33libsepol: context serializationlibsepol/include/sepol/context_record.h libsepol/src/context_internal.h libsepol/src/context_record.c+96 -00 replies
4/33libsepol: interface serializationlibsepol/include/sepol/iface_record.h libsepol/src/iface_internal.h libsepol/src/iface_record.c+127 -00 replies
5/33libsepol: node serializationlibsepol/include/sepol/node_record.h libsepol/src/node_internal.h libsepol/src/node_record.c+167 -00 replies
6/33libsepol: port serializationlibsepol/include/sepol/port_record.h libsepol/src/port_internal.h libsepol/src/port_record.c+137 -00 replies
7/33libsepol: user serializationlibsepol/include/sepol/user_record.h libsepol/src/user_internal.h libsepol/src/user_record.c+190 -00 replies
8/33libsemanage: DESTDIR support in INCLUDE and safe test targetlibsemanage/tests/Makefile+2 -20 replies
9/33libsemanage: dbase/dconfig cleanuplibsemanage/src/booleans_policydb.c libsemanage/src/database.c libsemanage/src/database.h +13 more+381 -1800 replies
10/33libsemanage: database serializationlibsemanage/src/database.c libsemanage/src/database.h libsemanage/src/database_policydb.c+184 -00 replies
11/33libsemanage: endianness macroslibsemanage/src/byteswap.h+20 -00 replies
12/33libsemanage: basic serializationlibsemanage/include/semanage/handle.h libsemanage/src/handle.c libsemanage/src/handle_internal.h +3 more+485 -03 replies
13/33libsemanage: testing infrastructurelibsemanage/tests/globals.h+27 -00 replies
14/33libsemanage: boolean serializationlibsemanage/include/semanage/booleans_active.h libsemanage/include/semanage/booleans_local.h libsemanage/include/semanage/booleans_policy.h +8 more+386 -30 replies
15/33libsemanage: context serializationlibsemanage/src/context_internal.h libsemanage/src/context_record.c libsemanage/tests/libsemanage-tests.c +2 more+272 -20 replies
16/33libsemanage: fcontext serializationlibsemanage/include/semanage/fcontexts_local.h libsemanage/include/semanage/fcontexts_policy.h libsemanage/src/fcontext_internal.h +6 more+503 -30 replies
17/33libsemanage: interface serializationlibsemanage/include/semanage/interfaces_local.h libsemanage/include/semanage/interfaces_policy.h libsemanage/src/iface_internal.h +6 more+367 -20 replies
18/33libsemanage: node serializationlibsemanage/include/semanage/nodes_local.h libsemanage/include/semanage/nodes_policy.h libsemanage/src/node_internal.h +6 more+368 -20 replies
19/33libsemanage: port serializationlibsemanage/include/semanage/ports_local.h libsemanage/include/semanage/ports_policy.h libsemanage/src/port_internal.h +6 more+357 -20 replies
20/33libsemanage: seuser serializationlibsemanage/include/semanage/seusers_local.h libsemanage/include/semanage/seusers_policy.h libsemanage/src/seuser_internal.h +6 more+429 -40 replies
21/33libsemanage: user serializationlibsemanage/include/semanage/users_local.h libsemanage/include/semanage/users_policy.h libsemanage/src/user_base_record.c +8 more+647 -40 replies
22/33libsemanage: module serializationlibsemanage/include/semanage/modules.h libsemanage/src/libsemanage.map libsemanage/src/module_internal.h +1 more+155 -80 replies
23/33libsemanage: commit number serializationlibsemanage/include/semanage/policy.h libsemanage/src/libsemanage.map libsemanage/src/policy.c +1 more+127 -00 replies
24/33libsemanage: networking supportlibsemanage/include/semanage/messages.h libsemanage/include/semanage/semanage.h libsemanage/src/messages.c +1 more+523 -00 replies
25/33libsemanage: policy server database hookslibsemanage/include/semanage/database_ps.h libsemanage/include/semanage/handle.h libsemanage/include/semanage/semanage.h +22 more+2412 -145 replies
26/33libsemanage: module serialization testslibsemanage/tests/libsemanage-tests.c libsemanage/tests/test_modules.c libsemanage/tests/test_modules.h+271 -00 replies
27/33libsemanage: booleans serialization testslibsemanage/tests/libsemanage-tests.c libsemanage/tests/test_booleans_active.c libsemanage/tests/test_booleans_active.h +6 more+1438 -00 replies
28/33libsemanage: fcontexts serialization testslibsemanage/tests/libsemanage-tests.c libsemanage/tests/test_fcontexts_file.c libsemanage/tests/test_fcontexts_file.h +2 more+995 -00 replies
29/33libsemanage: interface serialization testslibsemanage/tests/libsemanage-tests.c libsemanage/tests/test_interfaces_file.c libsemanage/tests/test_interfaces_file.h +2 more+1021 -00 replies
30/33libsemanage: node serialization testslibsemanage/tests/libsemanage-tests.c libsemanage/tests/test_nodes_file.c libsemanage/tests/test_nodes_file.h +2 more+991 -00 replies
31/33libsemanage: port serialization testslibsemanage/tests/libsemanage-tests.c libsemanage/tests/test_ports_file.c libsemanage/tests/test_ports_file.h +2 more+970 -00 replies
32/33libsemanage: seuser serialization testslibsemanage/tests/libsemanage-tests.c libsemanage/tests/test_seusers_file.c libsemanage/tests/test_seusers_file.h +2 more+880 -00 replies
33/33libsemanage: user serialization testslibsemanage/tests/libsemanage-tests.c libsemanage/tests/test_users_file.c libsemanage/tests/test_users_file.h +2 more+995 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/33] libsemanage/libsepol object serialization and ps-api

This is the majority of the patches from the policy server release a few months ago. This implements object serialization to send objects (eg., booleans, file contexts, etc) across the line to the policy server. It also implements the line protocol to connect to the policy server and the backend for libsemanage so that semodule, semanage, etc will talk to a policy server instead of doing local operations.

The object serialization will also be necessary for the policy representation branch as we will use this infrastructure to serialize the policy tree for module reading and writing.

The only part left for the policy server is the hooks that were implemented in the expander. As the policy representation work is going on and should remove the expander entirely these patches will have to wait until we have enough of the new representation work to implement them there.

This is obviously meant only for trunk and the policyrep branch.

Signature · 4 lines
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.