Skip to content

libsemanage: genhomedircon replacement

[email protected] selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 31 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libsemanage: genhomedircon initial cleanuplibsemanage/src/semanage_store.c+13 -60 replies
2/4libsemanage: genhomedircon replacementlibselinux/src/file_path_suffixes.h libsemanage/src/Makefile libsemanage/src/genhomedircon.c +5 more+1205 -81 reply
3/4libsemanage: test functionslibsemanage/tests/Makefile libsemanage/tests/libsemanage-tests.c libsemanage/tests/test_utilities.c +1 more+293 -10 replies
4/4libsemanage: remove genhomedircon python scriptpolicycoreutils/scripts/Makefile policycoreutils/scripts/genhomedircon policycoreutils/scripts/genhomedircon.8+1 -4870 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [patch 0/4] libsemanage: genhomedircon replacement

This replaces genhomedircon with equivalent functionality in libsemanage. The homedir_template is also no longer installed, this leaves some unused path functions in libselinux but removing those would break the ABI.

This does the same things that genhomedircon did though some seemed strange, like removing /sbin/nologin from the list of valid shells, presumably to keep ftp users and such from getting file contexts generated for them, I'm not sure how valid the assumption is but we didn't want to change the functionality of genhomedircon in this patch set.

This patch also generalizes some functionality of genhomedircon so that it can be extended in the future (ex: for policy server user contexts)

The first patch does some cleanup to make way for the new genhomedircon.

The second patch adds genhomedircon.c and utilities.c to libsemanage. It calls the code in genhomedircon.c from semanage_store.c and removes the prior call to genhomedircon. This version uses libustr for string manipulations, which creates an external dependency available in the development yum repository. There is, however, an option to embed the ustr code directly into the library and eliminate the runtime dependency.

The third patch is a set of tests for the new functions in utilities.c.

The final patch removes the old genhomedircon script.

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.