2015-06-16 16:42:28

by Alex Henrie

[permalink] [raw]
Subject: ioperm is kept on fork

Hi,

Could one of you knowledgeable kernel developers comment on
https://bugzilla.kernel.org/show_bug.cgi?id=99911 ? The man pages
maintainer wants to know when this behavior changed.

-Alex


2015-06-16 17:31:13

by H. Peter Anvin

[permalink] [raw]
Subject: Re: ioperm is kept on fork

On 06/16/2015 09:42 AM, Alex Henrie wrote:
> Hi,
>
> Could one of you knowledgeable kernel developers comment on
> https://bugzilla.kernel.org/show_bug.cgi?id=99911 ? The man pages
> maintainer wants to know when this behavior changed.
>

I know that I wrote a program which required I/O privileges at some
point, and it called ioperm() in a setuid wrapper. This was in the late
90s. I suspect we'd have to do a bit of a deep dive to double-check;
the old ioperm() code which only supported the ISA port range to avoid
having to copy the bitmap might be good to look at.

-hpa