Bug 162823 - smbd fails when smbd has SELinux protection
smbd fails when smbd has SELinux protection
Product: Fedora
Classification: Fedora
Component: samba (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Fenlason
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-07-08 18:32 EDT by long
Modified: 2014-08-31 19:27 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-01-22 10:50:22 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description long 2005-07-08 18:32:49 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.7.8-2

Description of problem:
By default the sebool smbd_disable_trans is 0.  When using XP SP2 to look at my home directory I find that certain files don't show up in explorer.  The smbd log file reports:

[2005/07/05 12:55:52, 10] smbd/trans2.c:get_lanman2_dir_entry(1043)
  get_lanman2_dir_entry: SMB_FIND_FILE_BOTH_DIRECTORY_INFO
[2005/07/05 12:55:52, 10] smbd/mangle_hash2.c:name_map(613)
  name_map: _2032377_1 -> 33EE88FA -> _EEQCQ~I (cache=1)
[2005/07/05 12:55:52, 8] smbd/trans2.c:get_lanman2_dir_entry(869)
  get_lanman2_dir_entry:readdir on dirptr 0x92267d8 now at offset 1071547660
[2005/07/05 12:55:52, 5] smbd/trans2.c:get_lanman2_dir_entry(927)
  get_lanman2_dir_entry:Couldn't stat [pc/mdb/Clients_3.mdb] (Permission denied)

However, if I switch smbd_disable_trans to 1 and restart samba then suddenly I can see all the "invisible" files (like Clients_3.mdb).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Connect to my home directory share from XP Sp2
2. Browse to folder(s) with invisible files


Actual Results:  Some files are not showing up in that folder.

Expected Results:  All the files should show up.

Additional info:
Comment 1 long 2005-07-19 13:38:24 EDT
restorecon -R -v ~long/pc fixed the problem.  Is this a case of user error or
something else?
Comment 2 Christian Iseli 2007-01-22 06:17:53 EST
This report targets the FC3 or FC4 products, which have now been EOL'd.

Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?

Comment 3 long 2007-01-22 10:50:22 EST
Seems to not happen in fc5 now.  

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