[PATCH 2/3] Proc01: Fix for PPC64 and Support SELinux-enabled Environment v2: The following patches add an entry from a PPC64 kernel to the list of known issue, which may return errno EINVAL depends on the content of the file and the read buffer it is testing. Also, they add support for SELinux-enabled testing environment by using the correct expected results if it is able to detect SELinux is enabled. It does not affect the testing for systems with no LSM, LSM other than SELinux, and SELinux-disabled. Version 2 is created base on the suggestion from Serge E. Hallyn. This patch is using configure script to automatically detect if the system has libselinux libraries and header installed, so we can use a macro later on to actually check if SELinux is enabled. Otherwise, or if you don't want to run configure script at all, the test and other tests should behave as normal. Also, it removes some unnecessary comments from the Makefile, and replaces LOADLIBES to LDLIBS according to the LTP INSTALL file, LDLIBS   - libraries listed after objects during link. Signed-off-by: CAI Qian <caiqian@cclom.cn>.
4 files changed