public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: iseletsk@cloudlinux.com
Cc: fa.linux.kernel@googlegroups.com,
	Alex Lyashkov <umka@cloudlinux.com>,
	Matthew Garrett <mjg59@srcf.ucam.org>,
	linux-kernel@vger.kernel.org, rusty@rustcorp.com.au
Subject: Re: [PATCH] Taint kernel when lve module is loaded
Date: Sat, 23 Jun 2012 23:35:18 -0700	[thread overview]
Message-ID: <20120624063518.GA11266@kroah.com> (raw)
In-Reply-To: <8dc680a1-4a03-462d-b381-bf5c1470aa7e@googlegroups.com>

On Sat, Jun 23, 2012 at 12:26:41PM -0700, iseletsk@cloudlinux.com wrote:
> On Friday, June 22, 2012 3:43:23 PM UTC-4, Greg KH wrote:
> > On Fri, Jun 22, 2012 at 12:22:22PM -0700, Greg KH wrote:
> > > On Fri, Jun 22, 2012 at 07:51:42PM +0100, Matthew Garrett wrote:
> > > > On Fri, Jun 22, 2012 at 11:43:59AM -0700, Greg KH wrote:
> > > > 
> > > > > Do you have a pointer to this code anywhere?  Lying about the license to
> > > > > the kernel is a pretty blatent thing to do and I'd like to have some
> > > > > people follow up on that issue.
> > > > 
> > > > http://repo.cloudlinux.com/cloudlinux/5.8/updates-testing/x86_64/RPMS/kmod-lve-2.6.18-408.el5.lve1.1.64.2-1.1-10.7.3.el5.x86_64.rpm 
> > > > - there's no corresponding SRPM in 
> > > > http://repo.cloudlinux.com/cloudlinux/5.8/updates-testing/SRPMS/ and 
> > > > upstream apparently refuse to provide source. Alex Lyashkov (Cc:ed) is 
> > > > listed as module author in the metadata.
> > > 
> > > Hm, and at least one reason it needs to be GPL is due to it using
> > > symbols I created, no fun.
> > > 
> > > Alex, can you please provide the source code for this module?  Or is the
> > > license that the code is saying it is, somehow incorrect?  If so, can
> > > you please fix it?  If you can't do this, is there someone else I should
> > > be contacting?
> > 
> > Also, I almost hate to ask this, but why in the world are you creating
> > sysfs binary files?  I really don't think you should be doing this, as
> > those are only for firmware and other "pass-through" things the kernel
> > uses to have userspace talk directly to hardware.
> > 
> > Odds are you can remove these files, and use the "correct" user/kernel
> > interface which will result in much better speed and handle things
> > properly for you, instead of abusing this interface.
> > 
> > Unless you really are talking directly to hardware, in which case, I'm
> > kind of interested to see what you are doing here, so the source code
> > would be greatly appreciated.
> > 
> > thanks,
> > 
> > greg k-h
> > --
> > 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/
> 
> Greg,
> 
> We do a "hack", which is not a pretty one, populating /sys with
> .htaccess files. This is really needed only by shared hosters, where
> one of the end users on the server, could be a hacker and could create
> symlinks that would later be followed by apache to read privileged
> information.

I don't understand how adding a .htaccess file would solve anything
here.  Are you also adding a .htaccess file to every directory in the
whole system?

> A better fix would be fixing the apache. Yet, surprisingly enough --
> we control kernel on those servers -- but we don't control apache. So
> -- we tried to secure things for our customers in this particular way.
> Most likely we will through it out anyway.

As it's probably not solving anything real, please don't do that :)

greg k-h

  reply	other threads:[~2012-06-24  6:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.WTHIDfGYg3w7zn9rxlDshNfnPtI@ifi.uio.no>
2012-06-23 15:07 ` [PATCH] Taint kernel when lve module is loaded iseletsk
2012-06-24  6:39   ` Greg KH
2012-06-24  7:33   ` Mike Galbraith
     [not found] ` <fa.lxvUw3/2JBxq1zvQzI4sJk8pEOQ@ifi.uio.no>
     [not found]   ` <fa.Fdbx7aeDSXKMF/2ajG0IUf0AAKs@ifi.uio.no>
     [not found]     ` <fa.TAjdtaR/BMl+PZAWwtAit9BevAo@ifi.uio.no>
     [not found]       ` <fa.cm6Pl6ITE2qRnrdz/DXqaOSgExs@ifi.uio.no>
2012-06-23 19:26         ` iseletsk
2012-06-24  6:35           ` Greg KH [this message]
     [not found]             ` <CA+-XxSG8mpERvUwKgG4M8=ZuSd3P+ZYfw5mL3R4zLTAYGPW3Mw@mail.gmail.com>
2012-07-11 15:26               ` Greg KH
2012-06-22 17:49 Matthew Garrett
2012-06-22 18:43 ` Greg KH
2012-06-22 18:51   ` Matthew Garrett
2012-06-22 19:22     ` Greg KH
2012-06-22 19:43       ` Greg KH
2012-06-22 19:09 ` richard -rw- weinberger
2012-06-22 19:40   ` Greg KH
2012-06-23  0:00 ` Rusty Russell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120624063518.GA11266@kroah.com \
    --to=greg@kroah.com \
    --cc=fa.linux.kernel@googlegroups.com \
    --cc=iseletsk@cloudlinux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=rusty@rustcorp.com.au \
    --cc=umka@cloudlinux.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox