Re: Problem with SELinux

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/23/2010 07:56 AM, Alan Cox wrote:
> On Tue, 23 Nov 2010 12:52:41 +0000
> Paul Smith <phhs80@xxxxxxxxx> wrote:
> 
>> Dear All,
>>
>> I am experiencing the following problem with SELinux on F14:
>>
>> Nov 23 12:49:33 localhost kernel: [ 4881.260409] type=1400
>> audit(1290516573.348:31748): avc:  denied  { execstack } for
>> pid=14597 comm="myprogram"
>> scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
>> tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
>> tclass=process
>>
>> How can I circumvent that?
> 
> The application is trying to execute code on its stack - which usually
> means it is either buggy or being exploited.
> 
> What is "myprogram" ?
Stop running bad programs.  :*

If the app is written using a tool like java/mono or something like
this, it may be required.

You have two choices you can either label it execmem_exec_t.

# semanage fcontext -a -t execmem_exec_t PATHTOMYPROGRAM
# restorecon PATHTOMYPROGRAM

Or you can turn the check off altogether by executing

# setsebool -P allow_execstack 1


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkzrzgkACgkQrlYvE4MpobNHRgCfRx+mQhWo93o9jnPawTaq+va5
TxQAoK9oSIUd6Ix1mCiwkYWXY7S/CX24
=DQ4Z
-----END PGP SIGNATURE-----
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux