<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear SELinux Gurus,<br>
<br>
I am a PhD candidate conducting research into the usability of security
mechanisms. I would really appreciate some help regarding the use of
SELinux. Let me know if this is not the right place to be asking these
types of questions.<br>
<br>
I generated a policy for opera using polgengui. I then ran the
generated ./opera.sh.<br>
<br>
Although SELinux was still set to enforcing mode opera seemed to run
unconfined. The executable and process was labelled as expected
(unconfined_u:unconfined_r:opera_t). AVCs were generated, but not
enforced.<br>
<br>
I added to opera.te using<br>
grep opera /var/log/audit/audit.log | audit2allow >> opera.te<br>
and reran ./opera.sh<br>
until no AVCs were generated.<br>
<br>
Looking at opera.te I noticed the line “permissive opera_t”, and not
knowing exactly what this line does, I thought it may be placing this
domain into permissive mode (although the gui tools suggest otherwise).
Removing the line causes “/bin/sh: /usr/bin/opera: Permission denied”.
No AVCs are generated.<br>
<br>
So I am not sure why opera seams to be unconfined, or if removing the
permissive line was on the right track. Any advice?<br>
<br>
Also I tried creating a policy for kwrite. This time the created policy
seemed to be in effect as soon as I ran the kwrite.sh script. I set
setenforce 0 and added to kwrite.te (as above for opera) until no error
msgs were generated. Then I reran ./kwrite.sh. Now kwrite exists with
“kwrite(2533): Couldn’t register name ‘”org.kate-editor.kwrite-2533’”
with DBUS – another process owns it already!”. When setenforce 0 it
runs without AVCs.<br>
<br>
Again I am sure I am missing something simple and your advice will help
a lot.<br>
<br>
I need to resolve this asap and will really appreciate any advice.<br>
<br>
Soon I will be running a comparative study comparing a number of
security mechanisms and I need to sort this out.<br>
<br>
Thank you,<br>
<br>
Cliffe.<br>
<br>
</body>
</html>