Message ID | CA+icZUVmB1pSuG1_3-nkiKjoDH9UrvUEsZjy8hS6_+Y2yDyruA@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, May 30, 2016 at 6:02 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote: > I contacted the LTP mailing-list on the acl_test01 issues - WIP. > > From the LTP-ML I got the impulse to test with the xattr testcase... > > root# cd /opt/ltp ; LC_ALL=C ./runltp -s xattr | tee xattr.log > > ...this fails only in the cgroup_xattr testcase. > [...] The test seems to try getting/setting an xattr named "trusted." (no suffix). That's an invalid name; such invalid names are rejected since commit 98e9cb571 "vfs: Distinguish between full xattr names and proper prefixes" (v4.5-rc1). Could you try removing that from the LTP test and rerun it? Thanks, Andreas -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 5/30/16, Andreas Gruenbacher <agruenba@redhat.com> wrote: > On Mon, May 30, 2016 at 6:02 PM, Sedat Dilek <sedat.dilek@gmail.com> wrote: >> I contacted the LTP mailing-list on the acl_test01 issues - WIP. >> >> From the LTP-ML I got the impulse to test with the xattr testcase... >> >> root# cd /opt/ltp ; LC_ALL=C ./runltp -s xattr | tee xattr.log >> >> ...this fails only in the cgroup_xattr testcase. >> [...] > > The test seems to try getting/setting an xattr named "trusted." (no > suffix). That's an invalid name; such invalid names are rejected since > commit 98e9cb571 "vfs: Distinguish between full xattr names and proper > prefixes" (v4.5-rc1). > > Could you try removing that from the LTP test and rerun it? > AFAICS I need to re-compile... [ testcases/kernel/controllers/cgroup_xattr/cgroup_xattr.c ] ... /* only security.* & trusted.* are valid key names */ static struct tst_key tkeys[] = { { .name = "security.", .good = 1, }, { .name = "trusted.test", .good = 1, }, { .name = "trusted.", .good = 1, }, <--- XXX: This one only? { .name = "user.", .good = 0, }, { .name = "system.", .good = 0, }, }; ... Which "trusted." line or lines shall I remove? - Sedat - -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- ./testcases/bin/acl_test01.orig 2016-03-27 21:45:00.768007420 +0200 +++ ./testcases/bin/acl_test01 2016-05-30 14:41:50.195986299 +0200 @@ -41,8 +41,6 @@ export TCID=acltest01 export TST_TOTAL=5 export TST_COUNT=1 -. test.sh - TMP=${TMP:=/tmp} TEST_USER1="acltest1" @@ -54,6 +52,8 @@ FILE_ACL="$TMP/tacl/mount-ext3/test_file FILE_ACL_LINK="$TMP/tacl/mount-ext3/test_file_link" TCbin=`pwd` +. $TCbin/test.sh + COMMAND=$(command -v "getenforce" "setenforce" |wc -l) if [ $COMMAND -eq 2 ]; then SELINUX=$(getenforce)