* Errors with runcon - RHEL4/refpolicy
@ 2006-09-25 14:09 Osborn, Justin D.
2006-09-25 19:39 ` Christopher J. PeBenito
2006-10-02 21:07 ` init unconfined in RHEL4? Osborn, Justin D.
0 siblings, 2 replies; 7+ messages in thread
From: Osborn, Justin D. @ 2006-09-25 14:09 UTC (permalink / raw)
To: selinux
[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]
Hi everybody,
I'm working on a project to do containment of VMware VMs using SELinux policy. Our system is set up on RHEL4 and I have the Reference Policy installed.
We're trying to reuse the VMware policy that was originally distributed with the Reference Policy. Specifically there is a per-user-domain template that we modified for our use and instantiate from another te file. The policy compiles and our VMs are properly labeled after relabeling.
The problem is that when I try to kick off a VM using runcon, I get the non-descript "unable to setup security context" error. The command I'm running is: runcon root:system_r:ziplock_vm1_vmware_t vmware-cmd start /VMs/foo.vmx. My bash shell is running as root:system_r:unconfined_t. I added my types to system_r and verified with apol.
So my questions are:
a) Why was the VMware policy renoved from the Reference Policy?
b) What am I missing with the runcon error? Is there somewhere I can look for a more descriptive error message?
Thanks,
Justin
JHU/APL
[-- Attachment #2: Type: text/html, Size: 1711 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Errors with runcon - RHEL4/refpolicy
2006-09-25 14:09 Errors with runcon - RHEL4/refpolicy Osborn, Justin D.
@ 2006-09-25 19:39 ` Christopher J. PeBenito
2006-10-02 21:07 ` init unconfined in RHEL4? Osborn, Justin D.
1 sibling, 0 replies; 7+ messages in thread
From: Christopher J. PeBenito @ 2006-09-25 19:39 UTC (permalink / raw)
To: Osborn, Justin D.; +Cc: selinux
On Mon, 2006-09-25 at 10:09 -0400, Osborn, Justin D. wrote:
> I'm working on a project to do containment of VMware VMs using
> SELinux policy. Our system is set up on RHEL4 and I have the
> Reference Policy installed.
>
> We're trying to reuse the VMware policy that was originally
> distributed with the Reference Policy. Specifically there is a
> per-user-domain template that we modified for our use and instantiate
> from another te file. The policy compiles and our VMs are properly
> labeled after relabeling.
>
> The problem is that when I try to kick off a VM using runcon, I
> get the non-descript "unable to setup security context" error. The
> command I'm running is: runcon root:system_r:ziplock_vm1_vmware_t
> vmware-cmd start /VMs/foo.vmx. My bash shell is running as
> root:system_r:unconfined_t. I added my types to system_r and verified
> with apol.
>
> So my questions are:
> a) Why was the VMware policy renoved from the Reference Policy?
I don't understand the question. Its in refpolicy, and you said you
were using it...
> b) What am I missing with the runcon error? Is there somewhere I
> can look for a more descriptive error message?
It means the setexeccon() failed. Usually a setexeccon() error means
either the context is invalid or it was denied setexec on the processs.
You're unconfined, so you have setexec, so most likely it is an invalid
context. Newer versions of runcon have a different message explicitly
saying if the context is invalid.
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
--
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] 7+ messages in thread
* init unconfined in RHEL4?
2006-09-25 14:09 Errors with runcon - RHEL4/refpolicy Osborn, Justin D.
2006-09-25 19:39 ` Christopher J. PeBenito
@ 2006-10-02 21:07 ` Osborn, Justin D.
2006-10-03 21:01 ` Daniel J Walsh
1 sibling, 1 reply; 7+ messages in thread
From: Osborn, Justin D. @ 2006-10-02 21:07 UTC (permalink / raw)
To: selinux
[-- Attachment #1: Type: text/plain, Size: 1947 bytes --]
I'm working on a RHEL4 system with the Reference Policy and init is running in unconfined_t. This leads to most other processes on the system running in unconfined_t. Has anyone seen similar errors?
This is the Ref. Policy version released in March, I got the latest svn version but it doesn't work with the libsepol and checkpolicy RHEL4 RPMs on the Tresys site.
I'm also having a strange error where I get denied messages saying something was trying to access a file with context unlabeled_t when `ls -Z` shows the file is clearly labeled something else.
Has anyone seen similar things on RHEL4?
Thanks,
Justin
P.S. I managed to get my template working, many thanks to Dave Caplan.
-----Original Message-----
From: Osborn, Justin D.
Sent: Mon 9/25/2006 10:09 AM
To: selinux@tycho.nsa.gov
Subject: Errors with runcon - RHEL4/refpolicy
Hi everybody,
I'm working on a project to do containment of VMware VMs using SELinux policy. Our system is set up on RHEL4 and I have the Reference Policy installed.
We're trying to reuse the VMware policy that was originally distributed with the Reference Policy. Specifically there is a per-user-domain template that we modified for our use and instantiate from another te file. The policy compiles and our VMs are properly labeled after relabeling.
The problem is that when I try to kick off a VM using runcon, I get the non-descript "unable to setup security context" error. The command I'm running is: runcon root:system_r:ziplock_vm1_vmware_t vmware-cmd start /VMs/foo.vmx. My bash shell is running as root:system_r:unconfined_t. I added my types to system_r and verified with apol.
So my questions are:
a) Why was the VMware policy renoved from the Reference Policy?
b) What am I missing with the runcon error? Is there somewhere I can look for a more descriptive error message?
Thanks,
Justin
JHU/APL
[-- Attachment #2: Type: text/html, Size: 2662 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: init unconfined in RHEL4?
2006-10-02 21:07 ` init unconfined in RHEL4? Osborn, Justin D.
@ 2006-10-03 21:01 ` Daniel J Walsh
2006-10-03 21:54 ` Russell Coker
0 siblings, 1 reply; 7+ messages in thread
From: Daniel J Walsh @ 2006-10-03 21:01 UTC (permalink / raw)
To: Osborn, Justin D.; +Cc: selinux
Osborn, Justin D. wrote:
>
> I'm working on a RHEL4 system with the Reference Policy and init is
> running in unconfined_t. This leads to most other processes on the
> system running in unconfined_t. Has anyone seen similar errors?
>
In RHEL4 only 15 Targets are confined, Everything else runs in an
unconfined domain.
>
> This is the Ref. Policy version released in March, I got the latest
> svn version but it doesn't work with the libsepol and checkpolicy
> RHEL4 RPMs on the Tresys site.
>
> I'm also having a strange error where I get denied messages saying
> something was trying to access a file with context unlabeled_t when
> `ls -Z` shows the file is clearly labeled something else.
>
ls -Z is reading the label on the file. While the other domains are
getting it from the kernel. Probably the type of the file is no longer
defined in policy, so the kernel says it is unlabled_t. You should
execute restorecon on it to clean it up.
>
> Has anyone seen similar things on RHEL4?
>
> Thanks,
> Justin
>
> P.S. I managed to get my template working, many thanks to Dave Caplan.
>
> -----Original Message-----
> From: Osborn, Justin D.
> Sent: Mon 9/25/2006 10:09 AM
> To: selinux@tycho.nsa.gov
> Subject: Errors with runcon - RHEL4/refpolicy
>
> Hi everybody,
> I'm working on a project to do containment of VMware VMs using
> SELinux policy. Our system is set up on RHEL4 and I have the
> Reference Policy installed.
>
> We're trying to reuse the VMware policy that was originally
> distributed with the Reference Policy. Specifically there is a
> per-user-domain template that we modified for our use and instantiate
> from another te file. The policy compiles and our VMs are properly
> labeled after relabeling.
>
> The problem is that when I try to kick off a VM using runcon, I
> get the non-descript "unable to setup security context" error. The
> command I'm running is: runcon root:system_r:ziplock_vm1_vmware_t
> vmware-cmd start /VMs/foo.vmx. My bash shell is running as
> root:system_r:unconfined_t. I added my types to system_r and verified
> with apol.
>
> So my questions are:
> a) Why was the VMware policy renoved from the Reference Policy?
> b) What am I missing with the runcon error? Is there somewhere I
> can look for a more descriptive error message?
>
> Thanks,
> Justin
> JHU/APL
>
>
>
>
>
>
>
--
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] 7+ messages in thread
* Re: init unconfined in RHEL4?
2006-10-03 21:01 ` Daniel J Walsh
@ 2006-10-03 21:54 ` Russell Coker
2006-10-04 13:15 ` Christopher J. PeBenito
0 siblings, 1 reply; 7+ messages in thread
From: Russell Coker @ 2006-10-03 21:54 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: Osborn, Justin D., selinux
On Wednesday 04 October 2006 07:01, Daniel J Walsh <dwalsh@redhat.com> wrote:
> Osborn, Justin D. wrote:
> > I'm working on a RHEL4 system with the Reference Policy and init is
> > running in unconfined_t. This leads to most other processes on the
> > system running in unconfined_t. Has anyone seen similar errors?
>
> In RHEL4 only 15 Targets are confined, Everything else runs in an
> unconfined domain.
>
> > This is the Ref. Policy version released in March, I got the latest
> > svn version but it doesn't work with the libsepol and checkpolicy
> > RHEL4 RPMs on the Tresys site.
Justin, the problem is that you are running a non-standard policy on RHEL4.
If you run the back-port of the reference policy on RHEL4 then Red Hat won't
support you and most developers won't be interested as development happens on
Rawhide.
If you have problems with Refpolicy on RHEL4 and can reproduce them on FC6test
releases then many people will be interested in investigating the problems.
But if it's only a problem for Refpolicy on RHEL4 then you are probably on
your own.
--
russell@coker.com.au
http://etbe.blogspot.com/ My Blog
http://www.coker.com.au/sponsorship.html Sponsoring Free Software development
--
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] 7+ messages in thread
* RE: init unconfined in RHEL4?
@ 2006-10-04 11:45 Osborn, Justin D.
0 siblings, 0 replies; 7+ messages in thread
From: Osborn, Justin D. @ 2006-10-04 11:45 UTC (permalink / raw)
To: Daniel J Walsh, Russell Coker; +Cc: selinux
Dan and Russell,
Yeah, it was my fault, I had labeled with the refpolicy but it
turned out I was using the RHEL4 targeted policy on boot (I hadn't set
/etc/selinux/config). It's up and running and things are in the proper
domains. I know refpolicy's unsupported on RHEL4, the idea is to move
this system to RHEL5 when it's available. For now on RHEL4 I have to
login and get X started before I turn the policy on, which is yucky, but
it'll do until RHEL5.
Thanks,
Justin
-----Original Message-----
From: Daniel J Walsh [mailto:dwalsh@redhat.com]
Sent: Tuesday, October 03, 2006 5:02 PM
To: Osborn, Justin D.
Cc: selinux@tycho.nsa.gov
Subject: Re: init unconfined in RHEL4?
Osborn, Justin D. wrote:
>
> I'm working on a RHEL4 system with the Reference Policy and init is
> running in unconfined_t. This leads to most other processes on the
> system running in unconfined_t. Has anyone seen similar errors?
>
In RHEL4 only 15 Targets are confined, Everything else runs in an
unconfined domain.
>
> This is the Ref. Policy version released in March, I got the latest
> svn version but it doesn't work with the libsepol and checkpolicy
> RHEL4 RPMs on the Tresys site.
>
> I'm also having a strange error where I get denied messages saying
> something was trying to access a file with context unlabeled_t when
> `ls -Z` shows the file is clearly labeled something else.
>
ls -Z is reading the label on the file. While the other domains are
getting it from the kernel. Probably the type of the file is no longer
defined in policy, so the kernel says it is unlabled_t. You should
execute restorecon on it to clean it up.
>
> Has anyone seen similar things on RHEL4?
>
> Thanks,
> Justin
>
> P.S. I managed to get my template working, many thanks to Dave Caplan.
>
> -----Original Message-----
> From: Osborn, Justin D.
> Sent: Mon 9/25/2006 10:09 AM
> To: selinux@tycho.nsa.gov
> Subject: Errors with runcon - RHEL4/refpolicy
>
> Hi everybody,
> I'm working on a project to do containment of VMware VMs using
> SELinux policy. Our system is set up on RHEL4 and I have the
> Reference Policy installed.
>
> We're trying to reuse the VMware policy that was originally
> distributed with the Reference Policy. Specifically there is a
> per-user-domain template that we modified for our use and instantiate
> from another te file. The policy compiles and our VMs are properly
> labeled after relabeling.
>
> The problem is that when I try to kick off a VM using runcon, I
> get the non-descript "unable to setup security context" error. The
> command I'm running is: runcon root:system_r:ziplock_vm1_vmware_t
> vmware-cmd start /VMs/foo.vmx. My bash shell is running as
> root:system_r:unconfined_t. I added my types to system_r and verified
> with apol.
>
> So my questions are:
> a) Why was the VMware policy renoved from the Reference Policy?
> b) What am I missing with the runcon error? Is there somewhere I
> can look for a more descriptive error message?
>
> Thanks,
> Justin
> JHU/APL
>
>
>
>
>
>
>
--
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] 7+ messages in thread
* Re: init unconfined in RHEL4?
2006-10-03 21:54 ` Russell Coker
@ 2006-10-04 13:15 ` Christopher J. PeBenito
0 siblings, 0 replies; 7+ messages in thread
From: Christopher J. PeBenito @ 2006-10-04 13:15 UTC (permalink / raw)
To: russell; +Cc: Daniel J Walsh, Osborn, Justin D., selinux
On Wed, 2006-10-04 at 07:54 +1000, Russell Coker wrote:
> On Wednesday 04 October 2006 07:01, Daniel J Walsh <dwalsh@redhat.com> wrote:
> > Osborn, Justin D. wrote:
> > > I'm working on a RHEL4 system with the Reference Policy and init is
> > > running in unconfined_t. This leads to most other processes on the
> > > system running in unconfined_t. Has anyone seen similar errors?
> >
> > In RHEL4 only 15 Targets are confined, Everything else runs in an
> > unconfined domain.
> >
> > > This is the Ref. Policy version released in March, I got the latest
> > > svn version but it doesn't work with the libsepol and checkpolicy
> > > RHEL4 RPMs on the Tresys site.
>
> Justin, the problem is that you are running a non-standard policy on RHEL4.
>
> If you run the back-port of the reference policy on RHEL4 then Red Hat won't
> support you and most developers won't be interested as development happens on
> Rawhide.
>
> If you have problems with Refpolicy on RHEL4 and can reproduce them on FC6test
> releases then many people will be interested in investigating the problems.
> But if it's only a problem for Refpolicy on RHEL4 then you are probably on
> your own.
Actually, we are interested in RHEL4. Its going to still be around for
years, and is still important, which is why there is a rhel4 distro
tunable.
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
--
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] 7+ messages in thread
end of thread, other threads:[~2006-10-04 13:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 14:09 Errors with runcon - RHEL4/refpolicy Osborn, Justin D.
2006-09-25 19:39 ` Christopher J. PeBenito
2006-10-02 21:07 ` init unconfined in RHEL4? Osborn, Justin D.
2006-10-03 21:01 ` Daniel J Walsh
2006-10-03 21:54 ` Russell Coker
2006-10-04 13:15 ` Christopher J. PeBenito
-- strict thread matches above, loose matches on Subject: below --
2006-10-04 11:45 Osborn, Justin D.
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.