Policy devel
I am not sure is this is the place to ask policy development noobee questions, but here is my problem.
The process:
/usr/sbin/vmware-serverd
running in vmware_serverd_t spawns the processes:
/usr/lib/vmware/bin/vmware-vmx -C /vms/0/vm.vmx/usr/lib/vmware/bin/vmware-vmx -C /vms/0/vm.vmx/usr/lib/vmware/bin/vmware-vmx -C /vms/0/vm.vmx/usr/lib/vmware/bin/vmware-vmx -C /vms/0/vm.vmx
in the vmware_serverd_t, is there a way of making vmware-vmx spawn into another domain, but this other domain must be dependant on the domain of the file that is passed to it (/vms/X/vm.vmx)?
So I need to have vmware-serverd spawn:
/usr/lib/vmware/bin/vmware-vmx -C /vms/0/vm.vmx/usr/lib/vmware/bin/vmware-vmx -C /vms/0/vm.vmx/usr/lib/vmware/bin/vmware-vmx -C /vms/0/vm.vmx/usr/lib/vmware/bin/vmware-vmx -C /vms/0/vm.vmx
in domain0, and
/usr/lib/vmware/bin/vmware-vmx -C /vms/1/vm.vmx/usr/lib/vmware/bin/vmware-vmx -C /vms/1/vm.vmx/usr/lib/vmware/bin/vmware-vmx -C /vms/1/vm.vmx/usr/lib/vmware/bin/vmware-vmx -C /vms/1/vm.vmx
in domain1.
Any help here will be truly appreciated, Javier Godinez
Quoted 9 lines · Javier Godinez
I am not sure is this is the place to ask policy development noobee questions, but here is my problem.
The process:
/usr/sbin/vmware-serverdrunning in
vmware_serverd_tspawns the processes:
Quoted 8 lines
/usr/lib/vmware/bin/vmware-vmx-C /vms/0/vm.vmx
/usr/lib/vmware/bin/vmware-vmx-C /vms/0/vm.vmx
/usr/lib/vmware/bin/vmware-vmx-C /vms/0/vm.vmx
/usr/lib/vmware/bin/vmware-vmx-C /vms/0/vm.vmxin the
vmware_serverd_t, is there a way of making vmware-vmx spawn into another domain, but this other domain must be dependant on the domain of the file that is passed to it (/vms/X/vm.vmx)?
You could do that by doing a setexeccon() in the program. Of course, the catch is that since this is vmware, you can't change the code. One chance (I'm not familiar with GSX) is if GSX uses a script to start up the VMs, then you could insert setexeccon (the command line tool) into the script when it starts the VMs. That command line tool doesn't exist all distros, so you might need to get it out of the attic in sourceforce libselinux CVS. In both cases you need some logic to figure out which context to use. Then in the policy you need something like:
can_setexec(vmware_serverd_t) domain_trans(vmware_serverd_t,vmware_vm_exec_t,vmware_vm0_t) domain_trans(vmware_serverd_t,vmware_vm_exec_t,vmware_vm1_t)
Signature · 9 lines
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 28 lines · Christopher J. PeBenito
Quoted 9 lines · Javier Godinez
I am not sure is this is the place to ask policy development noobee questions, but here is my problem.
The process:
/usr/sbin/vmware-serverdrunning in
vmware_serverd_tspawns the processes:Quoted 8 lines
/usr/lib/vmware/bin/vmware-vmx-C /vms/0/vm.vmx
/usr/lib/vmware/bin/vmware-vmx-C /vms/0/vm.vmx
/usr/lib/vmware/bin/vmware-vmx-C /vms/0/vm.vmx
/usr/lib/vmware/bin/vmware-vmx-C /vms/0/vm.vmxin the
vmware_serverd_t, is there a way of making vmware-vmx spawn into another domain, but this other domain must be dependant on the domain of the file that is passed to it (/vms/X/vm.vmx)?You could do that by doing a
setexeccon()in the program. Of course, the catch is that since this is vmware, you can't change the code. One chance (I'm not familiar with GSX) is if GSX uses a script to start up the VMs, then you could insert setexeccon (the command line tool) into the script when it starts the VMs. That command line tool doesn't exist all distros, so you might need to get it out of the attic in sourceforce libselinux CVS. In both cases you need some logic to figure out which context to use. Then in the policy you need something like:
Quoted 3 lines
can_setexec(vmware_serverd_t)domain_trans(vmware_serverd_t,vmware_vm_exec_t,vmware_vm0_t)domain_trans(vmware_serverd_t,vmware_vm_exec_t,vmware_vm1_t)
Just to clarify, setexeccon(1) was removed because runcon(1) in coreutils provides the same functionality with a richer interface. The libselinux example utils were pruned to minimize such duplication, and Red Hat further stripped what they install because several of those utils are primarily debugging tools. But runcon(1) should always be available.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.