Re: SELinux fails to apply local policy module

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

 



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

On 04/18/2013 05:07 PM, Suvayu Ali wrote:
> Hi Daniel,
> 
> On Mon, Apr 15, 2013 at 05:32:23PM -0700, Daniel J Walsh wrote:
>> You seem to have a lot of cruft in your policy directory.
>> 
>> Could you just remove the directory and reinstall policy.
>> 
>> 
>> # setenforce 0 # rm -rf /etc/selinux/targeted # yum reinstall
>> selinux-policy-targeted # restorecon -R -v /etc/selinux/targeted #
>> semanage fcontext -a -e / /home/slc5
>> 
>> Should be all you need
> 
> I did the above.  Not sure if things behave any better.  My application 
> fails with the following alert:
> 
> SELinux is preventing /home/jallad/.local/share/Steam/ubuntu12_32/steam
> from using the execheap access on a process.
> 
> Raw Audit Messages: type=AVC msg=audit(1366316027.599:12718): avc: denied {
> execheap } for pid=15540 comm="hl2_linux" 
> scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 
> tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 
> tclass=process
> 
> type=SYSCALL msg=audit(1366316027.599:12718): arch=i386 syscall=capget 
> success=yes exit=0 a0=8bc4000 a1=c000 a2=7 a3=ffb445dc items=0 ppid=15537
> pid=15540 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500
> sgid=500 fsgid=500 ses=2 tty=pts13 comm=hl2_linux 
> exe=2F686F6D652F6A616C6C61642F2E6C6F63616C2F73686172652F537465616D2F537465616D417070732F646A616C6C61642F5465616D20466F72747265737320322F686C325F6C696E7578
>
> 
subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
> 
> Hash: steam,unconfined_t,unconfined_t,process,execheap
> 
> So I try to make a custom policy module as suggested by the troubleshooter.
> But then it nothing is found in the log file.
> 
> # grep steam /var/log/audit/audit.log | audit2allow -M mypol Nothing to do
> 
> Not sure how to proceed now.
> 
> Thanks for any ideas.
> 
You could turn on the selinuxuser_execheap boolean.  (allow_execheap if you
have an older SELinux).

# setsebool -P selinuxuser_execheap 1

Then you should be all set.

Execheap is not an access that should be required by applications, it is
considered dangerous and you should report a bug to steam.

http://www.akkadia.org/drepper/selinux-mem.html

Explains the access.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFxLG4ACgkQrlYvE4MpobP5CwCdEdaYHnR18idfeEgLRSSisT/k
TYoAoIueHm5qv0S4l1CWwTkDycr1fhIz
=O4za
-----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
Have a question? Ask away: http://ask.fedoraproject.org




[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