LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-13-2016, 02:38 AM   #1
skorm513
LQ Newbie
 
Registered: Nov 2015
Posts: 9

Rep: Reputation: Disabled
6.21. Attr-2.4.47 Testing fails half of the tests


Hi, I'm not sure how to proceed. While attempting to perform the testing section of the attr chapter, I fail half of the tests, and I don't know why, or if I should proceed or try to fix something.

I'm not quite skilled at interpreting the results of this, but it looks like it has something to do with selinux? My filesystem here is ext4, mounted with the "defaults" option.

output is below (apologies for the length).

Code:
make -j1 tests root-tests                                                                                                                          
/tools/bin/make include libmisc libattr attr getfattr setfattr examples test m4 man doc po debian package
make[1]: Entering directory '/sources/attr-2.4.47'
/tools/bin/make -C include
make[2]: Entering directory '/sources/attr-2.4.47/include'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/include'
/tools/bin/make -C libmisc
make[2]: Entering directory '/sources/attr-2.4.47/libmisc'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/libmisc'
/tools/bin/make -C libattr
make[2]: Entering directory '/sources/attr-2.4.47/libattr'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/libattr'
/tools/bin/make -C attr
make[2]: Entering directory '/sources/attr-2.4.47/attr'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/attr'
/tools/bin/make -C getfattr
make[2]: Entering directory '/sources/attr-2.4.47/getfattr'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/getfattr'
/tools/bin/make -C setfattr
make[2]: Entering directory '/sources/attr-2.4.47/setfattr'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/setfattr'
/tools/bin/make -C examples
make[2]: Entering directory '/sources/attr-2.4.47/examples'
rm -f copyattr dep dep.bak *.[1-9].gz *.tmpo *.mo       
make[2]: Leaving directory '/sources/attr-2.4.47/examples'
/tools/bin/make -C test
make[2]: Entering directory '/sources/attr-2.4.47/test'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/test'
/tools/bin/make -C m4
make[2]: Entering directory '/sources/attr-2.4.47/m4'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/m4'
/tools/bin/make -C man
make[2]: Entering directory '/sources/attr-2.4.47/man'
/tools/bin/make -C man1
make[3]: Entering directory '/sources/attr-2.4.47/man/man1'
make[3]: Nothing to be done for 'default'.
make[3]: Leaving directory '/sources/attr-2.4.47/man/man1'
/tools/bin/make -C man3
make[3]: Entering directory '/sources/attr-2.4.47/man/man3'
make[3]: Nothing to be done for 'default'.
make[3]: Leaving directory '/sources/attr-2.4.47/man/man3'
make[2]: Leaving directory '/sources/attr-2.4.47/man'
/tools/bin/make -C doc
make[2]: Entering directory '/sources/attr-2.4.47/doc'
make[2]: 'default' is up to date.
make[2]: Leaving directory '/sources/attr-2.4.47/doc'
/tools/bin/make -C po
make[2]: Entering directory '/sources/attr-2.4.47/po'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/po'
/tools/bin/make -C debian
make[2]: Entering directory '/sources/attr-2.4.47/debian'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/debian'
/tools/bin/make -C package
make[2]: Entering directory '/sources/attr-2.4.47/package'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/sources/attr-2.4.47/package'
make[1]: Leaving directory '/sources/attr-2.4.47'
/tools/bin/make -C test/ tests
make[1]: Entering directory '/sources/attr-2.4.47/test'
*** attr.test ***
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (\w+)}/ at run line 87.
[9] $ mkdir d -- ok
[10] $ cd d -- ok
[12] $ touch f -- ok
[13] $ setfattr -n user -v value f -- ok
[16] $ setfattr -n user. -v value f -- ok
[19] $ setfattr -n user.name f -- ok
[20] $ getfattr -d f -- ok
[25] $ setfattr -x user.name f -- ok
[26] $ sh -c 'getfattr -n user.name f && echo zero exit code' -- ok
[29] $ setfattr -n user.n -v value f -- ok
[30] $ rm f -- ok
[35] $ touch f -- ok
[36] $ setfattr -n user.vvvvvvvvvvvv -v vvvvvvvvvvvv f -- ok
[37] $ setfattr -n user.wwwwwwww -v wwwwwwww f -- ok
[38] $ setfattr -n user.xxxx -v xxxx f -- ok
[39] $ getfattr -d f -- ok
[46] $ setfattr -n user.wwwwwwww -v wwww f -- ok
[47] $ getfattr -d f -- ok
[54] $ setfattr -n user.xxxx -v xxxxxxxx f -- ok
[55] $ getfattr -d f -- ok
[62] $ rm f -- ok
[66] $ touch f -- ok
[67] $ setfattr -n user.name -v 0xbabe f -- ok
[68] $ setfattr -n user.name2 -v 0s3q2+7w== f -- ok
[69] $ setfattr -n user.name3 -v 0xdeface f -- ok
[70] $ getfattr -d -e hex f -- ok
[77] $ getfattr -d -e base64 f -- ok
[84] $ rm f -- ok
[88] $ touch f -- ok
[89] $ setfattr -n user.novalue f -- ok
[90] $ setfattr -n user.somename -v somevalue f -- ok
[91] $ setfattr -n user.somename -v somevalue f -- ok
[92] $ setfattr -n user.longername -v longervalue f -- ok
[93] $ setfattr -n user.short -v value f -- ok
[94] $ setfattr -n user.novalue-yet f -- ok
[95] $ ls -s f -- ok
[98] $ getfattr -d f -- ok
[107] $ setfattr -n user.novalue-yet -v avalue-now f -- ok
[108] $ getfattr -d f -- ok
[117] $ setfattr -x user.noname f -- ok
[120] $ setfattr -x user.somename f -- ok
[121] $ setfattr -x user.short f -- ok
[122] $ getfattr -d f -- ok
[129] $ setfattr -x user.longername f -- ok
[130] $ setfattr -x user.novalue f -- ok
[131] $ setfattr -x user.novalue-yet f -- ok
[132] $ getfattr -d f -- ok
[133] $ ls -s f -- ok
[136] $ rm f -- ok
[140] $ touch f g h -- ok
[141] $ setfattr -n user.novalue f g h -- ok
[142] $ getfattr f g h | ../sort-getfattr-output -- ok
[153] $ setfattr -n user.name -v value f -- ok
[154] $ getfattr f g h | ../sort-getfattr-output -- ok
[166] $ getfattr -d f g h | ../sort-getfattr-output -- ok
[178] $ setfattr -n user.name -v value g -- ok
[179] $ getfattr f g h | ../sort-getfattr-output -- ok
[192] $ setfattr -x user.novalue h -- ok
[193] $ getfattr f g h | ../sort-getfattr-output -- ok
[203] $ rm f g h -- ok
[207] $ touch f -- ok
[208] $ ln -s f l -- ok
[209] $ setfattr -n user.filename -v f l -- ok
[210] $ setfattr -n user.filename -v l l -- ok
[211] $ setfattr -h -n user.filename -v l l -- ok
[214] $ getfattr -d f l | ../sort-getfattr-output -- ok
[222] $ rm f -- ok
[226] $ mkdir src -- ok
[227] $ touch src/target -- ok
[228] $ setfattr -n user.color -v blue src/target -- ok
[229] $ ln -s src symlink -- ok
[230] $ getfattr -n user.color -h symlink 2>/dev/null -- ok
[234] $ touch "f " -- ok
[235] $ setfattr -n user.name -v value "f " -- ok
[236] $ getfattr -d "f " -- ok
[241] $ rm "f " -- ok
[245] $ touch f -- ok
[246] $ setfattr -n "user.sp ace" -v value f -- ok
[247] $ setfattr -n "user.special " -v value f -- ok
[248] $ getfattr f -- ok
[254] $ getfattr -d f -- ok
[260] $ setfattr -x "user.sp ace" f -- ok
[261] $ setfattr -n "user.sp ace" -v value f -- ok
[262] $ setfattr -x "user.sp ace" f -- ok
[263] $ setfattr -x "user.special " f -- ok
[264] $ rm f -- ok
[266] $ cd .. -- ok
[267] $ rm -rf d -- ok
[271] $ mkdir -p 1/2/3 -- ok
[272] $ setfattr -n "user.9" 1 -- ok
[273] $ setfattr -n "user.a" 1 -- ok
[274] $ setfattr -n "user.9" 1/2 -- ok
[275] $ setfattr -n "user.a" 1/2 -- ok
[276] $ setfattr -n "user.9" 1/2/3 -- ok
[277] $ setfattr -n "user.a" 1/2/3 -- ok
[279] $ getfattr -h -L -R -m '.' -e hex 1 | grep -v selinux | ./sort-getfattr-output -- ok
[293] $ getfattr -h -P -R -m '.' -e hex 1/2 | grep -v selinux | ./sort-getfattr-output -- ok
[303] $ rm -R 1 -- ok
[307] $ mkdir -p 1/sub -- ok
[308] $ mkdir 1/link -- ok
[309] $ touch 1/link/link-file -- ok
[310] $ touch 1/sub/sub-file -- ok
[311] $ ln -s `pwd`/1/link 1/sub/link -- ok
[312] $ setfattr -n "user.a" 1 -- ok
[313] $ setfattr -n "user.a" 1/link/link-file -- ok
[314] $ setfattr -n "user.a" 1/link -- ok
[315] $ setfattr -n "user.a" 1/sub/sub-file -- ok
[316] $ setfattr -n "user.a" 1/sub -- ok
[317] $ getfattr -P -R 1 | ./sort-getfattr-output -- ok
[337] $ getfattr -R -P 1/sub | ./sort-getfattr-output -- ok
[348] $ getfattr -L -R 1 | ./sort-getfattr-output -- ok
[371] $ getfattr -R 1/sub/link | ./sort-getfattr-output -- ok
[379] $ getfattr -L -R 1/sub/link | ./sort-getfattr-output -- ok
[387] $ rm -R 1 -- ok
114 commands (114 passed, 0 failed)
make[1]: Leaving directory '/sources/attr-2.4.47/test'
/tools/bin/make -C test/ root-tests
make[1]: Entering directory '/sources/attr-2.4.47/test'
Note: Tests must run as root
/bin/sh: @echo: command not found
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (\w+)}/ at run line 87.
[1] $ mkdir d -- ok
[2] $ cd d -- ok
[4] $ touch f -- ok
[5] $ setfattr -n user.test -v test f -- ok
[6] $ ln -s f l -- ok
[7] $ setfattr -h -n trusted.test -v test l -- ok
[10] $ getfattr -m- -d f -- failed
# file: f                             == # file: f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
user.test="test"                      != 
                                      != ~
