xselinux: Add new protocol for setting device create context.

This commit is contained in:
Eamon Walsh 2007-12-12 20:44:59 -05:00 committed by Eamon Walsh
parent 8503072e1c
commit 9a7ce57363
2 changed files with 42 additions and 8 deletions

View File

@ -1051,6 +1051,18 @@ ProcSELinuxGetSelectionManager(ClientPtr client)
return (client->noClientException); return (client->noClientException);
} }
static int
ProcSELinuxSetDeviceCreateContext(ClientPtr client)
{
return Success;
}
static int
ProcSELinuxGetDeviceCreateContext(ClientPtr client)
{
return Success;
}
static int static int
ProcSELinuxSetDeviceContext(ClientPtr client) ProcSELinuxSetDeviceContext(ClientPtr client)
{ {
@ -1134,6 +1146,10 @@ ProcSELinuxDispatch(ClientPtr client)
return ProcSELinuxSetSelectionManager(client); return ProcSELinuxSetSelectionManager(client);
case X_SELinuxGetSelectionManager: case X_SELinuxGetSelectionManager:
return ProcSELinuxGetSelectionManager(client); return ProcSELinuxGetSelectionManager(client);
case X_SELinuxSetDeviceCreateContext:
return ProcSELinuxSetDeviceCreateContext(client);
case X_SELinuxGetDeviceCreateContext:
return ProcSELinuxGetDeviceCreateContext(client);
case X_SELinuxSetDeviceContext: case X_SELinuxSetDeviceContext:
return ProcSELinuxSetDeviceContext(client); return ProcSELinuxSetDeviceContext(client);
case X_SELinuxGetDeviceContext: case X_SELinuxGetDeviceContext:
@ -1184,6 +1200,18 @@ SProcSELinuxGetSelectionManager(ClientPtr client)
return ProcSELinuxGetSelectionManager(client); return ProcSELinuxGetSelectionManager(client);
} }
static int
SProcSELinuxSetDeviceCreateContext(ClientPtr client)
{
return ProcSELinuxSetDeviceCreateContext(client);
}
static int
SProcSELinuxGetDeviceCreateContext(ClientPtr client)
{
return ProcSELinuxGetDeviceCreateContext(client);
}
static int static int
SProcSELinuxSetDeviceContext(ClientPtr client) SProcSELinuxSetDeviceContext(ClientPtr client)
{ {
@ -1247,6 +1275,10 @@ SProcSELinuxDispatch(ClientPtr client)
return SProcSELinuxSetSelectionManager(client); return SProcSELinuxSetSelectionManager(client);
case X_SELinuxGetSelectionManager: case X_SELinuxGetSelectionManager:
return SProcSELinuxGetSelectionManager(client); return SProcSELinuxGetSelectionManager(client);
case X_SELinuxSetDeviceCreateContext:
return SProcSELinuxSetDeviceCreateContext(client);
case X_SELinuxGetDeviceCreateContext:
return SProcSELinuxGetDeviceCreateContext(client);
case X_SELinuxSetDeviceContext: case X_SELinuxSetDeviceContext:
return SProcSELinuxSetDeviceContext(client); return SProcSELinuxSetDeviceContext(client);
case X_SELinuxGetDeviceContext: case X_SELinuxGetDeviceContext:

View File

@ -33,14 +33,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define X_SELinuxQueryVersion 0 #define X_SELinuxQueryVersion 0
#define X_SELinuxSetSelectionManager 1 #define X_SELinuxSetSelectionManager 1
#define X_SELinuxGetSelectionManager 2 #define X_SELinuxGetSelectionManager 2
#define X_SELinuxSetDeviceContext 3 #define X_SELinuxSetDeviceCreateContext 3
#define X_SELinuxGetDeviceContext 4 #define X_SELinuxGetDeviceCreateContext 4
#define X_SELinuxSetPropertyCreateContext 5 #define X_SELinuxSetDeviceContext 5
#define X_SELinuxGetPropertyCreateContext 6 #define X_SELinuxGetDeviceContext 6
#define X_SELinuxGetPropertyContext 7 #define X_SELinuxSetPropertyCreateContext 7
#define X_SELinuxSetWindowCreateContext 8 #define X_SELinuxGetPropertyCreateContext 8
#define X_SELinuxGetWindowCreateContext 9 #define X_SELinuxGetPropertyContext 9
#define X_SELinuxGetWindowContext 10 #define X_SELinuxSetWindowCreateContext 10
#define X_SELinuxGetWindowCreateContext 11
#define X_SELinuxGetWindowContext 12
typedef struct { typedef struct {
CARD8 reqType; CARD8 reqType;