[Samba] Need SELinux help
ToddAndMargo at zoho.com
Sat Aug 20 06:57:03 UTC 2016
On 08/16/2016 06:05 AM, Toshaan Bharvani | VanTosh via samba wrote:
> On 16/08/16 07:04, ToddAndMargo via samba wrote:
>> Hi All,
>> Fedora Core 24, x64
>> I am using the following direction to set up SELinux with Samba:
>> to set up SELinux with Samba
>> 1) I created a directory called /export
>> # ls -al /export
>> total 28
>> drwxrwxr-x 7 public users 4096 Aug 15 21:47 .
>> dr-xr-xr-x. 21 root root 4096 Aug 15 21:47 ..
>> drwxrwxr-x 2 public users 4096 Aug 15 19:53 accounting
>> drwxrwxr-x 2 public users 4096 Aug 15 19:53 facilities
>> drwxrwxr-x 2 public users 4096 Aug 15 19:53 maintenance
>> drwxrwxr-x 2 public users 4096 Aug 15 19:53 operations
>> drwxrwxr-x 2 public users 4096 Aug 15 19:48 public
>> 2) I ran the following command from the manual above and
>> got the following error.
>> # semanage fcontext -a -t samba_share_t "/export(/.*)?"
>> libsemanage.dbase_llist_query: could not query record value (No such
>> file or directory).
>> FileNotFoundError: [Errno 2] No such file or directory
>> What do they mean "No such file or directory"?
>> What am I doing wrong?
> I am presuming the 'export' is seen as a command in place of a folder.
> What happens you try the folder 'exports' or 'shares'?
> And they do not need to exist to be added to the SELinux fcontext
>> Many thanks,
That was it. I changed "export" to "exports" and that fixed
I also reported to bug to Red Hat:
SELinux run afoul of keyword "/export"
Computers are like air conditioners.
They malfunction when you open windows
More information about the samba