mcstrans: remove unused getpeercon_raw() call
There is a call to getpeercon_raw() in mcstransd, but nothing is done with the context. The purpose of process_request() is to translate a context and we would like that to succeed even if, for some reason, getpeercon_raw() fails. Signed-off-by: Yuli Khodorkovskiy <yuli@crunchydata.com> Signed-off-by: Joshua Brindle <joshua.brindle@crunchydata.com>
This commit is contained in:
parent
94ebccf534
commit
95b3552451
1 changed files with 0 additions and 10 deletions
|
@ -142,17 +142,8 @@ process_request(int fd, uint32_t function, char *data1, char *UNUSED(data2))
|
|||
{
|
||||
int32_t result;
|
||||
char *out = NULL;
|
||||
char *peercon = NULL;
|
||||
int ret;
|
||||
|
||||
ret = getpeercon_raw(fd, &peercon);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
/* TODO: Check if MLS clearance (in peercon) dominates the MLS label
|
||||
* (in the request input).
|
||||
*/
|
||||
|
||||
switch (function) {
|
||||
case SETRANS_INIT:
|
||||
result = 0;
|
||||
|
@ -184,7 +175,6 @@ process_request(int fd, uint32_t function, char *data1, char *UNUSED(data2))
|
|||
}
|
||||
|
||||
free(out);
|
||||
freecon(peercon);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue