Bug 517582 - pt_chown requires mmap_zero and caught by selinux
Summary: pt_chown requires mmap_zero and caught by selinux
Keywords:
Status: CLOSED DUPLICATE of bug 525537
Alias: None
Product: Fedora
Classification: Fedora
Component: libcap
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 524369 525309 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-14 19:22 UTC by Jerry
Modified: 2009-10-13 15:59 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-10-13 15:59:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Requested output from ausearch -m avc -i (2.29 KB, text/plain)
2009-08-14 20:38 UTC, Jerry
no flags Details

Description Jerry 2009-08-14 19:22:40 UTC
While running gcc testsuite after update to glibc, SELINUX gives error preventing pt_chown because of attempt to use mmap_zero

node=quattro.localdomain type=AVC msg=audit(1250222756.953:83): avc: denied {
mmap_zero } for pid=4939 comm="pt_chown"
scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
tclass=memprotect

The pid-4939 belongs to 'expect' running as part of gcc testsuite.

See initial report in #515521 Comment 27 which shows the full alert message. Workaround is the fix to devpts discussed in that bug report.

Comment 1 Daniel Walsh 2009-08-14 19:59:01 UTC
I don't think this should need this.

Jery can you get the entire message out of the audit log

ausearch -m avc -i

Comment 2 Eric Paris 2009-08-14 20:08:15 UTC
it absolutely does not need this permission, with the full syscall we might find it to be the problem in which a full vm space can try to allocate between 4096 and mmap_min_addr dynamically (prelink was hitting that before we turned mmap_min_addr down to 4096).   This is still a problem in the upstream vm.  I can verify with the full audit message.

Comment 3 Jerry 2009-08-14 20:38:32 UTC
Created attachment 357503 [details]
Requested output from ausearch -m avc -i

I am reproducing this on another machine.  Again while running gcc testsuite.

Atacched audit as requested

Comment 4 Andreas Schwab 2009-08-17 11:59:29 UTC
This is a bug in libcap.

capget(0x20080522, 0, NULL)             = -1 EFAULT (Bad address)

Comment 5 Andreas Schwab 2009-09-21 09:13:55 UTC
*** Bug 524369 has been marked as a duplicate of this bug. ***

Comment 6 Andreas Schwab 2009-09-25 08:29:00 UTC
*** Bug 525309 has been marked as a duplicate of this bug. ***

Comment 7 Eric Paris 2009-10-13 15:59:32 UTC

*** This bug has been marked as a duplicate of bug 525537 ***


Note You need to log in before you can comment on or make changes to this bug.