[Bug dynamic-link/22998] New: execstack tests are disabled when SELinux is disabled

hjl.tools at gmail dot com sourceware-bugzilla@sourceware.org
Thu Mar 22 23:34:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=22998

            Bug ID: 22998
           Summary: execstack tests are disabled when SELinux is disabled
           Product: glibc
           Version: 2.28
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

I disabled SELinux:

[hjl@gnu-bdx-1 elf]$ file /selinux/enforce
/selinux/enforce: cannot open `/selinux/enforce' (No such file or directory)
[hjl@gnu-bdx-1 elf]$ cat /selinux/enforce 2> /dev/null
[hjl@gnu-bdx-1 elf]$ echo $?
1
[hjl@gnu-bdx-1 elf]$ 

elf/Makefile has

selinux-enabled := $(shell cat /selinux/enforce 2> /dev/null)
ifneq ($(selinux-enabled),1)
tests-execstack-yes = tst-execstack tst-execstack-needed tst-execstack-prog
endif

selinux-enabled is set to 1 when SELinux is disabled.  But nptl/Makefile
has

ifeq ($(have-z-execstack),yes)
tests += tst-execstack
endif

Why are execstack tests disable in elf/Makefile when SELinux is disabled?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list