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]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux