xselinux: Whitespace fixups.
This commit is contained in:
parent
734e115871
commit
f0bf9a5231
|
@ -890,8 +890,7 @@ SELinuxResourceState(CallbackListPtr *pcbl, pointer unused, pointer calldata)
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
FatalError("SELinux: Failed to set label property on window!\n");
|
FatalError("SELinux: Failed to set label property on window!\n");
|
||||||
freecon(ctx);
|
freecon(ctx);
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
FatalError("SELinux: Unexpected unlabeled client found\n");
|
FatalError("SELinux: Unexpected unlabeled client found\n");
|
||||||
|
|
||||||
state = dixLookupPrivate(&pWin->devPrivates, stateKey);
|
state = dixLookupPrivate(&pWin->devPrivates, stateKey);
|
||||||
|
@ -907,8 +906,7 @@ SELinuxResourceState(CallbackListPtr *pcbl, pointer unused, pointer calldata)
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
FatalError("SELinux: Failed to set label property on window!\n");
|
FatalError("SELinux: Failed to set label property on window!\n");
|
||||||
freecon(ctx);
|
freecon(ctx);
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
FatalError("SELinux: Unexpected unlabeled window found\n");
|
FatalError("SELinux: Unexpected unlabeled window found\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1181,9 +1179,9 @@ SProcSELinuxQueryVersion(ClientPtr client)
|
||||||
REQUEST(SELinuxQueryVersionReq);
|
REQUEST(SELinuxQueryVersionReq);
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH (SELinuxQueryVersionReq);
|
REQUEST_SIZE_MATCH(SELinuxQueryVersionReq);
|
||||||
swaps(&stuff->client_major,n);
|
swaps(&stuff->client_major, n);
|
||||||
swaps(&stuff->client_minor,n);
|
swaps(&stuff->client_minor, n);
|
||||||
return ProcSELinuxQueryVersion(client);
|
return ProcSELinuxQueryVersion(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1193,8 +1191,8 @@ SProcSELinuxSetSelectionManager(ClientPtr client)
|
||||||
REQUEST(SELinuxSetSelectionManagerReq);
|
REQUEST(SELinuxSetSelectionManagerReq);
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH (SELinuxSetSelectionManagerReq);
|
REQUEST_SIZE_MATCH(SELinuxSetSelectionManagerReq);
|
||||||
swapl(&stuff->window,n);
|
swapl(&stuff->window, n);
|
||||||
return ProcSELinuxSetSelectionManager(client);
|
return ProcSELinuxSetSelectionManager(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1205,7 +1203,7 @@ SProcSELinuxSetDeviceCreateContext(ClientPtr client)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
REQUEST_AT_LEAST_SIZE(SELinuxSetCreateContextReq);
|
REQUEST_AT_LEAST_SIZE(SELinuxSetCreateContextReq);
|
||||||
swaps(&stuff->context_len,n);
|
swaps(&stuff->context_len, n);
|
||||||
return ProcSELinuxSetDeviceCreateContext(client);
|
return ProcSELinuxSetDeviceCreateContext(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1216,8 +1214,8 @@ SProcSELinuxSetDeviceContext(ClientPtr client)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
REQUEST_AT_LEAST_SIZE(SELinuxSetContextReq);
|
REQUEST_AT_LEAST_SIZE(SELinuxSetContextReq);
|
||||||
swapl(&stuff->id,n);
|
swapl(&stuff->id, n);
|
||||||
swaps(&stuff->context_len,n);
|
swaps(&stuff->context_len, n);
|
||||||
return ProcSELinuxSetDeviceContext(client);
|
return ProcSELinuxSetDeviceContext(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1228,7 +1226,7 @@ SProcSELinuxGetDeviceContext(ClientPtr client)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(SELinuxGetContextReq);
|
REQUEST_SIZE_MATCH(SELinuxGetContextReq);
|
||||||
swapl(&stuff->id,n);
|
swapl(&stuff->id, n);
|
||||||
return ProcSELinuxGetDeviceContext(client);
|
return ProcSELinuxGetDeviceContext(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1239,7 +1237,7 @@ SProcSELinuxSetPropertyCreateContext(ClientPtr client)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
REQUEST_AT_LEAST_SIZE(SELinuxSetCreateContextReq);
|
REQUEST_AT_LEAST_SIZE(SELinuxSetCreateContextReq);
|
||||||
swaps(&stuff->context_len,n);
|
swaps(&stuff->context_len, n);
|
||||||
return ProcSELinuxSetPropertyCreateContext(client);
|
return ProcSELinuxSetPropertyCreateContext(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1250,8 +1248,8 @@ SProcSELinuxGetPropertyContext(ClientPtr client)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(SELinuxGetPropertyContextReq);
|
REQUEST_SIZE_MATCH(SELinuxGetPropertyContextReq);
|
||||||
swapl(&stuff->window,n);
|
swapl(&stuff->window, n);
|
||||||
swapl(&stuff->property,n);
|
swapl(&stuff->property, n);
|
||||||
return ProcSELinuxGetPropertyContext(client);
|
return ProcSELinuxGetPropertyContext(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1262,7 +1260,7 @@ SProcSELinuxSetWindowCreateContext(ClientPtr client)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
REQUEST_AT_LEAST_SIZE(SELinuxSetCreateContextReq);
|
REQUEST_AT_LEAST_SIZE(SELinuxSetCreateContextReq);
|
||||||
swaps(&stuff->context_len,n);
|
swaps(&stuff->context_len, n);
|
||||||
return ProcSELinuxSetWindowCreateContext(client);
|
return ProcSELinuxSetWindowCreateContext(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1273,7 +1271,7 @@ SProcSELinuxGetWindowContext(ClientPtr client)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(SELinuxGetContextReq);
|
REQUEST_SIZE_MATCH(SELinuxGetContextReq);
|
||||||
swapl(&stuff->id,n);
|
swapl(&stuff->id, n);
|
||||||
return ProcSELinuxGetWindowContext(client);
|
return ProcSELinuxGetWindowContext(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue