Re: Pentium emulation

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Wed, 30 Jul 1997 19:25:11 +0200


Hi,

> +#if CPU==386

Better #ifdef CONFIG_M386

> + * use it to do something bad. If your machine does not need

does not need -> needn't

> + * to be too safe (or you do not nasty users to exec their
> + * own code), you can safely kill whole #if.
> + * <pavel@atrey.karlin.mff.cuni.cz>
> + * */
> + printk( "Sharing VM disabled - WP does not work, could be security hazard.\n" );
> + return -EPERM;
> + }
> +#endif

And what about turning this to a sysctl which would default to 0 (disabled)
on machines with broken WP handling and to 1 elsewhere?

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@gts.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"Not all rumors are as misleading as this one."