Re: socket files and ruby/passenger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/16/2010 05:48 PM, m.roth@xxxxxxxxx wrote:
> I'm not sure where to start on this one.... I've got a user running ruby,
> and a gem called passenger. It creates a socket file in a configured
> directory (now /var/tmp/passenger/<blah>/backend/. Selinux is complaining
> (it's permissive) that it's a potentially mislabelled file. From the
> sealert o/p:
> <...>
> Source Context                root:system_r:httpd_t
> Target Context                root:object_r:httpd_tmp_t
> <...>
> The directory context is:
> d-ws-wx-wx  root root root:object_r:httpd_tmp_t        ./
> d-ws--x--x  root root root:object_r:httpd_tmp_t        ../
> srw-------  root root root:object_r:httpd_tmp_t
> backend.ib4gxn1IpkOSkiCP0TviW6AoGO2CXhq0W9SzzVsUVMC0U2Yc9zOvVDr=
>
> So, what should it be, to make the AVC go away, and how would I know what
> it should be?
>
>         mark
>
> --
> selinux mailing list
> selinux@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/selinux
Mark,
look at

http://mifo.sk/posts/passenger-selinux-for-fedora/

It should help you to run passenger with SELinux ;-).

Also which version of Fedora do you have? The Step 5 is not necessary 
for Fedora14+ since the passenger policy is shipped in these releases.

So if you have Fedora 14+ your Step 5 will be:

# restorecon -R -v /var/lib/passenger /var/run/passenger
# restorecon -R -v 
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/ApplicationPoolServerExecutable

Regards,
Miroslav
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux