what is the rationale for "TAINT_USER"?

Previous thread: [PATCH] sched domain debug sysctl fixes by Milton Miller on Friday, October 12, 2007 - 2:34 am. (10 messages)

Next thread: Re: [RFD] iptables: mangle table obsoletes filter table by Al Boldi on Friday, October 12, 2007 - 5:25 am. (5 messages)
From: Robert P. J. Day
Date: Friday, October 12, 2007 - 5:04 am

i can see what the theoretical purpose for it is here:

http://kerneltrap.org/node/6656

but it's not clear how it can possibly be set from userland given
that:

$ grep -r TAINT_USER *
include/linux/kernel.h:#define TAINT_USER                       (1<<6)
kernel/panic.c:                 tainted & TAINT_USER ? 'U' : ' ',
$

  am i missing something screamingly obvious?

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================
-

From: Nadia Derbey
Date: Friday, October 12, 2007 - 5:30 am

#ifdef CONFIG_PROC_SYSCTL
         {
                 .ctl_name       = KERN_TAINTED,
                 .procname       = "tainted",
                 .data           = &tainted,
                 .maxlen         = sizeof(int),
                 .mode           = 0644,
                 .proc_handler   = &proc_dointvec_taint,
         },
#endif


Regards,
Nadia
-

From: Robert P. J. Day
Date: Friday, October 12, 2007 - 5:18 am

whoops, never mind -- if i read correctly, that particular flag bit
must be set *explicitly* when writing to /proc/sys/kernel/tainted.  i
originally thought it would be set by kernel code simply by the act of
writing to /proc/sys/kernel/tainted, and i couldn't see where that was
happening.  carry on.

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================
-

From: Björn
Date: Friday, October 12, 2007 - 5:27 am

Grepping for "tainted" leads me to:

echo 32 > /proc/sys/kernel/tainted

Björn
-

From: Robert P. J. Day
Date: Friday, October 12, 2007 - 5:37 am

On Fri, 12 Oct 2007, Bj
From: Björn
Date: Friday, October 12, 2007 - 5:48 am

Oops, yeah, 64... And it didn't lead me to the exact phrase, but the
sysctl handler, which (implicitly) led me to that command. Sorry for
the confusion.

Björn
-

Previous thread: [PATCH] sched domain debug sysctl fixes by Milton Miller on Friday, October 12, 2007 - 2:34 am. (10 messages)

Next thread: Re: [RFD] iptables: mangle table obsoletes filter table by Al Boldi on Friday, October 12, 2007 - 5:25 am. (5 messages)