diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-06-11 22:47:08 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-06-11 22:47:08 +0000 |
commit | ef2528dd01e3d7927401e283ff1f0c6142f736ca (patch) | |
tree | d2b03c495b4dad83fba17f305774e7b2c218d681 /usr.sbin/lpr/lpd/lpd.c | |
parent | 72ba0c33912aaf0b62b8d7e5e225762e6f089f6f (diff) |
lprm needs to be setuid daemon after all
Diffstat (limited to 'usr.sbin/lpr/lpd/lpd.c')
-rw-r--r-- | usr.sbin/lpr/lpd/lpd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index eb7ecb6b95d..2add61f1952 100644 --- a/usr.sbin/lpr/lpd/lpd.c +++ b/usr.sbin/lpr/lpd/lpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpd.c,v 1.35 2002/06/08 18:13:34 millert Exp $ */ +/* $OpenBSD: lpd.c,v 1.36 2002/06/11 22:47:07 millert Exp $ */ /* $NetBSD: lpd.c,v 1.33 2002/01/21 14:42:29 wiz Exp $ */ /* @@ -45,7 +45,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95"; #else -static const char rcsid[] = "$OpenBSD: lpd.c,v 1.35 2002/06/08 18:13:34 millert Exp $"; +static const char rcsid[] = "$OpenBSD: lpd.c,v 1.36 2002/06/11 22:47:07 millert Exp $"; #endif #endif /* not lint */ @@ -72,10 +72,11 @@ static const char rcsid[] = "$OpenBSD: lpd.c,v 1.35 2002/06/08 18:13:34 millert * 3. lpd runs as root but spends most of its time with its effective * uid and gid set to the uid/gid specified in the passwd entry for * DEFUID (1, aka daemon). - * 4. lpr runs setuid daemon and setgrp daemon; it opens + * 4. lpr and lprm run setuid daemon and setgrp daemon. lpr opens * files to be printed with its real uid/gid and writes to * the spool dir with its effective uid/gid (i.e. daemon). - * 5. lpc, lpr and lprm run setgrp daemon. + * lprm need to run as user daemon so it can kill lpd. + * 5. lpc and lpq run setgrp daemon. * * Users can't touch the spool w/o the help of one of the lp* programs. */ |