-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, Jun 16, 2016 at 01:01:35PM -0700, nicklausmcclen...@gmail.com wrote:
> On Wednesday, June 15, 2016 at 6:14:20 PM UTC-5, nicklaus...@gmail.com wrote:
> > On Wednesday, June 15, 2016 at 4:59:12 PM UTC-5, Unman wrote:
> > > On Sun, Jun 12, 2016 at 08:55:05PM -0700, nicklausmcclen...@gmail.com 
> > > wrote:
> > > > Is there any mechanism to identify what label the AppVM has from with 
> > > > in it? I'm looking for a (hopefully) automated way to make other colors 
> > > > match the label, i.e. have my terminal prompt and tmux bar be green in 
> > > > green AppVMs and red in red AppVMs.
> > > > 
> > > 
> > > The red labelling is drawn from dom0 currently. I don't think there's a
> > > way of pulling dom0 information from within a qube, so I think you will
> > > be disappointed.
> > > Although I cant see any reason why it wouldn't be possible to write label
> > > information to he qube on boot, and then read that out. Might be worth
> > > playing with this.
> > 
> > I can't believe I didn't think of that. I'll try to work something out with 
> > qrexec and I'll post the code when I'm done in case anyone would like to 
> > use it. Thank you!
> 
> I mocked up an example RPC here:
> https://github.com/kulinacs/qubes-rpc-GetLabel
> I'd love to get some feedback from anyone willing to take a look at it.

Use QREXEC_REMOTE_DOMAIN variable for calling VM name, instead of
getting it from that VM. Getting it from calling VM means that VM can
lie and get label for any VM, check what VM you have in the system etc.
Also an minor improvement - use `qvm-prefs $VMNAME label` instead of
grepping the output.

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXYxZ5AAoJENuP0xzK19csU8MIAJqdAeYKhisxaoJrD4EEPBIc
9fZIha29oezkB0AOnQFBy9vAdTSC3UUsDMjeIFE52+h402mNQFYN2ehTvNUl9fuH
HYquqjDl869T20XTQ3ASo/jv7ATU5yWW13wDuu8Cwga5LNtg3CvbGlQvuONMjhXI
r/SUeksfk9BTL9YEc70K+0QA+VWWox+Je4MqQkw1jT2EwJCk9AXk8KSMpxI1Iaq2
DxM7Rh0YPdgMYIKfZuNcNAOEhg9yJBvq+k69cAEGExBVBILCTB0zG8e3y0DfT22J
o2bDLtUrQWDsaEUz+mVfC8jlicjC7Oe+y+k/3WpMqum2+K5U/zjAPvLY43bE4s8=
=i1oM
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20160616211330.GQ1593%40mail-itl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to