From owner-freebsd-security Wed Jan 6 15:12:32 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA20049 for freebsd-security-outgoing; Wed, 6 Jan 1999 15:12:32 -0800 (PST) (envelope-from owner-freebsd-security@FreeBSD.ORG) Received: from earth.wnm.net (earth.wnm.net [208.246.240.243]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA20044 for ; Wed, 6 Jan 1999 15:12:30 -0800 (PST) (envelope-from andrewr@slack.net) Received: from wnm.net (nobody@bbq-grill.rackmount.ORG [208.246.241.42]) by earth.wnm.net (8.8.8/8.8.8) with SMTP id RAA01010; Wed, 6 Jan 1999 17:18:14 -0600 (CST) From: andrewr Reply-to: andrewr To: jrz@wnm.net Cc: freebsd-security@FreeBSD.ORG Date: Wed, 6 Jan 1999 17:23:49 GMT Subject: Fwd: Re: locking /dev/ttyp* X-Mailer: DMailWeb Web to Mail Gateway 1.8s, http://netwinsite.com/top_mail.htm Message-id: <36939c25.488b.0@wnm.net> X-User-Info: 208.246.241.46 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ****** Forwarded Message Follows ******* >To: Kevin Street >From: andrewr >Date: Wed, 6 Jan 1999 15:22:07 -0500 (EST) > >I asked a question like this awhile back.. because there was an easy way >to lock ttys. I belive in linux it is vt_lock, and vt_unlock (it's been >awhile). but from everything people helped me try to do, even Soren, i was >unable to duplicate the effect. The effect was a locked terminal.. Kind >of like what xlock does for xwindows,.. > >Andrew > >On Wed, 6 Jan 1999, Kevin Street wrote: > >> I got a note from a Linux developer who is looking for a FreeBSD >> equivalent for a Linux feature. The feature allows a program to prevent >> others from opening a /dev/ttypx without having to change the permissions >> on it. This means the program does not have to be suid root. >> >> In Linux this can apparently be done with: >> int flag = 1; >> if (ioctl(fd,TIOCSPTLCK,&flag)) // prohibit opening tty from now on >> perror("cannot set secure"); >> >> Is there any equivalent in FreeBSD? I know TIOCSPTLCK does not exist >> in any header I could find in 3.0. >> >> -- >> Kevin Street >> street@iName.com >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-security" in the body of the message >> > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-security" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message