sthen
eca03c4660
Prevent warning about insecure hostnames where no /etc/hostname.*
exists. From wcmaier@.
Check target of symbolic links to avoid noise at boot and in
seucrity output where you have several interfaces symlinked to one
config file.
"If you think this is the right thing to do" deraadt@
16 years ago
sthen
06874bcef6
Teach security(8) to check for world-readable hostname.if files.
An increasing number of types of these files (e.g. ppp, carp and
wlan adapters) may contain secrets.
ok deraadt oga johan
16 years ago
sthen
da71d2e0c3
list package changes in daily insecurity output
ok henning
17 years ago
henning
ef0c7518c0
plural of ID is IDs, not ID's, ok mk jmc
17 years ago
dlg
55c0aad4e0
generate diffs for files listed in /etc/changelist as they are created
and deleted. previously this script only generated diffs for existing
files.
ok lots of people including millert@ msf@ mcbride@ todd@ and probably more.
18 years ago
otto
bd1f4d5608
changelist files are ascii, even if they contain a few funny chars.
Encountered by henning@; ok millert@ robert@ deraadt@
18 years ago
david
78a28203dd
Fix for PR 5043: shell startup scripts might contain binary characters but
grep should assume ASCII text, fixes umask detection
ok millert@ jaredy@
19 years ago
pedro
032da4d8b3
Remove fdescfs
19 years ago
pedro
d2ed503aa1
Remove kernfs, okay deraadt@.
19 years ago
deraadt
57d85b3838
do not scan afs/xfs directories; chris.kuethe
19 years ago
otto
c1b8c6bca5
Avoid spurious "globally exported" warning. Noted by jared r r spiegel.
ok henning@
20 years ago
david
2fc21edae2
indentation whitespace nits
20 years ago
jmc
3ae4a98647
- document /etc/security's .secure hooks
- sync the comments in /etc/security
ok millert@
20 years ago
millert
be9f1ce9eb
Use $file shorthand instead of specifying /var/backups/disklabel.$d.
Noticed by ian@
20 years ago
millert
a117f51a18
store a copy of the disklabel for mounted filesystems and report changes
OK deraadt@
20 years ago
otto
8610a95b88
Update based on PR 2208:
o Prepare for the update to join(1).
o Handle non-ascii chars in pathnames for setuid and device checks.
ok millert@ deraadt@
21 years ago
sturm
6a07898f48
fix regexp for group names
ok millert@
21 years ago
millert
647d0cdbb1
when testing passwd(5) expire field, force its value to an int before
checking for non-zero since an empty field is equivalent to 0.
Problem noted by Graeme Lee.
21 years ago
millert
c3a8fa3c18
Fix setting of umaskset. Also, there is no need to use TMP3 for
umask detection.
21 years ago
millert
ba8f3ee996
We need the "/ 10" in the group writability check after all; marc@
21 years ago
millert
c877ad0d6f
Make the test for unsafe umask more bullet-proof. With help from marc@
21 years ago
avsm
ef01e76670
some more extra mktemp randomness; millert@ ok
21 years ago
grange
bccca5e422
The hyphen in regexp should really be escaped
ok millert@
21 years ago
millert
2e71a0e51b
Add dot ('.') in usernames too for consistency with adduser/useradd.
Noted by Brian Poole
21 years ago
millert
cf8c1465dc
Don't complain about usernames that end in '$' which may be needed by
samba; this is consistent with useradd and adduser. From Dan Brosemer.
21 years ago
millert
642ff1ce89
Use POSIX chown semantics (user:group); noted by Leandro Costa
22 years ago
millert
8736cb4dab
put bin dirs before sbin dirs in PATH for consistency with other cron scripts
22 years ago
henning
e07978f161
writeable -> writable; torh at bogus dot net
22 years ago
pvalchev
35165da9c8
check account expiration time as well; from hamajima@nagoya.ydc.co.jp pr2835
22 years ago
jcs
0b40d89296
don't complain about our new usernames that start with underscores
deraadt and millert ok
22 years ago
millert
8596724be4
Check for S/Key entries in /etc/skey, not /etc/skeyeys; David Krause
We could use skeyinfo(1) to check but this is much cheaper.
22 years ago
pvalchev
8f3f4efdd9
use mktemp; help & ok millert
23 years ago
jakob
79bd272191
mtree -l (loose permissions check) on /etc/mtree/special. ok millert@.
23 years ago
brad
90f9fa54db
fix username and groupname length checks.
--
Patch from: wilfried@ via PR#1761
Ok'd by: deraadt@
24 years ago
millert
291b1c42d4
Skip entries starting with '+' in duplicate user ID check so we don't
get false positives for YP stuff. Closes PR 1755
24 years ago
millert
678f2ac821
Don't provide diffs of sensitive files like ssh host keys. Instead,
just save the md5 checksums so we can still determine when something
change. Entries in /etc/changelist that are prefixed with a '+'
will only have their md5 checksums saved, not the actual files.
24 years ago
millert
e2f7d1725e
Add ~/.ssh/id_dsa and ~/.ssh/id_rsa to the "must be owned by user and
not readable by other" block. Remove ~/.ssh/random_seed as it is
not used in OpenSSH.
Add ~/.ssh/authorized_keys2, and ~/.ssh/known_hosts to the "must be
owned by user and not writable" block.
24 years ago
deraadt
ac223fc9c0
more fat utmp; ianm@cit.uws.edu.au
24 years ago
todd
06e9a61dc6
gnupg ring/data ownership/permission checking added; ok millert@
24 years ago
marc
39a1183d94
Todd, Aaron, Dug, and me all prefer unidiff
24 years ago
millert
95c109f653
Since sh's bulitin echo(1) supports /t and /n there is no reason to
use printf(1) here. This way there is no possibility of format
string problems and we use a shell builtin instead of an external
command.
24 years ago
hugh
ac5c85ae03
printf(1) format string fixes! checked by theo.
inspiration from dynamo@ime.net .
also a typo fix.
24 years ago
aaron
0a2ee57885
When including the listing of a directory in root's security mail, pass the
-q flag to ls(1) so that non-printable characters will appear as '?'. This
prevents a malicious user from fooling the administrator into thinking the
contents of a file name are actually valid script output (note that you can
put newlines in file names); deraadt@ ok
24 years ago
rohee
f69c6ad0ce
Add a little blurb explaing the meaning of mtree's output.
millert@ ok.
24 years ago
todd
c1a88d66cc
fix inspired by pr 744 from karls@inet.no
changed so files are e.g. backups/etc_passwd not backups/_etc_passwd
24 years ago
aaron
d57c53f78c
Capitalize 'id' to be consistent with our man pages.
24 years ago
millert
71b4a7b88d
sendmail support files now live in /etc/mail
25 years ago
aaron
9f8e4d853e
existance -> existence
25 years ago
millert
8ea805fe52
match /dev/fd{0,1,2,3}{,B,C,D,E,F,G,H}[abcdefghijklmnop] when doing device checks; closes PR #750
25 years ago
espie
bad13e3a6b
Give line printout along with line number.
25 years ago