[16] $ getfattr -m- -d l -- failed
# file: l                             == # file: l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
user.test="test"                      != 
                                      != ~
[22] $ getfattr -m- -hd l -- failed
# file: l                             == # file: l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != trusted.test="test"
trusted.test="test"                   != 
                                      != ~
[28] $ getfattr -m- -Rd . | ../sort-getfattr-output -- failed
# file: .                             != # file: f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: f                             != # file: l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
user.test="test"                      != 
                                      != ~
# file: l                             != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
user.test="test"                      != ~
                                      != ~
[36] $ getfattr -m- -Rhd . | ../sort-getfattr-output -- failed
# file: .                             != # file: f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: f                             != # file: l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != trusted.test="test"
user.test="test"                      != 
                                      != ~
# file: l                             != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
trusted.test="test"                   != ~
                                      != ~
[45] $ ln -s . here -- ok
[46] $ getfattr -m- -Rd here | ../sort-getfattr-output -- failed
# file: here                          != # file: here/f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: here/f                        != # file: here/l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
user.test="test"                      != 
                                      != ~
# file: here/here                     != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
# file: here/l                        != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
user.test="test"                      != ~
                                      != ~
[54] $ getfattr -m- -Rhd here -- failed
# file: here                          != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
[56] $ getfattr -m- -RLhd here | ../sort-getfattr-output -- failed
# file: here                          != # file: here/f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: here/f                        != # file: here/l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != trusted.test="test"
user.test="test"                      != 
                                      != ~
