Logo address

Patches for factotum

We must add a patch to factotum so that TLS can answer the request from usr web
You will find following lins:
	case Kuser:
		if(strcmp(fss->sysuser, owner) != 0){
			werrstr("%q can't use %q's keys", fss->sysuser, owner);
			return failure(fss, nil);
		}
		break;
in
	/sys/src/cmd/auth/factotum/util.c

You must add two lines to these codes. That is,

	case Kuser:
		if(strcmp(fss->sysuser, "web") == 0)
			break;
		if(strcmp(fss->sysuser, owner) != 0){
			werrstr("%q can't use %q's keys", fss->sysuser, owner);
			return failure(fss, nil);
		}
		break;
And recompile your kernel so that new factotum can work in the kernel.
	cpu% cd /sys/src/9/pc
	cpu% ramfs
	cpu% bind -bc /tmp .
	cpu% mk 'CONF=pccpu' install
	...
	cpu%
This is a example to recomile 9pccpu.