Bug 430929 - lspp modification to xinetd calling getfilecon with incorrect path
Summary: lspp modification to xinetd calling getfilecon with incorrect path
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xinetd
Version: 8
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Safranek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-30 17:26 UTC by Joe Nall
Modified: 2008-01-31 15:20 UTC (History)
1 user (show)

Fixed In Version: xinetd-2.3.14-18.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-31 15:20:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to use correct path in getfilecon (402 bytes, text/x-patch)
2008-01-30 17:28 UTC, Joe Nall
no flags Details

Description Joe Nall 2008-01-30 17:26:29 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071213 Fedora/2.0.0.10-3.fc8 Firefox/2.0.0.10

Description of problem:
getfilecon is being called with the basename of a path rather than the full path. This causes the new context computation to fail.

Version-Release number of selected component (if applicable):
xinetd-2.3.14-14.fc8

How reproducible:
Always


Steps to Reproduce:
Use flags=LABELED and nonstandard path

service auth
{
        disable         = no
        socket_type     = stream
        wait            = no
        user            = nobody
        instances       = UNLIMITED
        per_source      = UNLIMITED
        server          = /opt/foo/libexec/identd
        protocol        = tcp
        flags           = LABELED
}


Actual Results:
Process launch fails with context errors

Expected Results:
Process should be launched at label of connection and with computed type.

Additional info:

Comment 1 Joe Nall 2008-01-30 17:28:26 UTC
Created attachment 293455 [details]
Patch to use correct path in getfilecon

Use SC_SERVER(scp) instead of SC_SERVER_ARGV( scp )[0]

Comment 2 Jan Safranek 2008-01-31 13:35:37 UTC
Steve, could you please help me with this one? The patch looks harmless, but I
am not able to test it without a day wasted by studying selinux and IPsec
documentation and setting this up. The SELinux part of xinetd is your work, right?

Comment 3 Steve Grubb 2008-01-31 14:45:50 UTC
Jan, this patch looks OK. It should, in theory, do the same thing.

Comment 4 Jan Safranek 2008-01-31 15:20:15 UTC
Thanks Steve, now let's prove the theory in the real world.


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