# file: here/here                     != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
# file: here/l                        != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
trusted.test="test"                   != ~
                                      != ~
[64] $ getfattr -m- -RPhd here -- failed
# file: here                          != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
[67] $ mkdir sub -- ok
[68] $ mv f l sub -- ok
[69] $ getfattr -m- -Rd . | ../sort-getfattr-output -- failed
# file: .                             != # file: sub/f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: here                          != # file: sub/l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: sub                           != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
# file: sub/f                         != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
user.test="test"                      != ~
                                      != ~
# file: sub/l                         != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
user.test="test"                      != ~
                                      != ~
[77] $ getfattr -m- -Rhd . | ../sort-getfattr-output -- failed
# file: .                             != # file: sub/f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: here                          != # file: sub/l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != trusted.test="test"
                                      == 
# file: sub                           != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
# file: sub/f                         != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
user.test="test"                      != ~
                                      != ~
# file: sub/l                         != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
trusted.test="test"                   != ~
                                      != ~
[86] $ mkdir sub2 -- ok
[87] $ ln -s ../sub sub2/to-sub -- ok
[88] $ getfattr -m- -Rhd sub2 -- failed
# file: sub2                          != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
# file: sub2/to-sub                   != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
[90] $ getfattr -m- -RLhd sub2 | ../sort-getfattr-output -- failed
# file: sub2                          != # file: sub2/to-sub/f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: sub2/to-sub                   != # file: sub2/to-sub/l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != trusted.test="test"
                                      == 
