SYS_getdents undecleared for readdir regression test on arm64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Undecided
|
Colin Ian King | ||
QA Regression Testing |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In the regression test, readdir.c will fail to compile on arm64 and fail the test_regression
cc -g -O0 -Wall -Wstrict-prototypes readdir.c -lapparmor -o readdir
readdir.c: In function ‘main’:
readdir.c:45:14: error: ‘SYS_getdents’ undeclared (first use in this function)
if (syscall(
readdir.c:45:14: note: each undeclared identifier is reported only once for each function it appears in
<builtin>: recipe for target 'readdir' failed
make: *** [readdir] Error 1
-------
Ran 55 tests in 1889.376s
FAILED (failures=1)
For arm64, there is only "SYS_getdents64" available:
$ grep -Ir SYS_getdents /usr/include/
/usr/include/
/usr/include/
Related branches
Changed in apparmor: | |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in apparmor: | |
status: | New → Fix Committed |
Patch added to q-r-t in commit https:/ /git.launchpad. net/qa- regression- testing/ commit/ ?id=52f39f87176 843398bce2190d9 6a5aad0da2bf4f so is available for the kernel autotests.
Closing the qrt task.