diff options
author | peter <peter@FreeBSD.org> | 1996-05-24 16:19:23 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-05-24 16:19:23 +0000 |
commit | 9453593a7d6b8b4929584c55937cbc51e5de1a67 (patch) | |
tree | 6ef918bde1f5f78a10f566be17075b5cd3bc8e9e /lib/libc/regex | |
parent | 4545233798c7d7eae3f8c4e673c91a6d2eef0622 (diff) | |
download | FreeBSD-src-9453593a7d6b8b4929584c55937cbc51e5de1a67.zip FreeBSD-src-9453593a7d6b8b4929584c55937cbc51e5de1a67.tar.gz |
Dont allow directories to be link()ed or unlink()ed, even for root
(returns EPERM always, the errno is specified by POSIX).
If you really have a desperate need to link or unlink a directory, you
can use fsdb. :-)
This should stop any chance of ftpd, rdist, "rm -rf", etc from
bugging out and damaging the filesystem structure or loosing races
with malicious users.
Reviewed by: davidg, bde
Diffstat (limited to 'lib/libc/regex')
0 files changed, 0 insertions, 0 deletions