SELinux fails to apply local policy module

Suvayu Ali fatkasuvayu+linux at gmail.com
Thu Apr 18 21:07:12 UTC 2013


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.

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list