2.13.4: parser check fails
After building version 2.13.4 for Arch Linux, I'm running the various tests:
make -C libraries/libapparmor check
make -C binutils check
make -C parser check
The last command fails though:
make: Entering directory '/build/apparmor/src/apparmor-2.13.4/parser'
which: no rpm in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
LANG=C podchecker -warning -warning *.pod
aa-teardown.pod pod syntax OK.
apparmor.d.pod pod syntax OK.
apparmor_parser.pod pod syntax OK.
apparmor.pod pod syntax OK.
subdomain.conf.pod pod syntax OK.
echo "" | LC_ALL=C sed -n -e 's/[ \t]\?AF_MAX[ \t]\+[0-9]\+,//g' -e 's/[ \t]\+\?AF_\([A-Z0-9_]\+\)[ \t]\+\([0-9]\+\),/#ifndef AF_\1\n# define AF_\1 \2\n#endif\nAA_GEN_NET_ENT("\L\1", \UAF_\1)\n\n/pg' > af_names.h
echo "" | LC_ALL=C sed -n -e 's/.*,[ \t]\+AF_MAX[ \t]\+\([0-9]\+\),\?.*/#define AA_AF_MAX \1\n/p' >> af_names.h
# cat af_names.h
g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -I../libraries/libapparmor/include -c -o network.o network.c
make[1]: Entering directory '/build/apparmor/src/apparmor-2.13.4/parser/libapparmor_re'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/build/apparmor/src/apparmor-2.13.4/parser/libapparmor_re'
g++ -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -I../libraries/libapparmor/include -o apparmor_parser parser_common.o parser_include.o parser_interface.o parser_lex.o parser_main.o parser_misc.o parser_merge.o parser_symtab.o parser_yacc.o parser_regex.o parser_variable.o parser_policy.o parser_alias.o common_optarg.o lib.o network.o mount.o dbus.o profile.o rule.o signal.o ptrace.o af_rule.o af_unix.o policy_cache.o \
libapparmor_re/libapparmor_re.a -static-libgcc -static-libstdc++ -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L../libraries/libapparmor/src/.libs -Wl,-Bstatic -lapparmor -Wl,-Bdynamic -lpthread
g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -I../libraries/libapparmor/include -DUNIT_TEST -Wno-unused-result -o tst_regex parser_regex.c parser_common.o parser_include.o parser_interface.o parser_misc.o parser_merge.o parser_symtab.o parser_variable.o parser_policy.o parser_alias.o lib.o network.o mount.o dbus.o profile.o rule.o signal.o ptrace.o af_rule.o af_unix.o libapparmor_re/libapparmor_re.a -static-libgcc -static-libstdc++ -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L../libraries/libapparmor/src/.libs -Wl,-Bstatic -lapparmor -Wl,-Bdynamic -lpthread
g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -I../libraries/libapparmor/include -DUNIT_TEST -Wno-unused-result -o tst_misc parser_misc.c parser_common.o parser_include.o parser_interface.o parser_merge.o parser_symtab.o parser_regex.o parser_variable.o parser_policy.o parser_alias.o lib.o network.o mount.o dbus.o profile.o rule.o signal.o ptrace.o af_rule.o af_unix.o libapparmor_re/libapparmor_re.a -static-libgcc -static-libstdc++ -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L../libraries/libapparmor/src/.libs -Wl,-Bstatic -lapparmor -Wl,-Bdynamic -lpthread
g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -I../libraries/libapparmor/include -DUNIT_TEST -Wno-unused-result -o tst_symtab parser_symtab.c parser_common.o parser_include.o parser_interface.o parser_misc.o parser_merge.o parser_regex.o parser_variable.o parser_policy.o parser_alias.o lib.o network.o mount.o dbus.o profile.o rule.o signal.o ptrace.o af_rule.o af_unix.o libapparmor_re/libapparmor_re.a -static-libgcc -static-libstdc++ -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L../libraries/libapparmor/src/.libs -Wl,-Bstatic -lapparmor -Wl,-Bdynamic -lpthread
g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -I../libraries/libapparmor/include -DUNIT_TEST -Wno-unused-result -o tst_variable parser_variable.c parser_common.o parser_include.o parser_interface.o parser_misc.o parser_merge.o parser_symtab.o parser_regex.o parser_policy.o parser_alias.o lib.o network.o mount.o dbus.o profile.o rule.o signal.o ptrace.o af_rule.o af_unix.o libapparmor_re/libapparmor_re.a -static-libgcc -static-libstdc++ -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L../libraries/libapparmor/src/.libs -Wl,-Bstatic -lapparmor -Wl,-Bdynamic -lpthread
g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat-security -Wunused-parameter -std=gnu++0x -D_GNU_SOURCE -DPACKAGE=\"apparmor-parser\" -DLOCALEDIR=\"/usr/share/locale\" -DSUBDOMAIN_CONFDIR=\"/etc/apparmor\" -I../libraries/libapparmor/include -DUNIT_TEST -Wno-unused-result -o tst_lib lib.c parser_common.o parser_include.o parser_interface.o parser_misc.o parser_merge.o parser_symtab.o parser_regex.o parser_variable.o parser_policy.o parser_alias.o network.o mount.o dbus.o profile.o rule.o signal.o ptrace.o af_rule.o af_unix.o libapparmor_re/libapparmor_re.a -static-libgcc -static-libstdc++ -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L../libraries/libapparmor/src/.libs -Wl,-Bstatic -lapparmor -Wl,-Bdynamic -lpthread
*** running tst_regex
parser_common.c: Regex error: trailing '\' escape character
parser_common.c: Unable to parse input line '\'
Warning from stdin (line 1): Character b was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character b was quoted unnecessarily, dropped preceding quote ('\') character
parser_common.c: Regex error: trailing '\' escape character
parser_common.c: Unable to parse input line 'blort\'
Warning from stdin (line 1): Character . was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character . was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character + was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character + was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character | was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character | was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character ( was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character ( was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character ) was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character ) was quoted unnecessarily, dropped preceding quote ('\') character
parser_common.c: Regex grouping error: Unclosed grouping or character class, expecting close }
parser_common.c: Unable to parse input line '[blort'
parser_common.c: Regex grouping error: Unclosed grouping or character class, expecting close }
parser_common.c: Unable to parse input line 'b[lort'
parser_common.c: Regex grouping error: Unclosed grouping or character class, expecting close }
parser_common.c: Unable to parse input line 'blort['
parser_common.c: Regex grouping error: Invalid close ], no matching open [ detected
parser_common.c: Unable to parse input line 'blort]'
parser_common.c: Regex grouping error: Invalid close ], no matching open [ detected
parser_common.c: Unable to parse input line 'blo]rt'
parser_common.c: Regex grouping error: Invalid close ], no matching open [ detected
parser_common.c: Unable to parse input line ']blort'
parser_common.c: Regex grouping error: Invalid number of items between {}
parser_common.c: Unable to parse input line '{beta}'
parser_common.c: Regex grouping error: Unclosed grouping or character class, expecting close }
parser_common.c: Unable to parse input line 'biz{beta'
parser_common.c: Regex grouping error: Invalid number of items between {}
parser_common.c: Regex grouping error: Invalid close }, no matching open { detected
parser_common.c: Unable to parse input line 'biz}beta'
parser_common.c: Regex grouping error: Unclosed grouping or character class, expecting close }
parser_common.c: Unable to parse input line 'biz{be,ta'
parser_common.c: Regex grouping error: Invalid number of items between {}
parser_common.c: Regex grouping error: Invalid close }, no matching open { detected
parser_common.c: Unable to parse input line 'biz,be}ta'
parser_common.c: Regex grouping error: Invalid number of items between {}
parser_common.c: Unable to parse input line 'biz{}beta'
parser_common.c: Regex grouping error: Invalid number of items between {}
parser_common.c: Unable to parse input line '{{alpha,blort,nested}beta}'
parser_common.c: Regex grouping error: Exceeded maximum nesting of {}
parser_common.c: Regex grouping error: Unclosed grouping or character class, expecting close }
parser_common.c: Unable to parse input line '{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a{a,b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b},b}b,blort}'
parser_common.c: Regex grouping error: Unclosed grouping or character class, expecting close }
parser_common.c: Unable to parse input line '\\['
parser_common.c: Regex grouping error: Invalid close ], no matching open [ detected
parser_common.c: Unable to parse input line '\\]'
parser_common.c: Regex grouping error: Unclosed grouping or character class, expecting close }
parser_common.c: Unable to parse input line '\\{'
parser_common.c: Regex grouping error: Invalid number of items between {}
parser_common.c: Regex grouping error: Invalid close }, no matching open { detected
parser_common.c: Unable to parse input line '\\}'
Warning from stdin (line 1): Character l was quoted unnecessarily, dropped preceding quote ('\') character
Warning from stdin (line 1): Character l was quoted unnecessarily, dropped preceding quote ('\') character
*** running tst_misc
*** running tst_symtab
Variable not_a_set_variable is not a set variable
Referenced variable not_a_set_variable is a boolean used in set context
Variable @{recursive_1} is referenced recursively (by @{recursive_3})
Variable @{defined_var} references undefined variable @{undefined_var}
'test' is already defined
Failed to find declaration for: no_such_variable
'abuse' is already defined
'stereopuff' is already defined
Variable stereopuff is not a boolean variable
@set_var_1 = "set_value@{set_var_2}"
@set_var_1 = "set_valuesome other set_value"
@set_var_1 = "set_value@{set_var_2}"
$abuse = false
@eek = "Mocking@{monopuff}bir@{stereopuff}d@{stereopuff}"
@monopuff = "Mockingbird"
$shenanigan = true
@stereopuff = "/in/direction" "Fun to Steal" "Unsupervised"
@test = "test value"
@testing = "testing"
$abuse = false
@eek = "Mocking@{monopuff}bir@{stereopuff}d@{stereopuff}"
@monopuff = "Mockingbird"
$shenanigan = true
@stereopuff = "/in/direction" "Fun to Steal" "Unsupervised"
@test = "test value"
@testing = "testing"
$abuse = false
@eek = "MockingMockingbirdbirUnsuperviseddUnsupervised" "MockingMockingbirdbirUnsuperviseddFun to Steal" "MockingMockingbirdbirUnsupervisedd/in/direction" "MockingMockingbirdbirFun to StealdUnsupervised" "MockingMockingbirdbirFun to StealdFun to Steal" "MockingMockingbirdbirFun to Steald/in/direction" "MockingMockingbirdbir/in/directiondUnsupervised" "MockingMockingbirdbir/in/directiondFun to Steal" "MockingMockingbirdbir/in/directiond/in/direction"
@monopuff = "Mockingbird"
$shenanigan = true
@stereopuff = "Unsupervised" "Fun to Steal" "/in/direction"
@test = "test value"
@testing = "testing"
*** running tst_variable
*** running tst_lib
make[1]: Entering directory '/build/apparmor/src/apparmor-2.13.4/parser/tst'
Cache read/write disabled: interface file missing. (Kernel needs AppArmor 2.4 compatibility patch.)
Error Output: PASS
FsFFFFsFFFFsFFFFsFFFFsFFF./caching.py:272: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(time1, time2)
FFFFFFF...FssFFFFFFFFFFFFFF....FssFFFFFFF
======================================================================
FAIL: test_cache_when_requested (__main__.AAParserBasicCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 173, in test_cache_when_requested
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-4m2m8yei --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-4m2m8yei/cache -q --write-cache -r /tmp/aa-caching-4m2m8yei/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-4m2m8yei/sbin.pingy in /tmp/aa-caching-4m2m8yei/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_by_default (__main__.AAParserBasicCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 157, in test_no_cache_by_default
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-8bvnkmq1 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-8bvnkmq1/cache -q -r /tmp/aa-caching-8bvnkmq1/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-8bvnkmq1/sbin.pingy in /tmp/aa-caching-8bvnkmq1/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_w_skip_cache (__main__.AAParserBasicCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 165, in test_no_cache_w_skip_cache
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-sp0c_1qe --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-sp0c_1qe/cache -q --write-cache --skip-cache -r /tmp/aa-caching-sp0c_1qe/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-sp0c_1qe/sbin.pingy in /tmp/aa-caching-sp0c_1qe/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_write_features_when_caching (__main__.AAParserBasicCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 181, in test_write_features_when_caching
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-b44myd17 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-b44myd17/cache -q --write-cache -r /tmp/aa-caching-b44myd17/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-b44myd17/sbin.pingy in /tmp/aa-caching-b44myd17/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_when_requested (__main__.AAParserAltCacheBasicTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 173, in test_cache_when_requested
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-m2538g64 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-m2538g64/cache --cache-loc /tmp/aa-caching-m2538g64/aa-alt-cache357a5x7n -q --write-cache -r /tmp/aa-caching-m2538g64/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-m2538g64/sbin.pingy in /tmp/aa-caching-m2538g64/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_by_default (__main__.AAParserAltCacheBasicTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 157, in test_no_cache_by_default
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-_o8bv4a7 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-_o8bv4a7/cache --cache-loc /tmp/aa-caching-_o8bv4a7/aa-alt-cachebyuisjjc -q -r /tmp/aa-caching-_o8bv4a7/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-_o8bv4a7/sbin.pingy in /tmp/aa-caching-_o8bv4a7/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_w_skip_cache (__main__.AAParserAltCacheBasicTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 165, in test_no_cache_w_skip_cache
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-axism9fq --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-axism9fq/cache --cache-loc /tmp/aa-caching-axism9fq/aa-alt-cachez1e79n8w -q --write-cache --skip-cache -r /tmp/aa-caching-axism9fq/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-axism9fq/sbin.pingy in /tmp/aa-caching-axism9fq/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_write_features_when_caching (__main__.AAParserAltCacheBasicTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 181, in test_write_features_when_caching
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-8c6_aqxv --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-8c6_aqxv/cache --cache-loc /tmp/aa-caching-8c6_aqxv/aa-alt-cacheg6ft7p74 -q --write-cache -r /tmp/aa-caching-8c6_aqxv/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-8c6_aqxv/sbin.pingy in /tmp/aa-caching-8c6_aqxv/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_when_requested (__main__.AAParserCreateCacheBasicTestsCacheExists)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 173, in test_cache_when_requested
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-12eo8ct6 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-12eo8ct6/cache --create-cache-dir -q --write-cache -r /tmp/aa-caching-12eo8ct6/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-12eo8ct6/sbin.pingy in /tmp/aa-caching-12eo8ct6/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_by_default (__main__.AAParserCreateCacheBasicTestsCacheExists)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 157, in test_no_cache_by_default
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-uzqly6r0 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-uzqly6r0/cache --create-cache-dir -q -r /tmp/aa-caching-uzqly6r0/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-uzqly6r0/sbin.pingy in /tmp/aa-caching-uzqly6r0/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_w_skip_cache (__main__.AAParserCreateCacheBasicTestsCacheExists)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 165, in test_no_cache_w_skip_cache
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-g_70tusk --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-g_70tusk/cache --create-cache-dir -q --write-cache --skip-cache -r /tmp/aa-caching-g_70tusk/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-g_70tusk/sbin.pingy in /tmp/aa-caching-g_70tusk/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_write_features_when_caching (__main__.AAParserCreateCacheBasicTestsCacheExists)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 181, in test_write_features_when_caching
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-tngd4yw_ --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-tngd4yw_/cache --create-cache-dir -q --write-cache -r /tmp/aa-caching-tngd4yw_/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-tngd4yw_/sbin.pingy in /tmp/aa-caching-tngd4yw_/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_when_requested (__main__.AAParserCreateCacheBasicTestsCacheNotExist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 173, in test_cache_when_requested
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-vgcf29pe --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-vgcf29pe/cache --create-cache-dir -q --write-cache -r /tmp/aa-caching-vgcf29pe/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-vgcf29pe/sbin.pingy in /tmp/aa-caching-vgcf29pe/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_by_default (__main__.AAParserCreateCacheBasicTestsCacheNotExist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 157, in test_no_cache_by_default
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-45ema790 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-45ema790/cache --create-cache-dir -q -r /tmp/aa-caching-45ema790/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-45ema790/sbin.pingy in /tmp/aa-caching-45ema790/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_w_skip_cache (__main__.AAParserCreateCacheBasicTestsCacheNotExist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 165, in test_no_cache_w_skip_cache
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-urh8_mm_ --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-urh8_mm_/cache --create-cache-dir -q --write-cache --skip-cache -r /tmp/aa-caching-urh8_mm_/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-urh8_mm_/sbin.pingy in /tmp/aa-caching-urh8_mm_/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_write_features_when_caching (__main__.AAParserCreateCacheBasicTestsCacheNotExist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 181, in test_write_features_when_caching
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-vwj6djxw --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-vwj6djxw/cache --create-cache-dir -q --write-cache -r /tmp/aa-caching-vwj6djxw/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-vwj6djxw/sbin.pingy in /tmp/aa-caching-vwj6djxw/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_when_requested (__main__.AAParserCreateCacheAltCacheTestsCacheNotExist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 173, in test_cache_when_requested
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-rhzjmqz7 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-rhzjmqz7/cache --create-cache-dir -q --write-cache -r /tmp/aa-caching-rhzjmqz7/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-rhzjmqz7/sbin.pingy in /tmp/aa-caching-rhzjmqz7/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_by_default (__main__.AAParserCreateCacheAltCacheTestsCacheNotExist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 157, in test_no_cache_by_default
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-u4pkdaii --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-u4pkdaii/cache --create-cache-dir -q -r /tmp/aa-caching-u4pkdaii/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-u4pkdaii/sbin.pingy in /tmp/aa-caching-u4pkdaii/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_no_cache_w_skip_cache (__main__.AAParserCreateCacheAltCacheTestsCacheNotExist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 165, in test_no_cache_w_skip_cache
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-yyx154nw --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-yyx154nw/cache --create-cache-dir -q --write-cache --skip-cache -r /tmp/aa-caching-yyx154nw/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-yyx154nw/sbin.pingy in /tmp/aa-caching-yyx154nw/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_write_features_when_caching (__main__.AAParserCreateCacheAltCacheTestsCacheNotExist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 181, in test_write_features_when_caching
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-wv4vjwc0 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-wv4vjwc0/cache --create-cache-dir -q --write-cache -r /tmp/aa-caching-wv4vjwc0/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-wv4vjwc0/sbin.pingy in /tmp/aa-caching-wv4vjwc0/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_abstraction_mtime_preserved (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 398, in test_abstraction_mtime_preserved
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-_kaow08a --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-_kaow08a/cache -q --write-cache -r /tmp/aa-caching-_kaow08a/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-_kaow08a/sbin.pingy in /tmp/aa-caching-_kaow08a/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_abstraction_newer_rewrites_cache (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 465, in test_abstraction_newer_rewrites_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-7n5nexdg --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-7n5nexdg/cache -q --write-cache -r /tmp/aa-caching-7n5nexdg/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-7n5nexdg/sbin.pingy in /tmp/aa-caching-7n5nexdg/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_abstraction_newer_skips_cache (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 430, in test_abstraction_newer_skips_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-557754hf --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-557754hf/cache -q --write-cache -r /tmp/aa-caching-557754hf/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-557754hf/sbin.pingy in /tmp/aa-caching-557754hf/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_loaded_when_exists (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 282, in test_cache_loaded_when_exists
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-19811tei --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-19811tei/cache -q --write-cache -r /tmp/aa-caching-19811tei/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-19811tei/sbin.pingy in /tmp/aa-caching-19811tei/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_not_loaded_when_features_differ (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 309, in test_cache_not_loaded_when_features_differ
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-4vzq7x5f --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-4vzq7x5f/cache -q --write-cache -r /tmp/aa-caching-4vzq7x5f/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-4vzq7x5f/sbin.pingy in /tmp/aa-caching-4vzq7x5f/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_not_loaded_when_skip_arg (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 291, in test_cache_not_loaded_when_skip_arg
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-kz757ti3 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-kz757ti3/cache -q --write-cache -r /tmp/aa-caching-kz757ti3/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-kz757ti3/sbin.pingy in /tmp/aa-caching-kz757ti3/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_not_loaded_when_skip_read_arg (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 300, in test_cache_not_loaded_when_skip_read_arg
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-n7ytykqn --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-n7ytykqn/cache -q --write-cache -r /tmp/aa-caching-n7ytykqn/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-n7ytykqn/sbin.pingy in /tmp/aa-caching-n7ytykqn/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_writing_clears_all_files (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 382, in test_cache_writing_clears_all_files
self.run_cmd_check(cmd, expected_string='Replacement succeeded for')
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-0bt9evfr --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-0bt9evfr/cache -v --write-cache -r /tmp/aa-caching-0bt9evfr/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-0bt9evfr/sbin.pingy in /tmp/aa-caching-0bt9evfr/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_writing_skipped_when_features_differ (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 338, in test_cache_writing_skipped_when_features_differ
self.run_cmd_check(cmd, expected_string='Replacement succeeded for')
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-yauusc_o --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-yauusc_o/cache -v --write-cache --skip-bad-cache -r /tmp/aa-caching-yauusc_o/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-yauusc_o/sbin.pingy in /tmp/aa-caching-yauusc_o/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_writing_updates_cache_file (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 366, in test_cache_writing_updates_cache_file
self.run_cmd_check(cmd, expected_string='Replacement succeeded for')
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-xhz1_g2e --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-xhz1_g2e/cache -v --write-cache -r /tmp/aa-caching-xhz1_g2e/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-xhz1_g2e/sbin.pingy in /tmp/aa-caching-xhz1_g2e/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_equal_mtimes_preserved (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 406, in test_equal_mtimes_preserved
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-w2sr6s1o --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-w2sr6s1o/cache -q --write-cache -r /tmp/aa-caching-w2sr6s1o/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-w2sr6s1o/sbin.pingy in /tmp/aa-caching-w2sr6s1o/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_parser_newer_uses_cache (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 482, in test_parser_newer_uses_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-peqvn7m_ --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-peqvn7m_/cache -q --write-cache -r /tmp/aa-caching-peqvn7m_/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-peqvn7m_/sbin.pingy in /tmp/aa-caching-peqvn7m_/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_profile_mtime_preserved (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 390, in test_profile_mtime_preserved
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-8yqd6lj_ --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-8yqd6lj_/cache -q --write-cache -r /tmp/aa-caching-8yqd6lj_/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-8yqd6lj_/sbin.pingy in /tmp/aa-caching-8yqd6lj_/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_profile_newer_rewrites_cache (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 448, in test_profile_newer_rewrites_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-iz9m4jx_ --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-iz9m4jx_/cache -q --write-cache -r /tmp/aa-caching-iz9m4jx_/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-iz9m4jx_/sbin.pingy in /tmp/aa-caching-iz9m4jx_/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_profile_newer_skips_cache (__main__.AAParserCachingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 412, in test_profile_newer_skips_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-vzdlkc3e --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-vzdlkc3e/cache -q --write-cache -r /tmp/aa-caching-vzdlkc3e/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-vzdlkc3e/sbin.pingy in /tmp/aa-caching-vzdlkc3e/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_abstraction_mtime_preserved (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 398, in test_abstraction_mtime_preserved
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-ocqaaym2 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-ocqaaym2/cache --cache-loc /tmp/aa-caching-ocqaaym2/aa-alt-cache8v2zj4ox -q --write-cache -r /tmp/aa-caching-ocqaaym2/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-ocqaaym2/sbin.pingy in /tmp/aa-caching-ocqaaym2/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_abstraction_newer_rewrites_cache (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 465, in test_abstraction_newer_rewrites_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-ytqot82b --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-ytqot82b/cache --cache-loc /tmp/aa-caching-ytqot82b/aa-alt-cachewhha8w0c -q --write-cache -r /tmp/aa-caching-ytqot82b/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-ytqot82b/sbin.pingy in /tmp/aa-caching-ytqot82b/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_abstraction_newer_skips_cache (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 430, in test_abstraction_newer_skips_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-eamr5gps --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-eamr5gps/cache --cache-loc /tmp/aa-caching-eamr5gps/aa-alt-cache59hkwgpn -q --write-cache -r /tmp/aa-caching-eamr5gps/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-eamr5gps/sbin.pingy in /tmp/aa-caching-eamr5gps/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_loaded_when_exists (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 282, in test_cache_loaded_when_exists
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-c9rqsn5d --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-c9rqsn5d/cache --cache-loc /tmp/aa-caching-c9rqsn5d/aa-alt-cachenyd67enh -q --write-cache -r /tmp/aa-caching-c9rqsn5d/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-c9rqsn5d/sbin.pingy in /tmp/aa-caching-c9rqsn5d/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_not_loaded_when_features_differ (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 309, in test_cache_not_loaded_when_features_differ
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-e9opc3lk --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-e9opc3lk/cache --cache-loc /tmp/aa-caching-e9opc3lk/aa-alt-cacherqhqx_xx -q --write-cache -r /tmp/aa-caching-e9opc3lk/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-e9opc3lk/sbin.pingy in /tmp/aa-caching-e9opc3lk/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_not_loaded_when_skip_arg (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 291, in test_cache_not_loaded_when_skip_arg
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-zm8mlbm_ --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-zm8mlbm_/cache --cache-loc /tmp/aa-caching-zm8mlbm_/aa-alt-cachevynzvmjr -q --write-cache -r /tmp/aa-caching-zm8mlbm_/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-zm8mlbm_/sbin.pingy in /tmp/aa-caching-zm8mlbm_/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_not_loaded_when_skip_read_arg (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 300, in test_cache_not_loaded_when_skip_read_arg
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-kh978h6j --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-kh978h6j/cache --cache-loc /tmp/aa-caching-kh978h6j/aa-alt-cache2vk6jjh9 -q --write-cache -r /tmp/aa-caching-kh978h6j/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-kh978h6j/sbin.pingy in /tmp/aa-caching-kh978h6j/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_writing_clears_all_files (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 382, in test_cache_writing_clears_all_files
self.run_cmd_check(cmd, expected_string='Replacement succeeded for')
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-rhyt396b --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-rhyt396b/cache --cache-loc /tmp/aa-caching-rhyt396b/aa-alt-cache5qprya28 -v --write-cache -r /tmp/aa-caching-rhyt396b/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-rhyt396b/sbin.pingy in /tmp/aa-caching-rhyt396b/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_writing_skipped_when_features_differ (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 338, in test_cache_writing_skipped_when_features_differ
self.run_cmd_check(cmd, expected_string='Replacement succeeded for')
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-_8dekc5n --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-_8dekc5n/cache --cache-loc /tmp/aa-caching-_8dekc5n/aa-alt-cachepi8z4voj -v --write-cache --skip-bad-cache -r /tmp/aa-caching-_8dekc5n/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-_8dekc5n/sbin.pingy in /tmp/aa-caching-_8dekc5n/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_cache_writing_updates_cache_file (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 366, in test_cache_writing_updates_cache_file
self.run_cmd_check(cmd, expected_string='Replacement succeeded for')
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-qcujpqkp --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-qcujpqkp/cache --cache-loc /tmp/aa-caching-qcujpqkp/aa-alt-cachex9gk282i -v --write-cache -r /tmp/aa-caching-qcujpqkp/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-qcujpqkp/sbin.pingy in /tmp/aa-caching-qcujpqkp/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_equal_mtimes_preserved (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 406, in test_equal_mtimes_preserved
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-kszoanwe --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-kszoanwe/cache --cache-loc /tmp/aa-caching-kszoanwe/aa-alt-cachehjokcdpb -q --write-cache -r /tmp/aa-caching-kszoanwe/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-kszoanwe/sbin.pingy in /tmp/aa-caching-kszoanwe/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_parser_newer_uses_cache (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 482, in test_parser_newer_uses_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-0tcx97jr --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-0tcx97jr/cache --cache-loc /tmp/aa-caching-0tcx97jr/aa-alt-cachelce6860n -q --write-cache -r /tmp/aa-caching-0tcx97jr/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-0tcx97jr/sbin.pingy in /tmp/aa-caching-0tcx97jr/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_profile_mtime_preserved (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 390, in test_profile_mtime_preserved
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-e_y_t33n --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-e_y_t33n/cache --cache-loc /tmp/aa-caching-e_y_t33n/aa-alt-cachekme2hgvs -q --write-cache -r /tmp/aa-caching-e_y_t33n/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-e_y_t33n/sbin.pingy in /tmp/aa-caching-e_y_t33n/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_profile_newer_rewrites_cache (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 448, in test_profile_newer_rewrites_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-1wmznik_ --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-1wmznik_/cache --cache-loc /tmp/aa-caching-1wmznik_/aa-alt-cache6tjsojur -q --write-cache -r /tmp/aa-caching-1wmznik_/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-1wmznik_/sbin.pingy in /tmp/aa-caching-1wmznik_/suid-abstraction at line 3: Invalid capability setuid.
======================================================================
FAIL: test_profile_newer_skips_cache (__main__.AAParserAltCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 50, in new_unittest_func
return unittest_func(self)
File "./caching.py", line 412, in test_profile_newer_skips_cache
self._generate_cache_file()
File "./caching.py", line 257, in _generate_cache_file
self.run_cmd_check(cmd)
File "/build/apparmor/src/apparmor-2.13.4/parser/tst/testlib.py", line 73, in run_cmd_check
self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report))
AssertionError: 1 != 0 : Got return code 1, expected 0
Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-qfa0hdz7 --skip-kernel-load -M ./features_files/features.all --cache-loc /tmp/aa-caching-qfa0hdz7/cache --cache-loc /tmp/aa-caching-qfa0hdz7/aa-alt-cachee3sfr9iz -q --write-cache -r /tmp/aa-caching-qfa0hdz7/sbin.pingy
Output: AppArmor parser error for /tmp/aa-caching-qfa0hdz7/sbin.pingy in /tmp/aa-caching-qfa0hdz7/suid-abstraction at line 3: Invalid capability setuid.
----------------------------------------------------------------------
Ran 66 tests in 41.726s
FAILED (failures=50, skipped=9)
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-4m2m8yei'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-8bvnkmq1'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-sp0c_1qe'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-b44myd17'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-m2538g64'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-_o8bv4a7'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-axism9fq'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-8c6_aqxv'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-12eo8ct6'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-uzqly6r0'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-g_70tusk'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-tngd4yw_'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-vgcf29pe'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-45ema790'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-urh8_mm_'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-vwj6djxw'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-rhzjmqz7'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-u4pkdaii'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-yyx154nw'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-wv4vjwc0'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-_kaow08a'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-7n5nexdg'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-557754hf'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-19811tei'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-4vzq7x5f'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-kz757ti3'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-n7ytykqn'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-0bt9evfr'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-yauusc_o'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-xhz1_g2e'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-w2sr6s1o'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-peqvn7m_'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-8yqd6lj_'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-iz9m4jx_'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-vzdlkc3e'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-ocqaaym2'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-ytqot82b'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-eamr5gps'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-c9rqsn5d'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-e9opc3lk'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-zm8mlbm_'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-kh978h6j'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-rhyt396b'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-_8dekc5n'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-qcujpqkp'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-kszoanwe'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-0tcx97jr'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-e_y_t33n'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-1wmznik_'
===> Skipping cleanup, leaving testfiles behind in '/tmp/aa-caching-qfa0hdz7'
make[1]: *** [Makefile:50: caching] Error 1
make[1]: Leaving directory '/build/apparmor/src/apparmor-2.13.4/parser/tst'
make: *** [Makefile:305: tests] Error 2
make: Leaving directory '/build/apparmor/src/apparmor-2.13.4/parser'
Full build log: apparmor-2.13.4-build.log
Edited by David Runge