chiark
/
gitweb
/
~mdw
/
become
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
030c25b
)
Fix key reloading core dumps. Change advice on keys.
author
mdw
<mdw>
Sun, 26 Oct 2003 11:57:46 +0000
(11:57 +0000)
committer
mdw
<mdw>
Sun, 26 Oct 2003 11:57:46 +0000
(11:57 +0000)
manual/become.texi
patch
|
blob
|
blame
|
history
src/daemon.c
patch
|
blob
|
blame
|
history
diff --git
a/manual/become.texi
b/manual/become.texi
index 58fbf368618c7130093c6372c12fc4537d061e63..76ce702322045a6615d4750a00b17c5b37b03047 100644
(file)
--- a/
manual/become.texi
+++ b/
manual/become.texi
@@
-1,6
+1,6
@@
\input texinfo @c -*-texinfo-*-
@c
\input texinfo @c -*-texinfo-*-
@c
-@c $Id: become.texi,v 1.
5 2003/10/12 00:14:49
mdw Exp $
+@c $Id: become.texi,v 1.
6 2003/10/26 11:57:46
mdw Exp $
@c
@c Documentation for `become'
@c
@c
@c Documentation for `become'
@c
@@
-10,6
+10,9
@@
@c ----- Revision history ---------------------------------------------------
@c
@c $Log: become.texi,v $
@c ----- Revision history ---------------------------------------------------
@c
@c $Log: become.texi,v $
+@c Revision 1.6 2003/10/26 11:57:46 mdw
+@c Fix key reloading core dumps. Change advice on keys.
+@c
@c Revision 1.5 2003/10/12 00:14:49 mdw
@c Major overhaul. Now uses DSA signatures rather than the bogus symmetric
@c encrypt-and-hope thing. Integrated with mLib and Catacomb.
@c Revision 1.5 2003/10/12 00:14:49 mdw
@c Major overhaul. Now uses DSA signatures rather than the bogus symmetric
@c encrypt-and-hope thing. Integrated with mLib and Catacomb.
@@
-1524,7
+1527,7
@@
The key file can be generated using Catacomb's @code{key} program. The
commands
@example
commands
@example
-key -k /etc/become/become.key add -adsa
become-dsa
+key -k /etc/become/become.key add -adsa
-e"now + 1 year" become-dsa
key -k /etc/become/become.key extract -f -secret /etc/become/become.pubkey
@end example
key -k /etc/become/become.key extract -f -secret /etc/become/become.pubkey
@end example
diff --git
a/src/daemon.c
b/src/daemon.c
index fbaf26b3cc764baac1dda0705133b2e1f7e9d9f0..3d29735e2f1064aafca3821fc0204db40189aa3f 100644
(file)
--- a/
src/daemon.c
+++ b/
src/daemon.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: daemon.c,v 1.1
4 2003/10/17 16:30:22
mdw Exp $
+ * $Id: daemon.c,v 1.1
5 2003/10/26 11:57:46
mdw Exp $
*
* Running a `become' daemon
*
*
* Running a `become' daemon
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: daemon.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: daemon.c,v $
+ * Revision 1.15 2003/10/26 11:57:46 mdw
+ * Fix key reloading core dumps. Change advice on keys.
+ *
* Revision 1.14 2003/10/17 16:30:22 mdw
* Reload keys and config files automatically.
*
* Revision 1.14 2003/10/17 16:30:22 mdw
* Reload keys and config files automatically.
*
@@
-138,7
+141,6
@@
/*----- Arbitrary constants -----------------------------------------------*/
/*----- Arbitrary constants -----------------------------------------------*/
-/* #define daemon__awakeEvery (5 * 60) /\* Awaken this often to rescan *\/ */
#define daemon__awakeEvery (10) /* Awaken this often to rescan */
/*----- Static variables --------------------------------------------------*/
#define daemon__awakeEvery (10) /* Awaken this often to rescan */
/*----- Static variables --------------------------------------------------*/
@@
-222,10
+224,10
@@
void daemon_readKey(const char *kf)
mp_copy(daemon__key.dp.g);
mp_copy(daemon__key.x);
mp_copy(daemon__key.y);
mp_copy(daemon__key.dp.g);
mp_copy(daemon__key.x);
mp_copy(daemon__key.y);
+ daemon__keyfile = kf;
}
key_fetchdone(kp);
key_close(&f);
}
key_fetchdone(kp);
key_close(&f);
- daemon__keyfile = kf;
}
/* --- @daemon__readConfig@ --- *
}
/* --- @daemon__readConfig@ --- *