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]
Date:	Tue, 30 Jun 2009 08:58:45 -0400
From:	Valdis.Kletnieks@...edu
To:	Lennart Poettering <lennart@...ttering.net>
Cc:	linux-kernel@...r.kernel.org, Alan Cox <alan@...rguk.ukuu.org.uk>,
	William Jon McCann <jmccann@...hat.com>
Subject: Re: [PATCH] vt: extend VT_WAITACTIVE ioctl to allow waiting until a specific VT becomes inactive

On Tue, 30 Jun 2009 02:00:04 +0200, Lennart Poettering said:

> ConsoleKit would probably just call it in a loop like this:
> 
>   for (;;) {
>   	struct vt_stat st;
> 	ioctl(0, VT_GETSTATE, &st);
> 	printf("console %s is active.\n", st.v_active);
> 	ioctl(0, VT_WAITACTIVE, (signed long) - st.v_active);
>   }

We will include a documented way for ConsoleKit and similar to be able
to determine if the kernel has this feature, right? (If older kernels
return a -EBOGUS for ioctl(0,VT_WAITACTIVE,-1) that's probably good enough)

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