Date: Wed, 6 Jan 1999 15:22:07 -0500 (EST) From: andrewr <andrewr@slack.net> To: Kevin Street <street@iname.com> Cc: freebsd-security@FreeBSD.ORG Subject: Re: locking /dev/ttyp* Message-ID: <Pine.NEB.3.96.990106152037.24302A-100000@brooklyn.slack.net> In-Reply-To: <13971.48201.157443.285341@kstreet.interlog.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.990106152037.24302A-100000>