xselinux: Add new protocol for setting device create context.
This commit is contained in:
parent
8503072e1c
commit
9a7ce57363
|
@ -1051,6 +1051,18 @@ ProcSELinuxGetSelectionManager(ClientPtr client)
|
|||
return (client->noClientException);
|
||||
}
|
||||
|
||||
static int
|
||||
ProcSELinuxSetDeviceCreateContext(ClientPtr client)
|
||||
{
|
||||
return Success;
|
||||
}
|
||||
|
||||
static int
|
||||
ProcSELinuxGetDeviceCreateContext(ClientPtr client)
|
||||
{
|
||||
return Success;
|
||||
}
|
||||
|
||||
static int
|
||||
ProcSELinuxSetDeviceContext(ClientPtr client)
|
||||
{
|
||||
|
@ -1134,6 +1146,10 @@ ProcSELinuxDispatch(ClientPtr client)
|
|||
return ProcSELinuxSetSelectionManager(client);
|
||||
case X_SELinuxGetSelectionManager:
|
||||
return ProcSELinuxGetSelectionManager(client);
|
||||
case X_SELinuxSetDeviceCreateContext:
|
||||
return ProcSELinuxSetDeviceCreateContext(client);
|
||||
case X_SELinuxGetDeviceCreateContext:
|
||||
return ProcSELinuxGetDeviceCreateContext(client);
|
||||
case X_SELinuxSetDeviceContext:
|
||||
return ProcSELinuxSetDeviceContext(client);
|
||||
case X_SELinuxGetDeviceContext:
|
||||
|
@ -1184,6 +1200,18 @@ SProcSELinuxGetSelectionManager(ClientPtr client)
|
|||
return ProcSELinuxGetSelectionManager(client);
|
||||
}
|
||||
|
||||
static int
|
||||
SProcSELinuxSetDeviceCreateContext(ClientPtr client)
|
||||
{
|
||||
return ProcSELinuxSetDeviceCreateContext(client);
|
||||
}
|
||||
|
||||
static int
|
||||
SProcSELinuxGetDeviceCreateContext(ClientPtr client)
|
||||
{
|
||||
return ProcSELinuxGetDeviceCreateContext(client);
|
||||
}
|
||||
|
||||
static int
|
||||
SProcSELinuxSetDeviceContext(ClientPtr client)
|
||||
{
|
||||
|
@ -1247,6 +1275,10 @@ SProcSELinuxDispatch(ClientPtr client)
|
|||
return SProcSELinuxSetSelectionManager(client);
|
||||
case X_SELinuxGetSelectionManager:
|
||||
return SProcSELinuxGetSelectionManager(client);
|
||||
case X_SELinuxSetDeviceCreateContext:
|
||||
return SProcSELinuxSetDeviceCreateContext(client);
|
||||
case X_SELinuxGetDeviceCreateContext:
|
||||
return SProcSELinuxGetDeviceCreateContext(client);
|
||||
case X_SELinuxSetDeviceContext:
|
||||
return SProcSELinuxSetDeviceContext(client);
|
||||
case X_SELinuxGetDeviceContext:
|
||||
|
|
|
@ -33,14 +33,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#define X_SELinuxQueryVersion 0
|
||||
#define X_SELinuxSetSelectionManager 1
|
||||
#define X_SELinuxGetSelectionManager 2
|
||||
#define X_SELinuxSetDeviceContext 3
|
||||
#define X_SELinuxGetDeviceContext 4
|
||||
#define X_SELinuxSetPropertyCreateContext 5
|
||||
#define X_SELinuxGetPropertyCreateContext 6
|
||||
#define X_SELinuxGetPropertyContext 7
|
||||
#define X_SELinuxSetWindowCreateContext 8
|
||||
#define X_SELinuxGetWindowCreateContext 9
|
||||
#define X_SELinuxGetWindowContext 10
|
||||
#define X_SELinuxSetDeviceCreateContext 3
|
||||
#define X_SELinuxGetDeviceCreateContext 4
|
||||
#define X_SELinuxSetDeviceContext 5
|
||||
#define X_SELinuxGetDeviceContext 6
|
||||
#define X_SELinuxSetPropertyCreateContext 7
|
||||
#define X_SELinuxGetPropertyCreateContext 8
|
||||
#define X_SELinuxGetPropertyContext 9
|
||||
#define X_SELinuxSetWindowCreateContext 10
|
||||
#define X_SELinuxGetWindowCreateContext 11
|
||||
#define X_SELinuxGetWindowContext 12
|
||||
|
||||
typedef struct {
|
||||
CARD8 reqType;
|
||||
|
|
Loading…
Reference in New Issue
Block a user