Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262154AbVDRSwh (ORCPT ); Mon, 18 Apr 2005 14:52:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262151AbVDRSvl (ORCPT ); Mon, 18 Apr 2005 14:51:41 -0400 Received: from vds-320151.amen-pro.com ([62.193.204.86]:2442 "EHLO vds-320151.amen-pro.com") by vger.kernel.org with ESMTP id S262154AbVDRSuu (ORCPT ); Mon, 18 Apr 2005 14:50:50 -0400 Subject: [PATCH 4/7] procfs privacy: /proc/bus & /proc/net directory entries From: Lorenzo =?ISO-8859-1?Q?Hern=E1ndez_?= =?ISO-8859-1?Q?Garc=EDa-Hierro?= To: "linux-kernel@vger.kernel.org" Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ORO5tESuSbqOKgPU4x2g" Date: Mon, 18 Apr 2005 20:49:12 +0200 Message-Id: <1113850153.17341.74.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2552 Lines: 63 --=-ORO5tESuSbqOKgPU4x2g Content-Type: multipart/mixed; boundary="=-a4dUnoF52D3jUlH8Fz4i" --=-a4dUnoF52D3jUlH8Fz4i Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This patch changes the permissions of the /proc/net and /proc/bus directory entries so non-root users are restricted from accessing them. It's also available at: http://pearls.tuxedo-es.org/patches/security/proc-privacy-1_fs_proc_root.c.= patch --=20 Lorenzo Hern=E1ndez Garc=EDa-Hierro =20 [1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org] --=-a4dUnoF52D3jUlH8Fz4i Content-Disposition: attachment; filename=proc-privacy-1_fs_proc_root.c.patch Content-Type: text/x-patch; name=proc-privacy-1_fs_proc_root.c.patch; charset=us-ascii Content-Transfer-Encoding: base64 ZGlmZiAtcHVOIGZ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Q0K --=-a4dUnoF52D3jUlH8Fz4i-- --=-ORO5tESuSbqOKgPU4x2g Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBCZAEoDcEopW8rLewRAvE+AJ9IhjT49d16Sp0xDfHvekBKustBrwCgoyLC l7VRIyj5PKlIdGZL1RldAjo= =QZY6 -----END PGP SIGNATURE----- --=-ORO5tESuSbqOKgPU4x2g-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/