summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-01-06 00:00:39 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-01-06 00:00:39 +0000
commitad28f88e0519f73da1537f506e6a442fb1d82f8d (patch)
tree907e8893fed6f9ee7bc02472510872ab11f431d5 /share
parent1078173c69d89027a1abcfc54a9d5ef364320cda (diff)
- document /etc/security's .secure hooks
- sync the comments in /etc/security ok millert@
Diffstat (limited to 'share')
-rw-r--r--share/man/man8/security.824
1 files changed, 19 insertions, 5 deletions
diff --git a/share/man/man8/security.8 b/share/man/man8/security.8
index b3e3b5885b1..2bc1f1a246e 100644
--- a/share/man/man8/security.8
+++ b/share/man/man8/security.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: security.8,v 1.9 2004/10/04 20:55:29 jmc Exp $
+.\" $OpenBSD: security.8,v 1.10 2005/01/06 00:00:38 jmc Exp $
.\"
.\" David Leonard, 2001. Public Domain.
.\"
@@ -74,11 +74,25 @@ Check disk ownership and permissions.
Check for changes in the device file list.
.It
Check for permission changes in special files and system binaries listed in
-.Pa /etc/mtree/special
-and
-.Pa "/etc/mtree/*.secure" .
+.Pa /etc/mtree/special .
+.Nm
+also provides hooks for administrators to create their own lists.
+These lists should be kept in
+.Pa /etc/mtree/
+and filenames must have the suffix
+.Dq .secure .
+The following example shows how to create such a list,
+to protect the home directory of user
+.Dq bob :
+.Bd -literal -offset 4n
+# mtree -cx -p /home/bob -K md5digest,type \*(Gt/etc/mtree/bob.secure
+# chown root:wheel /etc/mtree/bob.secure
+# chmod 600 /etc/mtree/bob.secure
+.Ed
+.Pp
.Sy Note:
-This is not complete protection against Trojan horsed binaries, as
+These checks do not provide complete protection against
+Trojan horsed binaries, as
the miscreant can modify the tree specification to match the replaced binary.
For details on really protecting yourself against modified binaries, see
.Xr mtree 8 .