lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <45578126.2000306@stud.feec.vutbr.cz>
Date:	Sun, 12 Nov 2006 21:16:38 +0100
From:	Michal Schmidt <xschmi00@...d.feec.vutbr.cz>
To:	ranjith kumar <ranjit_kumar_b4u@...oo.co.uk>
CC:	linux-kernel@...r.kernel.org
Subject: Re: privilege level of program which is called by call_usermodehelper()

ranjith kumar wrote:
> Hi,
> 
> I think  the program which is called by
> call_usermodehelper() will not  be executed at
> privilege level zero on IA-32 machines. 
> Am I right?

Right. Only the kernel runs in privilege level (ring) 0.

> How to run a program which has been compiled by a
> compiler(say gcc) at privilege level zero?

You don't. Well, you could put it in the kernel...

> Indeed I  want to compare time taken in executing two
> programs. If we run them at privilege level zero by
> calling them in a kernel module, processor will not
> switch to other processors.

That's a false assumption. Even kernel code is preemptible nowadays.

> So that we can find out
> time taken to execute a program more accurately.

If you run your program on an otherwise idle machine, the results should 
be pretty accurate.
If you really think it matters, then run your program with real-time 
priority.

> What you say??
> Thanks in advance.

Michal
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