Skip to contentSkip to conversation

Make attr ptest pass when selinux enabled

PATCH New [email protected] 1 participant 2 messages Jul 27, 2016

lore
Share & tools
lore
#0 lore raw

cover Make attr ptest pass when selinux enabled

From: Kai Kang <[email protected]>

The following changes since commit 36feb38045b7a2af86ece147fec54b0db3bf491f:

linux-yocto: Update genericx86* SRCREVs for linux-yocto 4.4 (2016-07-21 07:48:53 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib kangkai/attr
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/attr

Kai Kang (1):
attr: make ptest pass when selinux enabled

 meta/recipes-support/attr/attr.inc                 |  2 +-
 .../files/filter-selinux-attr-from-output.patch    | 41 ++++++++++++++++++++++
 2 files changed, 42 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/attr/files/filter-selinux-attr-from-output.patch
Signature · 1 line
2.9.2.368.g08bb350
#1 lore raw

PATCH 1/1 attr: make ptest pass when selinux enabled

From: Kai Kang <[email protected]>

When selinux is enabled, a file has a default attribute "security.selinux" and the output of getfattr shows:

# file: here
security.selinux="system_u:object_r:lib_t:s0"

That always causes more output of command getfattr than expected. Filter out selinux related attribute info, and if the file has only selinux attribute info, remove its whole output.

---
 meta/recipes-support/attr/attr.inc                 |  2 +-
 .../files/filter-selinux-attr-from-output.patch    | 41 ++++++++++++++++++++++
 2 files changed, 42 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/attr/files/filter-selinux-attr-from-output.patch
meta/recipes-support/attr/attr.inc +1 -1
index 6860978..9f1a208 100644
@@ -13,8 +13,8 @@ LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
 
 SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.src.tar.gz \
            file://run-ptest \
+           file://filter-selinux-attr-from-output.patch \
 "
-
 require ea-acl.inc
 
 # libdir should point to .la
meta/recipes-support/attr/files/filter-selinux-attr-from-output.patch new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.9.2.368.g08bb350