buglibffcall - foreign function call libraries - Bugs: bug #22082, selinux: Segmentation fault while...

 
 

bug #22082: selinux: Segmentation fault while testing

Submitter:  Sam Steingold <sds>
Submitted:  Tue 22 Jan 2008 08:07:44 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  crash Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 02 Feb 2017 11:24:08 PM UTC, comment #4: 
Bruno Haible <haible>
Group administrator
Thu 28 Feb 2008 03:41:41 PM UTC, comment #3: 

Actually, I think that the failure on x86_64 (at least Debian bug #451356) is a different bug, having nothing to do with the NX bit, because it fails on a different test.  (I'm not sure whether Debian bug #453242 is the same bug as this.)

Hubert Chathi <uhoreg>
Wed 23 Jan 2008 09:02:44 PM UTC, comment #2: 

From what I can tell, this bug also causes failures on Opteron CPUs, since they have the NX bit.  (e.g. see http://bugs.debian.org/451356 and http://bugs.debian.org/453242)

Hubert Chathi <uhoreg>
Tue 22 Jan 2008 08:22:11 PM UTC, comment #1: 

http://sourceforge.net/tracker/index.php?func=detail&aid=1531290&group_id=1355&atid=101355
this is probably the same bug:
The output from the compilation is:
/bin/sh ./libtool --mode=link gcc -x none test2.o trampoline.lo -o test2
gcc -x none test2.o trampoline.o -o test2
./test1
trampoline: cannot make memory executable
make[2]: * [check] Aborted

The output in audit.log is:
type=AVC msg=audit(1154277453.270:515): avc: denied {
execheap } for pid=6764 comm="test1"
scontext=user_u:system_r:unconfined_t:s0
tcontext=user_u:system_r:unconfined_t:s0 tclass=process

Thus there is a violation of the heap execution
policy of SELinux.

Sam Steingold <sds>
Group administrator
Tue 22 Jan 2008 08:07:44 PM UTC, original submission:  

http://sourceforge.net/tracker/index.php?func=detail&aid=1761791&group_id=1355&atid=101355

The following is my SELinux log which I think tells the reason what caused
segmentation fault when I tested clisp
/****************************************************/
Application
/.../clisp-2.41/build-with-gcc/callback/trampoline_r/test1 attempted to change the access protection of memory on the heap (e,g., allocated using malloc). This is a potential security problem.

Applications should not be doing this. Applications are sometimes coded incorrectly and request this permission.

The SELinux Memory Protection Tests web page explains how to remove this requirement.
/*****************************************************/

Sam Steingold <sds>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by uhoreg (Posted a comment)
  • -email is unavailable- added by sds (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2017-02-02 haible Summaryselinux: Segementation fault while testing selinux: Segmentation fault while testing
    2017-02-02 haible StatusNone Fixed
        Open/ClosedOpen Closed
    2009-04-28 sds Item GroupNone crash

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code