From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/2]: cpucontrol module updates (stricter policy for CPU microcode updates)
Date: Mon, 17 Sep 2012 09:28:56 -0400 [thread overview]
Message-ID: <50572598.3020407@tresys.com> (raw)
In-Reply-To: <504B1DA9.9010601@trentalancia.com>
On 09/08/12 06:27, Guido Trentalancia wrote:
> Hello.
>
> Here is a revised version (1/1) of the patch for the cpucontrol module.
>
> On 29/08/2012 15:04, Christopher J. PeBenito wrote:
>> On 08/24/12 10:02, Guido Trentalancia wrote:
>>> cpucontrol module updates:
>>> - introduce the file contexts according to the standard location
>>> of the most common application named microcode_ctl
>>> (http://www.urbanmyth.org/microcode);
>
> Dropped as risky. Can be tackled at a later time or by
> users/distributions individually.
>
>>> - add file contexts for CPUs from two different vendors, taking
>>> into consideration specific customization of the location
>>> for one distribution;
>
> Not taking anymore into consideration binary location customizations as
> too risky. Only adding generic support for the most likely location of
> the application provided by the other manufacturer.
>
>>> - add file contexts and declarations for the init script;
>>> - introduce the ability to update the CPU microcode as
>>> tunable policy, as apparently such operation might
>>> modify the original licensing conditions (under some or
>>> all circumstances: "personal, non-commercial use only");
>>> - create a new device type specifically for the CPU microcode
>>> updating functionality and modify the cpucontrol module so
>>> that such distinct new type is used for the microcode
>>> updating operation, thus leaving an open door for further
>>> modifications that distinguish different CPU-related
>>> applications/utilities to create further isolation;
>>> - modify the interface definitions so that the CPU microcode
>>> update utility can only write and not read (unneeded) the
>>> corresponding above mentioned device type.
Before I can commit this, I need an answer for this previous question:
>>> @@ -37,7 +48,6 @@ kernel_read_proc_symlinks(cpucontrol_t)
>>> kernel_read_kernel_sysctls(cpucontrol_t)
>>>
>>> dev_read_sysfs(cpucontrol_t)
>>> -dev_rw_cpu_microcode(cpucontrol_t)
>>>
>>> fs_search_auto_mountpoints(cpucontrol_t)
>>>
>>> @@ -54,6 +64,10 @@ logging_send_syslog_msg(cpucontrol_t)
>>>
>>> userdom_dontaudit_use_unpriv_user_fds(cpucontrol_t)
>>>
>>> +tunable_policy(`cpucontrol_can_upload_cpu_microcode',`
>>> + dev_write_cpu_microcode(cpucontrol_t)
>>> +')
>>
>> I don't understand why this is conditional, especially since you removed the read permission on /dev/microcode. The point of the app is to load microcode.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
prev parent reply other threads:[~2012-09-17 13:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 14:02 [refpolicy] [PATCH 1/2]: cpucontrol module updates (stricter policy for CPU microcode updates) Guido Trentalancia
2012-08-29 13:04 ` Christopher J. PeBenito
2012-08-29 15:37 ` Guido Trentalancia
2012-09-08 10:27 ` Guido Trentalancia
2012-09-17 13:28 ` 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=50572598.3020407@tresys.com \
--to=cpebenito@tresys.com \
--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.