Messages in this thread | | | Date | Mon, 22 May 2006 03:36:44 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] Add user taint flag |
| |
"Theodore Ts'o" <tytso@mit.edu> wrote: > > > Allow taint flags to be set from userspace by writing to > /proc/sys/kernel/tainted, and add a new taint flag, TAINT_USER, to be > used when userspace is potentially doing something naughty that might > compromise the kernel.
What sort of userspace actions are you thinking of here?
And how is other userspace to detect what the naughty userspace is doing?
Someone's done something and you're not telling us what it was ;)
> > ... > > +/* > + * Taint values can only be increased > + */ > +int proc_dointvec_taint(ctl_table *table, int write, struct file *filp, > + void __user *buffer, size_t *lenp, loff_t *ppos) > +{ > + int op; > + > + if (!capable(CAP_SYS_ADMIN)) { > + return -EPERM; > + }
Aren't the /proc file permissions sufficient?
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |