Re: /dev/port BUG and possible workaround

Nick Kurshev (nickols_k@mail.ru)
Wed, 22 May 2002 13:12:10 +0400


--=.smnd36nSrVi8H+
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hello, Martin!

On Wed, 22 May 2002 09:52:35 +0200 you wrote:

> Uz.ytkownik Nick Kurshev napisa?:
>
> ...
>
> > 800=inl(CFC)
> > 2. Wrong log with using of /dev/port:
>
> ...
>
> > But it seems that nobody uses this device. Then what is goal
> > of implementing of this device?
>
> Basically the goal is that contrary to some silly /proc
> stuff which is "en vouge" nowadays you have the ability to
> controll port access by using normal user permission control
> semantics of unix file access permissions, by giving /dev/port
> a proper group and so on. This is legacy crap of course, since
But this device is unworking in general. It simply unusable for
programs which require 4-byte operations with ports.
As I wrote: outl() != 4*outb() same as inl() != 4*inb()
> the above goal can be reached by using a apache-suexec alike wrapper
> as well... even with more fine grained resolution of access controll.
>
Maybe after fixing these flaws it will be usable but not for now.

Best regards! Nick

--=.smnd36nSrVi8H+
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE862DsB/1cNcrTvJkRArC/AKCQX88a0yxx9q53HObJAW4ICU8A7ACgwxnc
bYmpKFnu2qzrn+iDw/PSkrE=
=3PCW
-----END PGP SIGNATURE-----

--=.smnd36nSrVi8H+--

-
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/