Skip to content

RFC SELinux modernizations

Christian Göttsche selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7struct commonio_db[selinux]: do not use deprecated type security_context_tlib/commonio.h src/useradd.c src/userdel.c +1 more+10 -50 replies
2/7vipw[selinux]: do not use deprecated typedef and skip context translationsrc/vipw.c+5 -50 replies
3/7selinux.c: do not use deprecated typedef and skip context translationlib/selinux.c+6 -60 replies
4/7selinux.c:reset_selinux_file_context(): do not fail in permissive modelib/selinux.c+1 -10 replies
5/7selinux.c: use modern selabel interface instead of deprecated matchpathconlib/selinux.c+24 -120 replies
6/7set_selinux_file_context(): prepare context for actual file typelib/commonio.c lib/prototypes.h lib/selinux.c +2 more+11 -110 replies
7/7selinux: only open selabel database oncelib/selinux.c+16 -60 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJames Carter
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC SHADOW PATCH 0/7] SELinux modernizations

Modernize SELinux parts of shadow
(https://github.com/shadow-maint/shadow).

Upstream pull request: https://github.com/shadow-maint/shadow/pull/323

Christian Göttsche (7):
struct commonio_db[selinux]: do not use deprecated type
security_context_t
vipw[selinux]: do not use deprecated typedef and skip context
translation
selinux.c: do not use deprecated typedef and skip context translation selinux.c:reset_selinux_file_context(): do not fail in permissive mode selinux.c: use modern selabel interface instead of deprecated
matchpathcon
set_selinux_file_context(): prepare context for actual file type
selinux: only open selabel database once

 lib/commonio.c    |  4 ++--
 lib/commonio.h    |  6 +----
 lib/prototypes.h  |  2 +-
 lib/selinux.c     | 60 ++++++++++++++++++++++++++++++++---------------
 libmisc/copydir.c |  8 +++----
 src/useradd.c     |  7 ++++--
 src/userdel.c     |  3 +++
 src/usermod.c     |  3 +++
 src/vipw.c        | 10 ++++----
 9 files changed, 65 insertions(+), 38 deletions(-)
Signature · 1 line
2.31.0