Skip to contentSkip to conversation

new_device_permissions.patch

refpolicy Eamon Walsh 2 participants 7 messages Jun 18, 2009 – Aug 17, 2009

lore
Share & tools
lore
#0 lore raw

Add a few new permissions to the "x_device" class to support the new XI2 functionality just merged to the X server.

Signature · 10 lines
Eamon Walsh <[email protected]>
National Security Agency

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xi2_device_perms.patch
Type: text/x-patch
Size: 326 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20090617/7030eabd/attachment.bin 
#1 lore raw
Quoted 3 lines · Eamon Walsh

Add a few new permissions to the "x_device" class to support the new XI2
functionality just merged to the X server.

Merged.

Quoted 28 lines

differences
between files
attachment
(xi2_device_perms.patch)

Index: policy/flask/access_vectors
===================================================================

flask/access_vectors (working copy) renamed from flask/access_vectors (revision 2996) +5 -0
@@ -539,6 +539,11 @@
        freeze
        grab
        manage
+       list_property
+       get_property
+       set_property
+       add
+       remove
 }
 
 class x_server
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#2 lore raw
In reply to Eamon Walsh
Quoted 4 lines · Eamon Walsh

Add a few new permissions to the "x_device" class to support the new XI2 functionality just merged to the X server.

In the previous patch 2 x_device permission bits for the XI2 functionality were left out.

Fixed with attached patch.

Signature · 10 lines
Eamon Walsh<[email protected]>
National Security Agency

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xi2_device_perms2.patch
Type: text/x-patch
Size: 288 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20090810/dce3a689/attachment.bin 
#3 lore raw
Quoted 8 lines · Eamon Walsh
Quoted 1 line · Eamon Walsh

Add a few new permissions to the "x_device" class to support the new

XI2

Quoted 3 lines

functionality just merged to the X server.

Quoted 4 lines

In the previous patch 2 x_device permission bits for the XI2 functionality were left out.

Fixed with attached patch.

Whats the difference between add/remove and create/destroy?

Quoted 13 lines

Index: policy/flask/access_vectors
===================================================================

flask/access_vectors (working copy) renamed from flask/access_vectors (revision 3012) +2 -0
@@ -544,6 +544,8 @@
        set_property
        add
        remove
+       create
+       destroy
 }
 
 class x_server
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#4 lore raw
Quoted 12 lines · Christopher J. PeBenito
Quoted 10 lines · Eamon Walsh
Quoted 2 lines · Eamon Walsh

Add a few new permissions to the "x_device" class to support the new

XI2

Quoted 4 lines

functionality just merged to the X server.

Quoted 9 lines
Quoted 5 lines

In the previous patch 2 x_device permission bits for the XI2 functionality were left out.

Fixed with attached patch.

Whats the difference between add/remove and create/destroy?

The devices are in a kind of hierarchy. You can now create one or more "master devices" (mouse cursor and keyboard focus). The physical input devices are "slave devices" that attach to master devices.

Add/remove controls the ability to add/remove slave devices from a master device. Create/destroy controls the ability to create new master devices.

Signature · 2 lines
Eamon Walsh<[email protected]>
National Security Agency
#5 lore raw
Quoted 24 lines · Eamon Walsh
Quoted 12 lines · Christopher J. PeBenito
Quoted 10 lines · Eamon Walsh
Quoted 2 lines · Eamon Walsh

Add a few new permissions to the "x_device" class to support the new

XI2

Quoted 4 lines

functionality just merged to the X server.

Quoted 9 lines
Quoted 5 lines

In the previous patch 2 x_device permission bits for the XI2 functionality were left out.

Fixed with attached patch.

Whats the difference between add/remove and create/destroy?

Quoted 7 lines

The devices are in a kind of hierarchy. You can now create one or more "master devices" (mouse cursor and keyboard focus). The physical input devices are "slave devices" that attach to master devices.

Add/remove controls the ability to add/remove slave devices from a master device. Create/destroy controls the ability to create new master devices.

Merged. Are there any MLS constraints updates for these permissions?

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#6 lore raw
Quoted 36 lines · Christopher J. PeBenito
Quoted 34 lines · Eamon Walsh
Quoted 17 lines · Christopher J. PeBenito
Quoted 14 lines · Eamon Walsh
Quoted 3 lines · Eamon Walsh

Add a few new permissions to the "x_device" class to support the new

XI2

Quoted 5 lines

functionality just merged to the X server.

Quoted 10 lines
Quoted 6 lines

In the previous patch 2 x_device permission bits for the XI2 functionality were left out.

Fixed with attached patch.

Whats the difference between add/remove and create/destroy?

The devices are in a kind of hierarchy. You can now create one or more "master devices" (mouse cursor and keyboard focus). The physical input devices are "slave devices" that attach to master devices.

Quoted 7 lines
Quoted 4 lines

Add/remove controls the ability to add/remove slave devices from a master device. Create/destroy controls the ability to create new master devices.

Merged. Are there any MLS constraints updates for these permissions?

Yes, I did an X demo here last month and have some policy changes, I'm still working on cleaning them up for submission.

Signature · 2 lines
Eamon Walsh<[email protected]>
National Security Agency