From owner-freebsd-hackers Mon Apr 8 10:59:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from milla.33net.fdns.net (milla.33net.fdns.net [217.197.166.58]) by hub.freebsd.org (Postfix) with ESMTP id 6441837B41A for ; Mon, 8 Apr 2002 10:59:34 -0700 (PDT) Received: (from nick@localhost) by milla.33net.fdns.net (8.11.6/8.11.6) id g38I0Yg07586 for freebsd-hackers@FreeBSD.org; Mon, 8 Apr 2002 20:00:34 +0200 (CEST) (envelope-from nick) Date: Mon, 8 Apr 2002 20:00:34 +0200 From: =?ISO-8859-2?Q?Pawe=B3_Jakub_Dawidek?= To: freebsd-hackers@FreeBSD.org Subject: Hardlinks... Message-ID: <20020408200034.C5952@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="0vzXIDBeUiKkjNJl" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-PGP-Key-URL: http://garage.freebsd.pl/keys/PGP.txt X-OS: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --0vzXIDBeUiKkjNJl Content-Type: text/plain; charset=ISO-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey... Why I can made hardlink to file that I'm not owner? Simple example why I think that only owner should have permission to create hardlinks to his files. First. leila:root:~# ls -l /root/very-secret-file -rw------ 1 root wheel 3011 13 Lut 16:47 /root/very-secret-file leila:evil-hacker:~> ln /root/very-secret-file ~/whatsthis leila:root:~# rm -f /root/very-secret-file Yes, I know that evil-hacker can't read this file but... He can't read it NOW, but in a future he can break in and read it. I know that we can check this with 'st_nlink' or use -P with rm, but... Or tell me when this feature can help. --=20 Pawe=B3 Jakub Dawidek Network Administrator. Am I Evil? Yes, I Am. --0vzXIDBeUiKkjNJl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQCVAwUBPLHawj/PhmMH/Mf1AQHcMgQAjyWuwbruElH8NAagqlZ0u5o2r+lE2Nei DvmE1BFpjpkxtv0FqnXn1se3qo16f3Ou0xuCO1u9OAnt705XF/NVJX8evIwI8fo/ uw0GT/Cgsz1sGkVIJ1Q1Ed/Ky3VSIBIpamXagpJ+l/Nhaf/l7r44/arjcKfsRmtA XCVMNHSuhw4= =Xodr -----END PGP SIGNATURE----- --0vzXIDBeUiKkjNJl-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message