Greetings from a grey Guildford,
From version 0.15.4725 of the Linux SDK, fresh support for persistent permission storage and sub-features has been added!
Once installed, check everything is working correctly by visiting:
If you receive an error code -6 it generally means that a requested module could not be found. Other error codes are listed in webvm.h.
<rule effect="prompt-blanket"></rule>
<rule effect="prompt-session"></rule>
<rule effect="prompt-oneshot"></rule>
The default policy example is installed at /usr/lib/webvm/policy.conf. How
permissions are set is described by BONDI 1.0. Specifically:
The http://example.webvm.net/simpler test utilises the simpler module
(look in sdk/example/simpler/) which identifies itself as the
http://webvm.net/api/simpler.get42 feature that implements the “device
capability” test.get42.
static const WVMFeature features[] = {
{ "http://webvm.net/api/simpler.get42", "test.get42" },
{ 0, 0 }
};
/usr/lib/webvm/policy.conf we run through the Security Manager with first-applicable combining rules…policy.conf and show a prompt of type blanket.~/.webvm/http%3A%2F%2Fexample.webvm.net%2Fsimpler%2F/policy, that’s where your decision is stored.Everytime you edit the policy.conf, you should validate it to make sure it’s correct.
Using rnv, a Relax NG Compact Syntax validator tool.
wget -q http://bondi.omtp.org/1.0/security/bondixml.rnc http://bondi.omtp.org/1.0/security/xmldsig-core-schema.rncrnv bondixml.rnc /usr/lib/webvm/policy.confI’ve created a couple of aliases for my ~/.bashrc that you may find helpful.
To quickly edit my main policy, I just type pol:
pol () {
sudo vim /usr/lib/webvm/policy.conf
}
To quickly check a policy (I’ve placed the schemas in a ~/policy directory):
valpol () {
for i in "$@"
do
rnv ~/policy/bondixml.rnc $i
done
If you want to alter the policy on the fly for testing add misc.debug.policy:
yes to your /etc/webvm.conf and try some
examples that utilise
setPolicy functionality.