Re: libffcall and selinux

Bruno Haible <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <5385496.3mxW05uRgX@omega>
Hi Don,

> Just looking at 
>  getsebool -a | grep selinuxuser
> I see
>  selinuxuser_execheap --> off
> which is what causes the AVC denial in configuring ffcall.
> (I verified that by turning it on and redoing config.)
> 
> This is described as follows at
>  https://mgrepl.fedorapeople.org/man_selinux/Fedora18/user.html
> 
>  If you want to allow unconfined executables to make their heap memory
>  executable. Doing this is a really bad idea. Probably indicates a
>  badly coded executable, but could indicate an attack. This executable
>  should be reported in bugzilla, you must turn on the
>  selinuxuser_execheap boolean.
>  setsebool -P selinuxuser_execheap 1
> 
> However, getsebool also shows
>  selinuxuser_execstack --> on
> 
>  If you want to allow unconfined executables to make their stack
>  executable. This should never, ever be necessary. Probably indicates
>  a badly coded executable, but could indicate an attack. This
>  executable should be reported in bugzilla, you must turn on the
>  selinuxuser_execstack boolean.
>  setsebool -P selinuxuser_execstack 1

Thanks for these pointers. I installed a RHEL 6 VM, then looked at how
these flags influence the libffcall configure tests, and modified libffcall
to bypass these configure tests in case of SELinux. Since the results
are dependent on flags that can change at runtime, the code better assumes
the worst possible result.

Bruno


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.