From owner-freebsd-security Wed Jan 6 11:41:56 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA26589 for freebsd-security-outgoing; Wed, 6 Jan 1999 11:41:56 -0800 (PST) (envelope-from owner-freebsd-security@FreeBSD.ORG) Received: from kstreet.interlog.com (kstreet.interlog.com [198.53.146.171]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA26584 for ; Wed, 6 Jan 1999 11:41:54 -0800 (PST) (envelope-from kws@kstreet.interlog.com) Received: (from kws@localhost) by kstreet.interlog.com (8.9.1/8.9.1) id OAA01229; Wed, 6 Jan 1999 14:40:57 -0500 (EST) (envelope-from kws) From: Kevin Street MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <13971.48201.157443.285341@kstreet.interlog.com> Date: Wed, 6 Jan 1999 14:40:57 -0500 (EST) To: freebsd-security@FreeBSD.ORG Subject: locking /dev/ttyp* X-Mailer: VM 6.63 under 20.4 "Emerald" XEmacs Lucid Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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