libsemanage: genhomedircon replacement v2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | libsemanage: genhomedircon initial cleanuplibsemanage/ | +13 | 0 replies | |
| 2/5 | libsemanage: genhomedircon replacementlibselinux/ libsemanage/ libsemanage/ +5 more | +1207 | 2 replies | |
| 3/5 | libsemanage: test functionslibsemanage/ libsemanage/ libsemanage/ +1 more | +293 | 0 replies | |
| 4/5 | libsemanage: remove genhomedircon python scriptpolicycoreutils/ policycoreutils/ policycoreutils/ | +1 | 0 replies | |
| 5/5 | libsemanage: genhomedircon enable/disable GHDClibsemanage/ libsemanage/ libsemanage/ +1 more | +31 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [patch 0/5] libsemanage: genhomedircon replacement v2
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 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.
* FIXED: memory leaks with getline()
* FIXED: botched SEUsers in strict policies
* FIXED: extra blank lines in context file
The third patch is a set of tests for the new functions in utilities.c.
The fourth patch removes the old genhomedircon script.
The Final patch adds a way to enable/disable genhomedircon via semanage.conf by adding 'disable-genhomedircon = true'.
Since Genhomedircon is no longer an external program, took out the [genhomedircon] section from semanage.conf.
The old Genhomedircon script ignores some relevent entries in the template file -- a patch for this bug has already been submitted.
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.