teken.3 (50cac02910812f4867b817ff96c502905cdb71b7) | teken.3 (135bce2a9e632a7cedae2a42f5b2eef2b77d5e56) |
---|---|
1.\" Copyright (c) 2011 Ed Schouten <ed@FreeBSD.org> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 171 unchanged lines hidden (view full) --- 180.Pp 181The 182.Fn teken_set_cons25 183function switches terminal emulation to 184.Dv cons25 , 185which is used by versions of 186.Fx 187prior to 9.0. | 1.\" Copyright (c) 2011 Ed Schouten <ed@FreeBSD.org> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 171 unchanged lines hidden (view full) --- 180.Pp 181The 182.Fn teken_set_cons25 183function switches terminal emulation to 184.Dv cons25 , 185which is used by versions of 186.Fx 187prior to 9.0. |
188.Sh SECURITY CONSIDERATIONS 189The 190.Fn tf_respond 191callback is used to respond to device status requests commands generated 192by an application. 193In the past, there have been various security issues, where a malicious 194application sends a device status request before termination, causing 195the generated response to be interpreted by applications such as 196.Xr sh 1 . 197.Pp 198.Nm 199only implements a small subset of responses which are unlikely to cause 200any harm. 201Still, it is advised to leave 202.Fn tf_respond 203unimplemented. | |
204.Sh SEE ALSO 205.Xr ncurses 3 , 206.Xr termcap 3 , 207.Xr syscons 4 . 208.Sh HISTORY 209The 210.Nm 211library appeared in 212.Fx 8.0 , 213though it was only available and used inside the kernel. 214In 215.Fx 9.0 , 216the 217.Nm 218library appeared in userspace. 219.Sh AUTHORS 220.An Ed Schouten Aq ed@FreeBSD.org | 188.Sh SEE ALSO 189.Xr ncurses 3 , 190.Xr termcap 3 , 191.Xr syscons 4 . 192.Sh HISTORY 193The 194.Nm 195library appeared in 196.Fx 8.0 , 197though it was only available and used inside the kernel. 198In 199.Fx 9.0 , 200the 201.Nm 202library appeared in userspace. 203.Sh AUTHORS 204.An Ed Schouten Aq ed@FreeBSD.org |
205.Sh SECURITY CONSIDERATIONS 206The 207.Fn tf_respond 208callback is used to respond to device status requests commands generated 209by an application. 210In the past, there have been various security issues, where a malicious 211application sends a device status request before termination, causing 212the generated response to be interpreted by applications such as 213.Xr sh 1 . 214.Pp 215.Nm 216only implements a small subset of responses which are unlikely to cause 217any harm. 218Still, it is advised to leave 219.Fn tf_respond 220unimplemented. |
|