Bug 465935 - matchpathcon reports "No such file or directory" if the file is located in /tmp/
Summary: matchpathcon reports "No such file or directory" if the file is located in /tmp/
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libselinux
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-07 08:45 UTC by Milos Malik
Modified: 2010-02-03 07:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 07:57:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1241 0 normal SHIPPED_LIVE libselinux bug fix update 2009-09-01 08:31:55 UTC

Description Milos Malik 2008-10-07 08:45:50 UTC
Description of problem:
The matchpathcon utility has problems when checking files in /tmp directory. Maybe a problem with filesystem in /tmp.

Version-Release number of selected component (if applicable):
libselinux-1.33.4-5.1.el5

How reproducible:
always

Steps to Reproduce:
# touch /tmp/something.txt
# ls -l /tmp/something.txt 
-rw-r--r-- 1 root root 0 Oct  7 04:37 /tmp/something.txt
# matchpathcon /tmp/something.txt 
matchpathcon(/tmp/something.txt) failed: No such file or directory
# matchpathcon -V /tmp/something.txt 
matchpathcon(/tmp/something.txt) failed: No such file or directory
/tmp/something.txt has context root:object_r:tmp_t, should be
#
  
Actual results:
Even if the file exists the utility shows "no such file or directory" message.

Expected results:
The utility should show the file context.

Additional info:

Comment 3 Daniel Walsh 2009-03-06 21:34:30 UTC
Fixed in libselinux-1.33.4-5.5

Comment 9 errata-xmlrpc 2009-09-02 07:57:25 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1241.html


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