From ef2528dd01e3d7927401e283ff1f0c6142f736ca Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 11 Jun 2002 22:47:08 +0000 Subject: lprm needs to be setuid daemon after all --- usr.sbin/lpr/lpd/lpd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.sbin/lpr/lpd/lpd.c') 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. */ -- cgit v1.2.3