Skip to contentSkip to conversation

Any idea why /proc/mtrr is marked as mtrr_device_t?

DISCUSSION Daniel J Walsh 3 participants 5 messages Aug 1, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw

See Documentation/mtrr.txt in the kernel tree.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 3 lines · Stephen Smalley

See Documentation/mtrr.txt in the kernel tree.

So labeling a file as a device_t is ok?

In strict policy xserver wants to write to it

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
Quoted 7 lines · Daniel J Walsh
Quoted 3 lines · Stephen Smalley

See Documentation/mtrr.txt in the kernel tree.

So labeling a file as a device_t is ok?

In strict policy xserver wants to write to it

Yes, X needs access to it, and that rule existed in the old example policy. Does refpolicy lack it?

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 11 lines · Stephen Smalley
Quoted 7 lines · Daniel J Walsh
Quoted 3 lines · Stephen Smalley

See Documentation/mtrr.txt in the kernel tree.

So labeling a file as a device_t is ok?

In strict policy xserver wants to write to it

Yes, X needs access to it, and that rule existed in the old example policy. Does refpolicy lack it?

Looks like a bug in the interface. Xserver has dev_rw_mtrr(), but the interface had mtrr_device_t:chr_file perms but was missing access for the file class.

Signature · 9 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.