On 04/17/2017 06:12 PM, Marek Marczykowski-Górecki wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Mon, Apr 17, 2017 at 10:02:00PM +0000, Patrick Schleizer wrote:
Hi! :)

You want a hook exactly between mount-dirs.sh and bind-dirs.sh?

Chris Laprise:
Alternately, mount-dirs.sh could have
a hook that points to a specific user script in /etc.

User script sounds a bit limited. What about something a little more
flexible?

Untested pseudo code:

if [ -d /etc/qubes/mount-dirs-post.d ]; then
   run-parts /etc/qubes/mount-dirs-post.d
fi

IMO this is the way to go. In addition to your VM hardening scripts,
this could be used also for some /rw initialization, beyond /etc/skel.
AFAIR there was a need for similar thing to copy Tor Browser there.

IIUC, this idea is for R4.x release..? It will be nice to have, but in the meantime I'm still looking for a way to make this possible in R3.2 without getting medieval (sed /usr/lib...script.sh).

It would be really nice to activate my script on a per-VM basis(!) from Qubes Manager settings. I'm having better luck doing it this way, running it before meminfowriter and after qubes-sysinit.

--

Chris Laprise, [email protected]
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB  4AB3 1DC4 D106 F07F 1886

--
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/ecb7acbc-b948-9e3b-eaac-8944b9c2f8cc%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to