restorecon context validation improvement
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 2 repliesIn review
- v22 patches 7 repliesSuperseded
- v11 patch 2 repliesSuperseded
Changes in v3 from the cover letter
- Fix compiler error caused by unused variable in selabel_validate()
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | libselinux: verify file_contexts when using restoreconlibselinux/ libselinux/ libselinux/ +3 more | +10 | 0 replies | |
| 2/2 | libselinux: echo line number of bad label in selabel_fini()libselinux/ libselinux/ libselinux/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] restorecon context validation improvement
In permissive, if a bad label is written to a file_context file, restorecon will not verify the label before succesfully applying the context. These patches fix validation of labels during restorecon while not breaking current behavior of lazy validation.
Changes since V1:
- Continue using lazy validation for restorecon that was broken in V1 of the patch.
- Add line number tracking for error messages in restorecon.
Changes since V2:
- Fix compiler error caused by unused variable in selabel_validate()
Yuli Khodorkovskiy (2):
libselinux: verify file_contexts when using restorecon
libselinux: echo line number of bad label in selabel_fini()
libselinux/src/label.c | 7 +++---- libselinux/src/label_backends_android.c | 2 +- libselinux/src/label_file.c | 2 +- libselinux/src/label_file.h | 3 ++- libselinux/src/label_internal.h | 7 +++---- libselinux/src/matchpathcon.c | 5 ++--- 6 files changed, 12 insertions(+), 14 deletions(-)
Signature · 1 line
2.14.3