Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man4 Fix whitespace, ispell, sort SEE ALSO, add HI...
details: https://anonhg.NetBSD.org/src/rev/c01b7a54cc9e
branches: trunk
changeset: 516291:c01b7a54cc9e
user: wiz <wiz%NetBSD.org@localhost>
date: Sat Oct 20 09:32:22 2001 +0000
description:
Fix whitespace, ispell, sort SEE ALSO, add HISTORY section.
diffstat:
share/man/man4/clockctl.4 | 50 +++++++++++++++++++++++++---------------------
1 files changed, 27 insertions(+), 23 deletions(-)
diffs (107 lines):
diff -r fce328b1e4f0 -r c01b7a54cc9e share/man/man4/clockctl.4
--- a/share/man/man4/clockctl.4 Sat Oct 20 09:20:28 2001 +0000
+++ b/share/man/man4/clockctl.4 Sat Oct 20 09:32:22 2001 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: clockctl.4,v 1.1 2001/10/20 09:10:33 manu Exp $
+.\" $NetBSD: clockctl.4,v 1.2 2001/10/20 09:32:22 wiz Exp $
.\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -34,7 +34,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd Octobrer 20, 2001
+.Dd October 20, 2001
.Dt CLOCKCTL 4
.Os
.Sh NAME
@@ -43,45 +43,45 @@
.Sh SYNOPSIS
.Cd pseudo-device clockctl
.Sh DESCRIPTION
-The
-.Nm
+The
+.Nm
interface brings clock control to non root users. Any user with write access
-to
+to
.Pa /dev/clockctl
-will be able to perform operations such as
+will be able to perform operations such as
.Xr settimeofday 2 ,
.Xr clock_settime 2 ,
.Xr adjtime 2 ,
or
.Xr ntp_adjtime 2 ,
which are normally restricted to the super-user. Using the
-.Nm
-pseudodevice, it is possible to run daemons such as
+.Nm
+pseudo-device, it is possible to run daemons such as
.Xr ntpd 8
-as a non privilegied user, thus lowereing the security implications if an
+as a non privileged user, thus lowering the security implications if an
exploit is found in this daemon.
.Pp
The
.Nm
-pseudodevice driver provides an
+pseudo-device driver provides an
.Xr ioctl 2
-call for each of the privilegied clock-related system calls. The system
-call stubs in libc will use the
+call for each of the privileged clock-related system calls. The system
+call stubs in libc will use the
.Xr ioctl 2
-on
+on
.Pa /dev/clockctl
-if the special file is present and accessible, or it will revert to the
+if the special file is present and accessible, or it will revert to the
plain super-user restricted system call if it is not accessible.
.Pp
-The following
+The following
.Xr ioctl 2
-calls are defined in
+calls are defined in
.Aq Pa sys/clockctl.h Ns :
.Bl -tag -width CLOCKCTL
.It Dv CLOCKCTL_SETTIMEOFDAY
-This will run the
+This will run the
.Xr settimeofday 2
-system call. Argument should be a pointer to a
+system call. Argument should be a pointer to a
.Va struct clockctl_settimeofday_args :
.Bd -literal
struct clockctl_settimeofday_args {
@@ -113,9 +113,9 @@
.Ed
.It Dv CLOCKCTL_NTP_ADJTIME
This will run the
-.Xr ntp_adjtime 2
+.Xr ntp_adjtime 2
system call. Argument should be a pointer to a
-.Va struct clockctl_ntp_adjtime_args :
+.Va struct clockctl_ntp_adjtime_args :
.Bd -literal
struct clockctl_ntp_adjtime_args {
struct timex tp;
@@ -123,7 +123,11 @@
.Ed
.El
.Sh SEE ALSO
-.Xr settimeofday 2 ,
+.Xr adjtime 2 ,
.Xr clock_settime 2 ,
-.Xr adjtime 2 ,
-.Xr ioctl 2 .
+.Xr ioctl 2 ,
+.Xr settimeofday 2
+.Sh HISTORY
+.Nm
+appeared in
+.Nx 1.6 .
Home |
Main Index |
Thread Index |
Old Index