Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262136AbVDRSlF (ORCPT ); Mon, 18 Apr 2005 14:41:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262141AbVDRSlF (ORCPT ); Mon, 18 Apr 2005 14:41:05 -0400 Received: from vds-320151.amen-pro.com ([62.193.204.86]:53722 "EHLO vds-320151.amen-pro.com") by vger.kernel.org with ESMTP id S262136AbVDRSkz (ORCPT ); Mon, 18 Apr 2005 14:40:55 -0400 Subject: [PATCH 1/7] procfs privacy: /proc/bus/pci 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="=-M/M3Gnm6lpweZ85it1g7" Date: Mon, 18 Apr 2005 20:33:17 +0200 Message-Id: <1113849197.17341.52.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: 2707 Lines: 66 --=-M/M3Gnm6lpweZ85it1g7 Content-Type: multipart/mixed; boundary="=-IPz41u/oMzg2SmovfqgH" --=-IPz41u/oMzg2SmovfqgH Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This patch changes the permissions of the /proc/bus/pci directory entry, so, non-root users are restricted of accessing it's content. It's also available at: http://pearls.tuxedo-es.org/patches/security/proc-privacy-1_drivers_pci_pro= c.c.patch --=20 Lorenzo Hern=E1ndez Garc=EDa-Hierro =20 [1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org] --=-IPz41u/oMzg2SmovfqgH Content-Disposition: attachment; filename=proc-privacy-1_drivers_pci_proc.c.patch Content-Type: text/x-patch; name=proc-privacy-1_drivers_pci_proc.c.patch; charset=us-ascii Content-Transfer-Encoding: base64 ZGlmZiAtcHVOIGRyaXZ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ZV9wcm9jX2VudHJ5KCJkZXZpY2VzIiwgMCwgcHJvY19idXNfcGNp X2Rpcik7DQogCWlmIChlbnRyeSkNCiAJCWVudHJ5LT5wcm9jX2ZvcHMgPSAmcHJvY19idXNfcGNp X2Rldl9vcGVyYXRpb25zOw0K --=-IPz41u/oMzg2SmovfqgH-- --=-M/M3Gnm6lpweZ85it1g7 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) iD8DBQBCY/1tDcEopW8rLewRApadAKCTGW1VKUeb9DcTv9oP+yu0q4qXXgCgmapB Dhoixr86yWuYmjm4Ci57KmY= =Pq5r -----END PGP SIGNATURE----- --=-M/M3Gnm6lpweZ85it1g7-- - 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/