Skip to content

RFC mkfs.ubifs: Implement selinux labelling support

Ritesh Harjani linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mkfs.ubifs: add_xattr is not depending on host XATTR supportubifs-utils/mkfs.ubifs/mkfs.ubifs.c+40 -400 replies
2/2mkfs.ubifs: Implement selinux labelling support in mkfs.ubifs.Makefile.am configure.ac ubifs-utils/Makemodule.am +1 more+149 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] mkfs.ubifs: Implement selinux labelling support

Hi All,

This patchset implements the selinux context labelling support in mkfs.ubifs utility which was discussed here [1]. Patchset is based upon previous work done by John [2]. Commit texts should explain about the change description.

I have tested this on my 4.9 kernel NAND based internal device with UBIFS and selinux enabled. With this we are able to set the respective selinux labels based on the input file_context provided in mkfs.ubifs command.

[1]:- http://lists.infradead.org/pipermail/linux-mtd/2018-May/081138.html
[2]:- http://lists.infradead.org/pipermail/linux-mtd/2014-February/052136.html

Ritesh Harjani (2):
mkfs.ubifs: add_xattr is not depending on host XATTR support mkfs.ubifs: Implement selinux labelling support in mkfs.ubifs.

 Makefile.am                         |   4 +
 configure.ac                        |  27 +++++
 ubifs-utils/Makemodule.am           |   4 +-
 ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 197 ++++++++++++++++++++++++++++--------
 4 files changed, 189 insertions(+), 43 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
a Linux Foundation Collaborative Project.