All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: "Václav Ovsík" <vaclav.ovsik@i.cz>
Cc: SELinux List <selinux@tycho.nsa.gov>,
	Martin Orr <martin@martinorr.name>,
	Stephen Smalley <sds@tycho.nsa.gov>,
	Chris PeBenito <pebenito@gentoo.org>,
	Eamon Walsh <ewalsh@tycho.nsa.gov>
Subject: Re: refpolicy: syscall init_module needs sys_nice & setsched
Date: Thu, 22 May 2008 14:29:46 -0400	[thread overview]
Message-ID: <1211480986.11188.152.camel@gorn> (raw)
In-Reply-To: <20080522122919.GA32485@bobek.pm.i.cz>

On Thu, 2008-05-22 at 14:29 +0200, Václav Ovsík wrote:
> while playing with current Debian Sid, Linux 2.6.25 I noticed, denials
> on modprobe:
> 
> May 22 07:26:11 sid kernel: [    9.195474] type=1400 audit(1211433957.144:3): avc:  denied  { sys_nice } for  pid=801 comm="modprobe" capability=23 scontext=system_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=capability
> May 22 07:26:11 sid kernel: [    9.198362] type=1400 audit(1211433957.144:3): avc:  denied  { setsched } for  pid=801 comm="modprobe" scontext=system_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=process
> 
> After a longer investigation with git-bisect I found, that above
> denials appeared after kernel commit:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=85653af7d488702165eba72c6c1dd0250fae4e70
> A function stop_machine() (from kernel/stop_machine.c) was changed in
> this commit in such a way, that system calls init_module()
> & delete_module() needs sys_nice & setsched. I did'n try to understand
> code too much (consequences of this commit).
> 
> I found in the history of SE Linux mailing list Martin Orr sent a patch
> already. (The correspondence attached.)
> The Martins patch is available at URL:
> http://www.martinorr.name/selinux/patches/151_module_setsched

I added that and comments as to why its needed.

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

      reply	other threads:[~2008-05-22 18:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-18  3:14 Xorg modprobe denials Eamon Walsh
2007-12-18  3:47 ` Chris PeBenito
2007-12-18 13:34   ` Stephen Smalley
2007-12-18 13:57     ` Stephen Smalley
2007-12-19 21:11       ` Martin Orr
2008-01-03 15:30         ` Christopher J. PeBenito
2008-01-03 17:25           ` Martin Orr
2008-05-22 12:29         ` refpolicy: syscall init_module needs sys_nice & setsched Václav Ovsík
2008-05-22 18:29           ` Christopher J. PeBenito [this message]

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=1211480986.11188.152.camel@gorn \
    --to=cpebenito@tresys.com \
    --cc=ewalsh@tycho.nsa.gov \
    --cc=martin@martinorr.name \
    --cc=pebenito@gentoo.org \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=vaclav.ovsik@i.cz \
    /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.