Browse Source

gnupg ring/data ownership/permission checking added; ok millert@

OPENBSD_2_9
todd 24 years ago
parent
commit
06e9a61dc6
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/etc/security

+ 3
- 2
src/etc/security View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: security,v 1.42 2000/12/17 22:35:19 marc Exp $
# $OpenBSD: security,v 1.43 2000/12/22 08:04:48 todd Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@ -373,7 +373,8 @@ if [ -s $OUTPUT ] ; then
fi
# Files that should not be owned by someone else or readable.
list=".netrc .rhosts .pgp/secring.pgp .shosts .ssh/identity .ssh/random_seed"
list=".netrc .rhosts .gnupg/secring.gpg .gnupg/random_seed \
.pgp/secring.pgp .shosts .ssh/identity .ssh/random_seed"
awk -F: '/^[^+-]/ { print $1 " " $6 }' /etc/passwd | \
while read uid homedir; do
for f in $list ; do


Loading…
Cancel
Save