All of lore.kernel.org
 help / color / mirror / Atom feed
From: guido@trentalancia.net (Guido Trentalancia)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 2/2] system/modutils: Allow kmod to use the sys_admin cap
Date: Sun, 27 Nov 2016 23:31:21 +0100	[thread overview]
Message-ID: <1480285881.620.14.camel@trentalancia.net> (raw)
In-Reply-To: <20161127222218.1ae86825@gentp.lnet>

Hello.

On Sun, 27/11/2016 at 22.22 +0100, Luis Ressel wrote:
> On Sun, 27 Nov 2016 21:33:05 +0100
> Guido Trentalancia via refpolicy <refpolicy@oss.tresys.com> wrote:
> 
> > 
> > Hello.
> > 
> > I have the same graphic card and I am not experiencing this problem
> > with kernel 4.8.8...
> > 
> > Strange, are you using vanilla kernels ?
> > 
> 
> Not exactly. I'm using Gentoo's hardened-sources kernel, which
> incorporates the GRSecurity/PaX patchset and some minor distro-
> specific
> patches. The exact kernel version I'm using is 4.8.10; on the
> userland
> side, I'm using kmod 22.
> 
> The problem arises on both of my development systems; they're using
> the
> i915 and the radeon driver, respectively. So it's indeed interesting
> that this problem doesn't manifest itself on your system. Possible
> explanations in order of descending probability:
> (1) Are you using another kmod version?

No, I am using the same 22 version.

> (2) GRSecurity (I think grsec sometimes requires specific
> capabilities
> ????in situations where vanilla doesn't.)

If it is specific to Gentoo, you should enclose the new permissions
within an ifdef block.

Also, do you have an official bug report in Gentoo ?

> (3) A difference between 4.8.8 and 4.8.10.

There is no evidence of such a change in ChangeLog-4.8.9 and ChangeLog-
4.8.10.

>From the error message that you quoted, it sounds like a call to
fs/libfs.c:simple_pin_fs() fails in drivers/gpu/drm/drm_drv.c.

However, without further evidence, I would not recommend granting the
sys_admin permission.

Regards,

Guido

  parent reply	other threads:[~2016-11-27 22:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-27 16:41 [refpolicy] [PATCH 1/2] system/modutils: Add kernel_search_key(kmod_t) Luis Ressel
2016-11-27 16:41 ` [refpolicy] [PATCH 2/2] system/modutils: Allow kmod to use the sys_admin cap Luis Ressel
2016-11-27 20:33   ` Guido Trentalancia
2016-11-27 21:22     ` Luis Ressel
2016-11-27 21:55       ` Luis Ressel
2016-11-27 22:30       ` Luis Ressel
2016-11-27 22:31       ` Guido Trentalancia [this message]
2016-11-27 22:50         ` Luis Ressel
2016-11-28 17:02           ` Guido Trentalancia
2016-11-28 21:48             ` Luis Ressel
2016-11-28 21:57               ` Guido Trentalancia
2016-11-28 22:14                 ` Luis Ressel
2016-11-28 22:24                   ` Guido Trentalancia
2016-11-28 23:03                     ` Luis Ressel
2016-11-28 23:16                       ` Guido Trentalancia
2016-11-29  1:55                         ` Chris PeBenito
2016-11-29  6:22                           ` Nicolas Iooss
2016-11-29 12:53                             ` [refpolicy] [PATCH] Allow getty the sys_admin capability (was Re: [PATCH 2/2] system/modutils: Allow kmod to use the sys_admin cap) Guido Trentalancia
2016-11-28 22:03             ` [refpolicy] [PATCH 2/2] system/modutils: Allow kmod to use the sys_admin cap Luis Ressel
2016-11-28 22:08               ` Guido Trentalancia
2016-12-04 23:56 ` [refpolicy] [PATCH 1/2] system/modutils: Add kernel_search_key(kmod_t) Luis Ressel
2016-12-07  0:59 ` Chris PeBenito

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=1480285881.620.14.camel@trentalancia.net \
    --to=guido@trentalancia.net \
    --cc=refpolicy@oss.tresys.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.