All of lore.kernel.org
 help / color / mirror / Atom feed
* error with polyinstantiation and mcstransd
@ 2007-09-10 15:11 Clarkson, Mike R (US SSA)
  2007-09-10 18:33 ` Linda Knippers
  0 siblings, 1 reply; 2+ messages in thread
From: Clarkson, Mike R (US SSA) @ 2007-09-10 15:11 UTC (permalink / raw)
  To: selinux

When I try to set my level to multiple compartments using newrole, it
fails because of an error with the polyinstantiation of the /tmp
directory. This only happens when I am running the mcstransd daemon. I'm
using RHEL5.

Here is what I'm trying to do: "newrole -l Z10,Z30"

Here is the error that I get:
Warning!  Could not set new context for /dev/pts/2
pam_open_session failed with Cannot make/remove an entry for the
specified session

Z10 and Z30 are translated to s4:c10 and s4:c30 by mcstransd

I have debugging turned on. Here is the error messages that I get in the
/var/log/secure file:
Sep 10 14:41:37 m2blade5 newrole: pam_namespace(newrole:session): Error
setting context of
/tmp-inst/system_u:object_r:tmp_t:TS:Z10,Z30-SystemHigh_clarkson to
system_u:object_r:tmp_t:TS:Z10,Z30-SystemHigh
Sep 10 14:41:37 m2blade5 newrole: pam_namespace(newrole:session): Error
mounting
/tmp-inst/system_u:object_r:tmp_t:TS:Z10,Z30-SystemHigh_clarkson on
/tmp, No such file or directory

It has a problem with the level of TS:Z10,Z30-SystemHigh in the security
context.

I works fine if I use a single compartment like "newrole -l Z10". It
also works fine if I stop the mcstransd daemon and use the actual
sensitivity/category: "newrole -l s4:c10,c30"

Here are the applicable entries from my setrans.conf file:
s0=SystemLow
s1=U
s2=C
s3=S
s4=TS
s4:c10=Z10
s4:c20=Z20
s4:c30=Z30
s4:c40=Z40
s4:c0.c255=SystemHigh
s0-s4:c0.c255=SystemLow-SystemHigh

Any ideas on how to fix this?

Thanks



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-10 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10 15:11 error with polyinstantiation and mcstransd Clarkson, Mike R (US SSA)
2007-09-10 18:33 ` Linda Knippers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.