# file: sub2/to-sub/f                 != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
user.test="test"                      != ~
                                      != ~
# file: sub2/to-sub/l                 != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
trusted.test="test"                   != ~
                                      != ~
[98] $ getfattr -m- -RPhd sub2 -- failed
# file: sub2                          != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
# file: sub2/to-sub                   != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
[101] $ ln -s .. sub/up -- ok
[102] $ getfattr -m- -RLhd . | ../sort-getfattr-output -- failed
# file: .                             != # file: sub/f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: here                          != # file: sub/l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != trusted.test="test"
                                      == 
# file: sub                           != # file: sub2/to-sub/f
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != user.test="test"
                                      == 
# file: sub/f                         != # file: sub2/to-sub/l
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != trusted.test="test"
user.test="test"                      != 
                                      != ~
# file: sub/l                         != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
trusted.test="test"                   != ~
                                      != ~
# file: sub/up                        != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
# file: sub2                          != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
# file: sub2/to-sub                   != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
# file: sub2/to-sub/f                 != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
user.test="test"                      != ~
                                      != ~
# file: sub2/to-sub/l                 != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
trusted.test="test"                   != ~
                                      != ~
# file: sub2/to-sub/up                != ~
security.selinux="unconfined_u:object_r:unlabeled_t:s0" != ~
                                      != ~
[115] $ cd .. -- ok
[116] $ rm -rf d -- ok
29 commands (14 passed, 15 failed)
Makefile:46: recipe for target 'root/getfattr.test' failed
make[1]: *** [root/getfattr.test] Error 15
make[1]: Leaving directory '/sources/attr-2.4.47/test'
Makefile:116: recipe for target 'root-tests' failed
make: *** [root-tests] Error 2
 
Old 04-13-2016, 10:52 PM   #2
skorm513
LQ Newbie
 
Registered: Nov 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
Not quite sure what to do, as I've already remounted my ext4 LFS partition with the acl and user_xattr options in /etc/fstab.

The errors seems to all be exclusively related to the use of different variations of the getfattr command.

Last edited by skorm513; 04-13-2016 at 11:03 PM.
 
Old 04-14-2016, 02:57 AM   #3
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Just ignore it and move along.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
acl & attr install error bryan_S Linux From Scratch 2 06-20-2015 06:01 AM
udev - cannot recognise ATTR value glukoz.ziewa Programming 6 04-16-2012 06:19 AM
FC4 fails to boot half-way AlLinuxUK Fedora - Installation 4 07-23-2005 08:33 AM
intaling GCC-3.3.3. in chroot env FAILS tests xtrem Linux From Scratch 1 02-18-2005 12:24 PM
OpenBSD fails in benchmarking tests? diam0nd *BSD 2 03-31-2004 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration