Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SELinux Policy Contraint Violation

 
   Soft32 Home -> Linux -> Red Hat RSS
Next:  [git pull] IDE fixes  
Author Message
Allen Kistler

External


Since: Jul 12, 2004
Posts: 94



(Msg. 1) Posted: Fri Mar 13, 2009 5:55 pm
Post subject: SELinux Policy Contraint Violation
Archived from groups: comp>os>linux>security, others (more info?)

I'm trying some things out in Fedora 11 Alpha. One of them is to put
VMware-Tools on a Linux guest with SELinux enforcement enabled. I got a
ton of AVC denials related to vmware-guestd that I turned into a local
policy. I can handle that fine.

However, I also get denials that output the following when I run them
through audit2why.

---
Was caused by: Policy constraint violation. May require adding a type
attribute to the domain or type to satisfy the constraint. Constraints
are defined in the policy sources in policy/constraints (general),
policy/mcs (MCS), and policy/mls (MLS).
---

vmware-guestd has (according to the denial logs) a domain of
vmware_host_t, which is the type used in my local policy.

So what does the error really mean (i.e., "constraint"), and how would I
fix it?
Back to top
Login to vote
Allen Kistler

External


Since: Jul 12, 2004
Posts: 94



(Msg. 2) Posted: Tue Mar 17, 2009 1:21 pm
Post subject: Re: SELinux Policy Contraint Violation [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Allen Kistler wrote:
> I'm trying some things out in Fedora 11 Alpha. One of them is to put
> VMware-Tools on a Linux guest with SELinux enforcement enabled. I got a
> ton of AVC denials related to vmware-guestd that I turned into a local
> policy. I can handle that fine.
>
> However, I also get denials that output the following when I run them
> through audit2why.
>
> ---
> Was caused by: Policy constraint violation. May require adding a type
> attribute to the domain or type to satisfy the constraint. Constraints
> are defined in the policy sources in policy/constraints (general),
> policy/mcs (MCS), and policy/mls (MLS).
> ---
>
> vmware-guestd has (according to the denial logs) a domain of
> vmware_host_t, which is the type used in my local policy.
>
> So what does the error really mean (i.e., "constraint"), and how would I
> fix it?

So for future readers searching an archive, the answer is ...

The source context (vmware-guestd in this case) is at level
(sensitivity) s0 and the target context is at level (sensitivity and
category) s0:c0.c1023.

SELinux in Fedora enforces a Bell-La Padula model (read-down/write-up).
Since vmware-guestd was running at level s0 (low sensitivity) and
attempting to read something at level s0-s0:c0.c1023 (low-high
sensitivity), nothing else mattered. It was denied by the read
constraint (i.e., no read-up).

The solution was to allow the source process to run at s0-s0:c0.c1023 so
that it could do pretty much whatever it wanted.

The following policy allows the vmware-tools init script to launch the
vmware-guestd process at the proper level.

type initrc_t;
type vmware_host_exec_t;
sensitivity s0;
category c0;
category c1023;
range_transition initrc_t vmware_host_exec_t :
process s0 - s0:c0.c1023;

(Submitted to BZ with a fix soon to be released.)
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Dovecot question - Hi, I setting up a new mail server with postfix for smtp and dovecot for pop3 on a CentOS 4 machine. Both postfix..

Download Linux eBooks for Red Hat Certifications -- Free - [b:eef70ab027]For RHCE, RHCT, RHCA, RHCSS Aspirants [/b:eef70ab027]..

Policy Violation - The following message sent by this account has violated system policy: From: debian-hppa@lists.debian.org To:..

Policy Violation - The following message sent by this account has violated system policy: From: debian-hppa@lists.debian.org To:..

Policy Violation - The following message sent by this account has violated system policy: From: debian-hurd@lists.debian.org To:..

Policy Violation - The following message sent by this account has violated system policy: From: debian-hurd@lists.debian.org To:..
       Soft32 Home -> Linux -> Red Hat All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]